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
  #6  
Old 04-03-2009, 10:36 PM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default

I'd forgotten that the $mob stuff doesn't work in quite as straightforward a fashion as the others. Almost nothing that I've seen actually works with the $mob variable, but those functions will work if you call them from $npc or $client, depending on who you want them performed on (or by). You can think of the $mob functions as a subset of the $client and $npc... I'm sure there are exceptions, but all of the functions I played with can be called from either (but don't work if you actually use $mob).

The CastTo... functions are used to change an object from one type to another. So if you want to use a function from the mob list on the client, you could use "$client->CastToMob()->" or "$npc->CastToMob()->" to call whatever $mob function you want. I've never actually had to use the CastTo functions in quest writing, but then I haven't really pushed the limits of the system, either.
Reply With Quote
 


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 12:28 PM.


 

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