Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:02 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3