// TMW2 Script
// Author:
// Jesusalva
// Description:
// Controls access to Frostia.
024-1,93,73,0 script Frostia Guard NPC_ELF,{
if (BaseLevel < 40)
goto L_Unallowed;
//if (getrace() == "Elf") goto L_Warp;
.@tax=1001-min(1000, reputation("Frostia")*10);
mesn;
mesc l("The guard eyes you with suspcion.");
mesq l("You should not be here. Get moving.");
if (Zeny < .@tax)
close;
next;
mesc l("Bribe the guard for @@ GP?", .@tax);
if (askyesno() == ASK_YES) {
Zeny-=.@tax;
closeclientdialog;
slide 93, 69;
npctalk3 l("Behave yourself.");
}
close;
L_Unallowed:
mesn;
mesq l("You're not welcome here. Get moving.");
close;
OnInit:
.@npcId = getnpcid(.name$);
setunitdata(.@npcId, UDT_HEADTOP, WarlordHelmet);
setunitdata(.@npcId, UDT_HEADMIDDLE, WarlordPlate);
setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
setunitdata(.@npcId, UDT_WEAPON, JeansChaps);
setunitdata(.@npcId, UDT_HAIRSTYLE, 2);
setunitdata(.@npcId, UDT_HAIRCOLOR, 4);
.sex = G_MALE;
.distance = 5;
end;
}