summaryrefslogblamecommitdiff
path: root/npc/015-2/guard.txt
blob: e9ba3fe374f56a61f74c27bee926cacbfcb8c43d (plain) (tree)













































                                                                                                                                 
// TMW2 Script.
// Author:
//    Jesusalva
// Description:
//    Part of Helena's quest

012-2,47,40,0	script	Helena's Teammate	NPC_ORC,{
    .@q=getq(HurnscaldQuest_Bandits);
    if (.@q == 5) goto L_SilverKey;
    if (.@q == 6) goto L_BanditLord;
    mesn;
    mesq lg("Welcome.");
    mesq l("This small island is a good place to heal our wounds, the slimes and the snakes are not threating.");
    close;

L_SilverKey:
    mesn;
    mesq l("Don't say anything, I can smell the scent of Helena's hair on you.");
    next;
    geitem SilverKey, 1;
    setq HurnscaldQuest_Bandits, 6;
    mesn;
    mesq l("I guess she sent you to kill another Bandit Lord, right? Ok, I'll give you the key for his room.");
    next;
    mesn;
    mesq l("It is pretty close to here. I advise you to bring friends, and use a sword, but I can't give keys to them and etc.");
    close;

L_BanditLord:
    mesn strcharinfo(0);
    mesq l("There was nobody on the Bandit Lord's room.");
    close;

OnInit:
    .@npcId = getnpcid(0, .name$);
    setunitdata(.@npcId, UDT_HEADTOP, FairyHat);
    setunitdata(.@npcId, UDT_HEADMIDDLE, ForestArmor);
    setunitdata(.@npcId, UDT_HEADBOTTOM, JeansChaps);
    setunitdata(.@npcId, UDT_WEAPON, DeepDarkBoots);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 24);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 1);

    .sex = G_MALE;
    .distance = 5;
    end;
}