dagulus2 |
03-14-2015 12:10 PM |
Currently:
Code:
###EQ20 global_player file, based on code by ghanja, Kingly_Krab, spyyder
sub EVENT_ENTERZONE {
if (quest::istaskcompleted(9999) == 0 && quest::istaskactive(9999) == 0) #Check if completed Task: Welcome to EQ20
{
quest::assigntask(9999); #Force assign Task: Welcome to EQ20
}
if ($ulevel >= 15 & !defined($qglobals{Wayfarer})) {
my @wayfarerzones = [1,2,3,8,9,10,19,22,23,24,29,30,34,35,40,41,42,45,49,52,54,55,60,61,62,67,68,75,82,106,155,202,382,383,392,393,408];
if ($client->GetStartZone()!=$zoneid && $zoneid ~~ @wayfarerzones) {
$client->Message(15,"A mysterious voice whispers to you, 'If you can feel me in your thoughts, know this -- ".
"something is changing in the world and I reckon you should be a part of it. I do not know much, ".
"but I do know that in every home city and the wilds there are agents of an organization called the ".
"Wayfarers Brotherhood. They are looking for recruits . . . If you can hear this message, you are ".
"one of the chosen. Rush to your home city, or search the West Karanas and Rathe Mountains for a ".
"contact if you have been exiled from your home for your deeds, and find out more. Adventure awaits you, my friend.'");
}
}
}
sub EVENT_COMBINE_SUCCESS
{
if ($recipe_id =~ /^1090[4-7]$/) {
$client->Message(1,
"The gem resonates with power as the shards placed within glow unlocking some of the stone's power. ".
"You were successful in assembling most of the stone but there are four slots left to fill, ".
"where could those four pieces be?"
);
}
elsif ($recipe_id =~ /^10(903|346|334)$/) {
my %reward = (
melee => {
10903 => 67665,
10346 => 67660,
10334 => 67653
},
hybrid => {
10903 => 67666,
10346 => 67661,
10334 => 67654
},
priest => {
10903 => 67667,
10346 => 67662,
10334 => 67655
},
caster => {
10903 => 67668,
10346 => 67663,
10334 => 67656
}
);
my $type = plugin::ClassType($class);
quest::summonitem($reward{$type}{$recipe_id});
quest::summonitem(67704);
$client->Message(1,"Success");
}
}
sub EVENT_SAY {
if($text=~/internet/i) {
$client->SendWebLink("https://www.google.com");
}
}
sub EVENT_DISCOVER_ITEM {
$client->Message(335, "You discovered " . quest::varlink($itemid) . "!");
#quest::we("$name discovered " . quest::varlink($itemid) . "!", 335, 1, 0, 0);
#quest::crosszonemessageplayerbyname(335, "$name discovered " . plugin::varlink($itemid) . "!");
}
Feedback message is now on line 8. The feedback message was there before I added the code to assign the task.
|