How to identify Spell id?
I have been playing with the Event_Cast_On since 1108 release and it works out very nicely. Sadly, I don't know how to get the spell id the player cast, This is needed so I can set NPCs to react to a specific spell, not just any spell. I have tried may different quest objects, but will no results. Any ideas would be helpful?
|
I have not upgraded my 1104 to 1108 yet, but if the code has been integrated as-is you should access the spell ID by the $spell_id variable when you are in the event handler function. Here is how I do it on my own version, where I wrote the CAST_ON thingie originally :
Code:
sub EVENT_CAST_ON |
$spell_id does not work
Many thanks for the reply, But I have searched high and low on the forums, and found that as well.
http://www.eqemulator.net/forums/sho...ght=event+cast it seems that $spell_id was not added to the current 1108 version, but EVENT_CAST_ON was. sadly, since I don't have a complier, I have to rely on the releases available. Unless you know of a free compiler that can compile the source files under windows xp for windows machine, I will be stuck to this. but thanks for your reply :grin: |
Nevermind, I found a very helpful wikki that points to a free compiler for windows that is not a gcc or cgywin.
http://www.eqemulator.net/wiki/wikka...a=DevVSExpress I will add and compile to get $spell_id working :grin: |
Quote:
Code:
509 case EVENT_CAST_ON: Code:
case EVENT_CAST_ON: In any case, I hope this helps :-) |
What is in my embparser.cpp file :
Code:
case EVENT_ZONE:{ I will open a bug for that so the job can be completed for a future release. |
You also need to remove the already present "case EVENT_CAST_ON:", as it would not be very clean to keep both (it could even warrant you a warning from the compiler). Only the first one will be taken into account anyway.
|
Many thanks for the info, I have it working now. Btw, I was not sure if can compile on the new 2008 express , so found the 2005 express on ms web site. http://msdn.microsoft.com/en-us/express/aa975050.aspx
|
Yep, 2008 does work.
|
All times are GMT -4. The time now is 07:32 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.