Player.PL signals to NPC issue
Herro,
Well here is another issue I am having that I graciously need some advice on. I noticed in logs that it is saying unable to read perl file player_v0.pl I know there is a coded hierarchy for the global_player > player and so on. I am wondering if that is my issue. I do have a global_player.pl in place in the templates. Or I noticed in the task information that is you manually assign a task with assigntask then it calls $taskid and if the task is selected by PC then its called with $task_id. If I understood this correctly. I have tried both. I have also tried both EVENT_TASK_STAGE_COMPLETE and EVENT_TASK_COMPLETE So what I am trying to accomplish is quest chain npcs for my expansion. Upon completing task 281 I am trying to use player.pl to signal my NPC to continue on. The reason I am doing this is because the task requires 20 turn ins and I could not get it to advance the script because you can only trade non stack items to NPC and the npc did not remember how many I turned in to accomplish a total of 20 to continue the script. Here are my 2 scripts. Everything works properly and in order besides the Signal part in the my npc script. player.pl Code:
sub EVENT_TASK_COMPLETE { Code:
#Thed Creggle Task order Thanks!!! |
The player info won't pass with the signal. Why don't you just move all that signal code inside the player.pl?
|
I moved the taskupdate to player and it worked, still need the npc to respond to assign new task but, I dunno why I didn't think about it. Ill just add it as a step in task and receive the summonitem as reward :/ durr!
Thanks joligario |
Here are two working examples of those events you couldn't get to work.. hope this helps you a bit.
On task complete you can set that signal. Code:
sub EVENT_TASK_STAGE_COMPLETE { Code:
sub EVENT_TASK_COMPLETE { |
sweet thanks man! I will work on it when I get back from work.
|
All times are GMT -4. The time now is 11:36 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.