Bloodrose Family Forums Archive


Public Board

-

Scripts

-

Quick offer

Poted by Indiana on 24 Dec 2005 15:34 - Quick offer
<aliases>
 <alias
  match="^offer( +)(.*?)( +)(.*?)$"
  enabled="y"
  regexp="y"
  send_to="12"
  sequence="100"
 >
 <send>For i = 1 to %2
 World.Send "offer %4"
Next</send>
 </alias>
</aliases>


All you need to do is use: "offer <number> <corpse>" and you'll offer the ammount much easier. (eg: offer 10 orc)
Poted by Broly on 24 Dec 2005 21:59 -
or use this:

<aliases>
<alias
 match="^rep (.*?) (.*?)$"
 enabled="y"
 regexp="y"
 send_to="12"
 sequence="100"
>
<send>For i = 1 to %1
World.Send "%2"
Next</send>
</alias>
</aliases>


rep <no. of times> <thing to repeat> repeats the thing for n times.

for example:

rep 3 give animal to talus sends give animal to talus three times.
Poted by Indiana on 25 Dec 2005 07:22 -
The only problem with that is if you put more than one space you'll get a VBScript error ..
Poted by Broly on 25 Dec 2005 08:09 -
no...it works fine for me.

wait you're right.

here's the fixed one:

<aliases>
<alias
match="^rep(\s+)(.*?)(\s+)(.*?)$"
enabled="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>For i = 1 to %2
World.Send "%4"
Next</send>
</alias>
</aliases>
Poted by Indiana on 25 Dec 2005 08:15 -
Just try "rep   4 doff" and you should get an error .. I  know I did when I used something similar for my offering system.

Back to main forum archive

View normal forum version