// TMW2 Script
// Author:
// Jesusalva
// Description:
// Anise INC. Representative
024-15,23,24,0 script Lilanna NPC_ELF_F,{
function FixCrystal;
function FixSelect;
mesn;
mesq l("Hello there, I am Lilanna and you are in ANISE INC. headquarters.");
next;
goto L_Loop;
L_Loop:
mesn;
mesq l("How may I help you?");
select
l("Thanks."),
l("What ANISE INC. Does?"),
l("How to use best Warp Technology?"),
l("I would like to buy a Warp Crystal."),
rif(countitem(BrokenWarpCrystal), l("My warp crystal broke!"));
mes "";
switch (@menu) {
case 1:
close;
case 2:
mesn;
mesq l("ANISE Incorporated is the biggest company in warp technology!");
next;
mesn;
mesq l("From magical gates to ancient time-space technology - we know it all!");
next;
mesn;
mesq l("Do you know the warp crystals? We did them. Did you saw the great warp gate at the town entrance? It was us!");
next;
mesn;
mesq l("If you ever need to get quickly from one place to the other, count on us!");
next;
break;
case 3:
mesn;
mesq l("All warp technology, be it crystal-based, potion-based, or mechanic-based, relies on timespace distortions.");
next;
mesn;
mesq l("If you distort time-space too much, you might end up outside of it, meeting a quick, permanent, and unrecoverable death.");
next;
mesn;
mesq l("Different warp systems overlaps each other, so the cooldown is carried over regardless of the technology you use.");
mesc l("Potentially more destructive warp systems will have much longer cooldowns because they cause bigger holes in timespace.");
next;
mesn;
mes l("How to better preserve your dispostives:");
mes l("Mechanically based technology (eg. the Gates or Time Flasks) will never suffer damage from operation but are more costly.");
mes l("Crystal based technology can break if used too often. Try taking longer between each warp to raise their lifetime.");
mes l("Potion based technology will vanish upon use and usually don't interfer with other technologies. Usually.");
next;
mesn;
mesq l("Knowing when to warp is the secret to success!");
next;
break;
case 4:
openshop();
closeclientdialog;
end;
break;
case 5:
FixSelect();
break;
}
goto L_Loop;
// FixCrystal ( Crystal ID, GP Tax )
function FixCrystal {
.@cy=getarg(0);
.@gp=getarg(1);
if (Zeny < .@gp) {
mesc l("NOT ENOUGH MONEY"), 1;
mesc l("@@/@@ GP", format_number(Zeny), format_number(.@gp));
next;
return;
}
inventoryplace .@cy, 1;
delitem BrokenWarpCrystal, 1;
Zeny-=.@gp;
getitem .@cy, 1;
mesc l("Operation successful."), 3;
next;
mesn;
mesq l("Here you go, a brand new crystal. I'll fix the old one on the meanwhile. Take care of it.");
next;
return;
}
//
function FixSelect {
do
{
mesc l("Fixing Crystals have a price. You can only charge crystals to places you've already been.");
mesc l("These are saved by walking in warp portals or touching Soul Menhirs.");
mes l("You have: @@ Broken crystals", countitem(BrokenWarpCrystal));
select
l("Don't fix."),
rif(true, l("Candor - @@ GP", format_number(1500))),
rif(TELEPORTERS & TP_TULIM, l("Tulimshar - @@ GP", format_number(2500))),
rif(TELEPORTERS & TP_HURNS, l("Hurnscald - @@ GP", format_number(2500))),
rif(TELEPORTERS & TP_NIVAL, l("Nivalis - @@ GP", format_number(2500))),
rif(TELEPORTERS & TP_FROST|TP_HALIN, l("Land Of Fire - @@ GP", format_number(5000))),
rif(TELEPORTERS & TP_HALIN, l("Halinarzo - @@ GP", format_number(10000))),
rif(TELEPORTERS & TP_FROST, l("Frostia - @@ GP", format_number(10000))),
rif(TELEPORTERS & TP_LILIT, l("Lilit - @@ GP (not exchangeable)", format_number(20000)));
mes "";
switch (@menu) {
case 1: return;
case 2: FixCrystal(CandorWarpCrystal, 1500); break;
case 3: FixCrystal(TulimWarpCrystal, 2500); break;
case 4: FixCrystal(HurnsWarpCrystal, 2500); break;
case 5: FixCrystal(NivalWarpCrystal, 2500); break;
case 6: FixCrystal(LoFWarpCrystal, 5000); break;
case 7: FixCrystal(HalinWarpCrystal, 10000); break;
case 8: FixCrystal(FrostiaWarpCrystal, 10000); break;
case 9: FixCrystal(LilitWarpCrystal, 20000); break;
}
} while (countitem(BrokenWarpCrystal));
return;
}
OnTimer1000:
domovestep;
OnInit:
.@npcId = getnpcid(.name$);
setunitdata(.@npcId, UDT_HEADTOP, Monocle);
setunitdata(.@npcId, UDT_HEADMIDDLE, AlchemistArmor);
setunitdata(.@npcId, UDT_HEADBOTTOM, CottonSkirt);
setunitdata(.@npcId, UDT_WEAPON, FurBoots); // She could use gloves, no
setunitdata(.@npcId, UDT_HAIRSTYLE, 19);
setunitdata(.@npcId, UDT_HAIRCOLOR, 16);
initpath "move", 23, 24,
"dir", DOWN, 0,
"wait", 15, 0,
"dir", RIGHT, 0,
"move", 27, 24,
"wait", 3, 0,
"dir", DOWN, 0,
"wait", 15, 0,
"move", 24, 32,
"wait", 3, 0,
"dir", RIGHT, 0,
"wait", 10, 0,
"dir", LEFT, 0,
"wait", 10, 0,
"dir", UP, 0,
"wait", 3, 0,
"move", 27, 34,
"dir", UP, 0,
"wait", 3, 0,
"dir", LEFT, 0,
"wait", 3, 0,
"move", 23, 24,
"wait", 3, 0,
"dir", DOWN, 0,
"wait", 10, 0;
initialmove;
initnpctimer;
tradertype(NST_MARKET);
sellitem BrokenWarpCrystal, 50000, 1;
.sex = G_MALE;
.distance = 5;
end;
OnClock2358:
restoreshopitem BrokenWarpCrystal, 50000, 1;
end;
}