Going off what you gave me I got the turn in working. But It doesn't do anything yet. Here is my Script. (Please tell me if I'm missing anything. I think I need to add a $qglobals, But I'm not sure how to do it yet.)
Code:
sub EVENT_SAY {
if($text=~/Hail/i) {
quest::say("Hello Dear Friend, I am the elder here. I can Improve the stats on your Epic weapons.");
}
}
sub EVENT_ITEM {
if(plugin::check_handin(\%itemcount, 132508 => 1)) { #Rift Shards
quest::say("Thank you, Your weapon should be a bit stronger now.");
}
else {
quest::say("I have no use for this, $name.");
plugin::return_items(\%itemcount);
}
}
Now I am looking at some vxed mobs,and I see things like this But I don't know what to do with it.
example 1
Code:
if (defined $qglobals{bic} && $qglobals{bic_sew} == 12 && $qglobals{bic_vxe} == 13 && $qglobals{bic_tip} == 14) {
example 2
Code:
if (defined($qglobals{clockwork}) && ($qglobals{clockwork} == 1)) {
example 3
Code:
sub EVENT_DEATH {
my $instid = quest::GetInstanceID("vxed",0);
my $newvalue = $qglobals{$instid.'_vxed_status'};
$newvalue++;
quest::setglobal($instid.'_vxed_status',$newvalue,7,"H6");
if($newvalue >= 50) {
SPAWN_EKIKOA();
}
} Although I think I know how this one works.
For my script what do I put in the {} after $qglobals, and what are the numbers for in example 1 and 2. I can probably put it together right if someone can tell me what goes there. Trust me After that I'll be able to do it on my own. (I kinda wish there was a detailed Tutorial on how to do this. Thats why I keep askin for a better example. Some people say its better for me to figure it out on my own, But I learn better when I have a good example to work off.)