EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Quests (https://www.eqemulator.org/forums/forumdisplay.php?f=624)
-   -   using the castspell(id,spell) function (https://www.eqemulator.org/forums/showthread.php?t=6642)

kabalah 04-16-2003 05:07 PM

using the castspell(id,spell) function
 
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

try this one.....
 
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 :)
 
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


All times are GMT -4. The time now is 01:22 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.