Kensh |
06-28-2005 05:24 PM |
archive quests.. of course i dont look there. thanks Cisyouc
EDIT: oh btw.. i dont have a server to test this on up atm, so yould you see if this is the correct format for setting and using the global variable?
Code:
sub EVENT_SAY
{
if($text =~/Hail/i && $lunch=="2")
{
quest::say(Thank you again for helping me return my lunch to my son.");
}
elsif($text =~/Hail/i)
{
quest::say("Hail, adventurer. I seem to be a bit [busy] at the moment, so if you could leave me alone i would be quite humbled.");
quest::checkflag(59,5);
if($text =~/busy/i)
{
quest::say("I'm glad you're interested in my problem, but i could not [ask] such a simple task of you.");
}
if($text =~/ask/i)
{
quest::say("Sigh, you seem to be unwavering about this decision. Fine, if i can't change your mind then here. My son Solerin has forgotten his lunch, it seems he took mine in his rush out of our house today, and i am far too busy to go give it to him. If you do not know [where] he is, then i would be happy to tell you.
quest::summonitem(77769);
}
if($text =~/where/i)
{
quest::say("He usually hangs around that dirty beastlord Savarr, so you might start your search there.");
}
}
sub EVENT_ITEM
{
if($item1 == 77770 && $ulevel==1)
{
quest::say("I am glad to see that my son got the right lunch, please accept this as a small token of my gratitude, it's the least i can do.");
quest::exp(110)
quest::targlobal("lunch","2","Y7",699,$charid,4);
}
if($item1 == 77770 && $ulevel==2)
{
quest::say("I am glad to see that my son got the right lunch, please accept this as a small token of my gratitude, it's the least i can do.");
quest::exp(770)
quest::targlobal("lunch","2","Y7",699,$charid,4);
}
if($item1 == 77770 && $ulevel==3)
{
quest::say("I am glad to see that my son got the right lunch, please accept this as a small token of my gratitude, it's the least i can do.");
quest::exp(2090)
quest::targlobal("lunch","2","Y7",699,$charid,4);
}
if($item1 == 77770 && $ulevel==4)
{
quest::say("I am glad to see that my son got the right lunch, please accept this as a small token of my gratitude, it's the least i can do.");
quest::exp(4070)
quest::targlobal("lunch","2","Y7",699,$charid,4);
}
if($item1 == 77770 && $ulevel>=5)
{
quest::say("I am glad to see that my son got the right lunch, please accept this as a small token of my gratitude, it's the least i can do.");
quest::exp(6710)
quest::targlobal("lunch","2","Y7",699,$charid,4);
}
}
thanks again
|