Download Game! Currently 74 players and visitors. Last logged in:BerennIberiamsspTaikaRagno

BatMUD Forums > Batclient > ship script

 
 
#1
30 Mar 2012 22:14
 
 
Ok, I decided to write another script - this time it is a script designed to
make ship combat as easy as possible without roboting. The script isn't
complete, but for the rest I either need help or at least fight a bit more,
wasn't able to fight a pirate while testing.
The script has 2 major parts, the first one sits on top of the 'ship scan', the
script takes the output and parse it for relevant information. As such it
highlites a ships alignment if it matches the hunting setting or displays a the
class level of a ship so "whaler" turns into "whaler(c4)".
However the most important part is that it sets up an command to pursue a ship
if the ships alignment matches the hunting setting. So assuming the script is
configured to hunt pirates the line:
Aveallis' Grace [H:100] {aveallisgrace1} (pirate whaler)
turns into:
Aveallis' Grace [H:100] {aveallisgrace1} (pirate whaler(c4)) # p0 #
and a quick type of "p0" then expands in "pursue
aveallisgrace1".

The other part of the script is an attempt to create a simply short score that
displays all the relevant data. Due to missing combat messages that part is a
bit incomplite, but what I have planned for now is something like:

+-----------------------------------+-----------+
|aveallisgrace1 (4)|100/???/???|
+--------+----------+-----+-----+---+-----------+
| BOARDER| GRAPPLED | P 0 | | |84 /100/100|
+--------+----------+-----+-----+---+-----------+

http://pastebin.com/HzyaqkhM

If everything works out as planned, except a new version of the script
soonish.

configure:
"scan_command" just set the command you are using or let it as it is
"phunt,mhunt,nhunt" turn on what kind of ships you want to
hunt(pirate/merchant/navy)
"sc" turn this on if you want to turn the 5 line output into a 2 line
one
"beep" turn this off if you don't want your computer to beep when you
get attacked
"crew_leader" set it to match your crew leader, if you are using more
than one ship you can set all of them using the format (?:name1|name2|name3...)

 
Rating:
1
Votes:
1
 
 
Tugmeno
163d, 2h, 24m, 42s old
Level:
75