View Full Version : using the castspell(id,spell) function
kabalah
04-16-2003, 05:07 PM
has anyone gotten this to work in the 4.4-dr1 version? no matter how i format the command i can't get the soulbinders to cast a spell....i've tried:
castspell("$userid",35)
castspell($userid,35)
castspell("$userid","35")
castspell($userid,"35")
and nothing works...
any help would be appreciated.
thankx
kabalah
tcsmyworld
04-22-2003, 04:12 PM
here's a working soulbinder quest.
EVENT_SAY{
if($1- =~"Hail"){SAY("Greetings $name . When a hero of our world is slain. their soul returns to the place it was last bound and the body is reincarnated. As a member of the Order of Eternity. it is my duty to [bind your soul] to this location if that is your wish.")}
}
EVENT_SAY{
if($1- =~"bind my soul"){SAY("incoming bind . when you die . you will return here")CASTSPELL("$userid","2049")}
}
works with the 0441DR on this link -
http://www.tpcnet.co.uk/eqemu/stable0441exes.zip
hope it helps :)
killspree
04-22-2003, 04:18 PM
Make sure you don't have any missing quotation marks or parentheses before the castspell command. I've noticed the parser will stop parsing past that point if anything is missing.
kabalah
04-22-2003, 06:32 PM
thanks killspree, i've got the latest cvs and have found errors in commandex and getargs functions. i have corrected the problems and your quest code now works.
kabalah
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.