Bloodrose Emporium
Index > Login
Name: Password: Remember:

» Forums » Public Board » Scripts » Quick offer


Indiana
Indiana
Council Member

Joined: 06.12.2004
Posts: 867
Posted: 24 Dec 2005 15:34     Subject: 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)

Up View profile :: Send message
Broly
Broly
Family Member

Joined: 12.12.2004
Posts: 61
Posted: 24 Dec 2005 21:59     Subject:
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.

Up View profile :: Send message
Indiana
Indiana
Council Member

Joined: 06.12.2004
Posts: 867
Posted: 25 Dec 2005 07:22     Subject:
The only problem with that is if you put more than one space you'll get a VBScript error ..
Up View profile :: Send message
Broly
Broly
Family Member

Joined: 12.12.2004
Posts: 61
Posted: 25 Dec 2005 08:09     Subject:
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>

Up View profile :: Send message
Indiana
Indiana
Council Member

Joined: 06.12.2004
Posts: 867
Posted: 25 Dec 2005 08:15     Subject:
Just try "rep   4 doff" and you should get an error .. I  know I did when I used something similar for my offering system.
Up View profile :: Send message

Pag: 1
Advertising
© Copyright 2001-2015 iNDY Design. Contact - About