Problem with Quest Implement
Ok, I made my quest file below... Trying to get "Soulbinder Gendal" to work in "the arena".
Here is the .pl for soulbinder... Also, his ID is 78252 (78252.pl) Located in: C:\EqEmu\quests\arena Quote:
|
Try:
Code:
sub EVENT_SAY |
Ok trying it now
|
No Luck, whenever I hail me, he just looks at me...
|
Nevermind! Restarted server and it works, woot thanks a lot Monrezz!!!!
|
Np.
|
I can't get the soulbinders to actually have the spell "stick". None of the npc's casting beneficial spells on players work. :-/
|
Show us your .pl
|
try quest::selfcast(id);
|
Sry for bring up an older topic here, but i am having same issue with getting benificial spells to stick when cast by npc, i tried the selfcast to force the client to cast the spell on himself, but for some very odd reason when i do quest::selfcast($userid,2049); it casts the lvl 4 bard group heal hymn of restoration, yet when i do #castspell 2049 while having myself targeted it casts bind, so i am stumped here any ideas on why this might not be working?
|
From http://www.eqemulator.net/forums/viewtopic.php?t=12020:
quest::castspell(id,spellid); - Casts "spell" on entity with "id". quest::selfcast(spellid); - Forces client to cast spell on themself (useful for self only and group effect spells). Instead of quest::selfcast($userid,2049); try quest::castspell($userid,2049); |
Yeah the reason you are getting that spell is that the userid happens to be the same number as that spells number and that method only takes one parameter. C and Perl allows you to call a method with any number of parameters and won't crash as long as you send the same or more parameters than expected. But it still only reads the number its expecting which is just the first.
|
ahh ok i understand now, thanks for the info =) didn't realize that it was selfonly/group spells that worked that way, however i still can't seem to get the npc to have a benifical spell stick, buffs, bind whatever, detrimental spells i have been able to however =), any ideas on how to fix this? or maybe an alternate way to work around it?
|
Hello!
Try this: On (or about) line 2417 in zone::mob.cpp -> Change: Code:
else if(_NPC(mob2)) // client to npc Code:
else if(_NPC(mob2)) // client to npc Good Luck! ~Gandar |
Aswome! thanks!
|
All times are GMT -4. The time now is 03:44 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.