Script help
Dont know if this is the right place for this, sorry if it isn't, but here goes...
I am trying to make a KEI casting NPC and have "developed" the following script ... problem is, it is not working. Code:
sub EVENT_SAY Code:
sub EVENT_SAY |
npcs will not cast group buff spells like koadics on players right now with castspell. detrimental or single target buffs work fine. castspell is also (spellid,$userid)
you can use quest::sellfcast(spellid); for koadics, wunshi and other group buffs. |
selfcast will also affact the toon next to the NPC casting it, yes?
|
the selfcast makes the client think the player cast it on themself, so it will cast it on the player and any/all players in that player's group that are within the spell range
hope that helps |
I have evolved the code to the following, but still it does not work...
Code:
sub EVENT_SAY And last but not least, I am trying to put the script on Nayr Cogswin on PoK (warrior, gnome - by the soulbinder) ... if he has to be an enchanter, where exactly do I change that? I tried looking under the table "npc_types" (in MySQL Control Center 0.9.2-beta ... which as far as I can see only loads 1000 entries/rows), but again with no luck... |
quest::selfcast(spellid); don't need $userid
|
Quote:
Did you name your script Nayr_Cogswin.pl (must be spelled exactly as the NPC's name in the database) and save it to your poknowledge folder under quests? If the name doesn't work, target him with someone that can use the #showstats command and get his npc ID number. Rename the script to that number ie:202117.pl if his ID was 202117. |
Quote:
I will try and remove the $userid from the selfcast portion and see how that turns out. |
Script works now :D
Thanks all for your help. Code:
sub EVENT_SAY |
I modified the script and expanded it ... quite usefull for servers with small communities.
Code:
sub EVENT_SAY |
All times are GMT -4. The time now is 06:18 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.