View Single Post
  #3  
Old 08-06-2008, 04:21 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Ya, I am just going off of the wiki here:

http://www.eqemulator.net/wiki/wikka...=QuestTutorial

Which says to do it this way:

Code:
quest::castspell(id,spellid) - Casts "spell" on entity with "id". This is buggy, if it does not work try $npc->CastSpell(id,spellid);
Though, I have tried swapping ID and Spell ID around and it didn't make any difference.

The Quest Object Wiki says to do it the way you mentioned:

http://www.eqemulator.net/wiki/wikka...a=QuestObjects

Code:
$npc->CastSpell(spellid,userid); (I found some strange bugs with quest::castspell() and all of these where resolved by using the object...)

**And later on it shows the actual format of: **

CastSpell(spell_id, target_id, slot= 10, casttime= -1, mana_cost= -1)
Once I get it working, I will update the wiki with the correct format. Do you know if the 10, -1, -1 arguments in your example are required? I will try them out and see what happens. Thanks, I think with this info I can hopefully get this working finally lol. That is what I get for fully trusting a wiki page :P
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote