blob: 47af50c0d99f5e6280eb6c0a8da5ddf42a16375d (
plain) (
tree)
|
|
// Evol scripts.
// Authors:
// 4144
// Reid
// Description:
// A box with clothes for new players.
// Variable:
// ShipQuests_Arpan
// Values:
// 1 Talked to Arpan and needs to get clothes.
// 2 Has the clothes.
000-2-1.gat,51,37,0 script Chest#0 317;2,{
set @q, getq(ShipQuests_Arpan);
if (getnpcdir ("") == 4) goto l_Give;
setnpcdir 2;
initnpctimer;
startnpctimer;
close;
l_Give:
if (@q > 1) goto l_Close;
setq ShipQuests_Arpan, 2;
getitem "WornShirt", 1;
getitem "WornShorts", 1;
message strcharinfo(0), l("You take the clothes from the chest.");
close;
l_Close:
setnpcdir 6;
initnpctimer;
startnpctimer;
close;
OnTimer220:
stopnpctimer;
if (getnpcdir ("") == 2) setnpcdir 4;
if (getnpcdir ("") == 6) setnpcdir 0;
end;
}
|