I checked the TutB quest folder and found Vahlara.pl file ... it contained something interesting ...
Code:
if (($text=~/hail/i)&&(${$name}!=2)){
quest::delglobal("$name");
quest::setglobal("$name",2,3,"F");
$name=undef;
quest::summonitem(59943);
quest::say("I have something that might save you from the same fate. Take this kobold charm. May it bring you good luck, $name.");
}
That code has something to do with flags, yes?
>>EDIT<<
I tried modifying the script and this is what I came up with, so far ...
Code:
sub EVENT_SAY{
if (($text=~/hail/i)&&(${$name}==2)){
quest::say("Greetings friend and welcome to the world of Norrath. Are [you interested in some gear] to help you get started?");
}
if (($text=~/i am interested in some gear/i)&&(${$name}!=2)){
quest::delglobal("$name");
quest::setglobal("$name",2,0,"F");
$name=undef;
quest::summonitem(xxxxx);
quest::summonitem(xxxxx);
quest::say("Here you go, $name. Now please don't loose these precious items, as I will not assist you any further.");
}
I know it isn't complete yet, still need the code in case someone tries a second time (if it is possible) and I have absolutely no diea if the code is even near correct ... but, I am confused about a small number of things:
1. line 2 - the number "2" ???
2. line 6 - the number "2" again ???
3. line 7 - all of it ... why "delglobal" ???
4. line 8 - the number "2" here defines "value" = "this/all/this" and the number "0" defines "options" = "this/this/this" and it should only pertain to that NPC for that PLAYER in that ZONE ?!?
I changed to the number "0" from a "3". The "F" defines "duration" and I set this to "F" as it should last forever.
Any further advice and/or corrections? As I don't imagine this script is complete ...