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
  #3  
Old 11-10-2009, 09:00 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Haha I found my old thread and realized I need help with this subject again. Basically I am trying to do a task where after you complete it, it will update a global variable, but I don't know how to do that just using the task system.

I have this in player.pl and I want it to trigger after you deliver 20 objects to an NPC. The task itself ends and has the "Task Completed" Message pop up, but nothing in the player.pl happens.
Code:
sub EVENT_TASK_STAGE_COMPLETE{
 if ($task_id == 140 && $activity_id == 1){
  $client->Message(3,"Fantastic! That will save me lots of time. Come back when you want more $tasks.");
  quest::setglobal("blacksmith", $qglobals{blacksmith} + 1, 5, "F");
 }
  if ($task_id == 141 && $activity_id == 1){
  $client->Message(3,"Ehh, these will do. Come back soon for more $tasks.");
  quest::setglobal("blacksmith", $qglobals{blacksmith} + 1, 5, "F");
 }
}
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 01:18 AM.


 

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