|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself. |
 |
|
 |

04-11-2014, 03:25 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
Quote:
Originally Posted by Esildor
So sort of like an "event controller" in the zone the task is completed, watching for task completion then give player the RCs when it reads task complete?
|
No need to make it that complicated.
Use your global_player script in EVENT_TASK_COMPLETE
Example:
Code:
sub EVENT_TASK_COMPLETE{
#::: Sands of Time Tasks
if($task_id == 165){
quest::we(15, "Congratulations $name for completing [Story] T1 Progression on Akka's Funhouse! $name is now a Timeshifter!");
quest::ze(15, "Chronos booms Atiiki, '$name, you have proven yourself, you are now amongst the ancients as a Timeshifter!");
$client->SetTitleSuffix("the Timeshifter", 1);
$client->Message(15, "[Title Gain]: You are now known as 'the Timeshifter'");
$client->Message(15, "[Level Unlock]: You are now able to level to 203!");
$client->Message(15, "[Expedition Unlock]: You have unlocked T1 Expeditions - Speak to the first available Expedition NPC to start");
$client->Message(15, "[Currency] You have been given 60 Phosphenes");
if($ulevel == 200){ quest::level(200); }
$client->SetGlobal("CharMaxLevel", "203", 5, 'F');
quest::updatetaskactivity(196, 3, 1); #::: Sands of Time Master Quest
quest::summonitem(79912, 60);
$client->PlayMP3("opener4.xmi");
}
}
|
 |
|
 |
 |
|
 |

04-11-2014, 03:44 PM
|
Hill Giant
|
|
Join Date: Feb 2010
Posts: 207
|
|
Quote:
Originally Posted by Akkadius
No need to make it that complicated.
Use your global_player script in EVENT_TASK_COMPLETE
Example:
Code:
sub EVENT_TASK_COMPLETE{
#::: Sands of Time Tasks
if($task_id == 165){
quest::we(15, "Congratulations $name for completing [Story] T1 Progression on Akka's Funhouse! $name is now a Timeshifter!");
quest::ze(15, "Chronos booms Atiiki, '$name, you have proven yourself, you are now amongst the ancients as a Timeshifter!");
$client->SetTitleSuffix("the Timeshifter", 1);
$client->Message(15, "[Title Gain]: You are now known as 'the Timeshifter'");
$client->Message(15, "[Level Unlock]: You are now able to level to 203!");
$client->Message(15, "[Expedition Unlock]: You have unlocked T1 Expeditions - Speak to the first available Expedition NPC to start");
$client->Message(15, "[Currency] You have been given 60 Phosphenes");
if($ulevel == 200){ quest::level(200); }
$client->SetGlobal("CharMaxLevel", "203", 5, 'F');
quest::updatetaskactivity(196, 3, 1); #::: Sands of Time Master Quest
quest::summonitem(79912, 60);
$client->PlayMP3("opener4.xmi");
}
}
|
So, in the global folder?
What should I name it .. name of the task or like name of the final mob in the task?
|
 |
|
 |

04-11-2014, 03:48 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
No, global/global_player.pl
This is a player script that is responsible for handling player events. So as a task is completed, that sub EVENT is triggered. In which $task_id passed through it as the current task that the client has completed. You just need to check for that task id and complete the task.
You could do something like this just to test ingame:
Code:
sub EVENT_TASK_COMPLETE{
if($task_id == youridgoeshere){ $client->Message(15, "Hi this works"); }
}
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:39 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |