Script for a Dragonball z mud i play

Posted by Genesis on Thu 25 Dec 2008 01:30 AM — 2 posts, 15,861 views.

#0
Hi im trying to make a script so i can get a warning of when to eat a sensu bean while fighting.

This is my fight prompt:
HP [100] Ki [14,021/14,021] PL [100,001,067/860,009,214] Style [A] Foe [100]

my style changes from A to D depending on if im in aggressive or defensive stance. My ki also changes for when i use energy barrier and ki attacks.

Any help on making a script for this would be much thanked.
USA #1
Something like this, a direct copy of a valid trigger in fact, would work, just replace the first 2 numbers in the <send> section with the values you want to use, prior to the explanations of them. Copy/Paste Directions here... http://mushclient.com/copying
http://mushclient.com/pasting

-Onoitsu2


<triggers>
  <trigger
   enabled="y"
   match="^HP \[(.*)\] Ki \[(.*)\/(.*)\] PL \[(.*)\/(.*)\] Style \[(\w)\] Foe \[(\d+)\]$"
   name="AutoSenzu"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>hp_watch = 5000 -- Set to Watch Number
reset_time = 10 -- Set to Time To Re-Enable Trigger
if "%1" &lt; hp_watch then
Send("eat senzu")
EnableTrigger("AutoSenzu",false)
DoAfterSpecial(reset_time,'EnableTrigger("AutoSenzu",true)',12)
end -- if</send>
  </trigger>
</triggers>