// TMW2 scripts.
// Author:
// Saulc
// Description:
// Candor Armor&Weapon shop keeper.
// Variables:
// CandorQuest_Rosen (nyi)
// Suggestion: Deliver a letter to Zegas, giving player background about
// Candor Island and Saxso. Requires level 5. Reward: 150 GP.
// Could have an additional step related to Bifs. Even a daily quest asking
// for (day % 8) ore, with suitable prices.
005-4,29,36,0 script Rosen NPC_GUARD1,{
.@q=getq(CandorQuest_Rosen);
function explain_ironingot {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Did you see Jhedia the blacksmith in Tulimshar? She might know how you could get this."),
l("Nevertheless, you probably need some base materials from Bifs. Who knows what it will drop if you are lucky?");
return;
}
speech S_LAST_NEXT,
l("Welcome to Tolchi and Rosen Shop."),
l("What would you like today?");
do
{
select
menuaction(l("Trade")),
l("How can I get iron ingot?"),
menuaction(l("Quit"));
switch (@menu)
{
case 1:
closedialog;
shop "Shop#Candor";
close;
case 2:
explain_ironingot;
break;
case 3:
closedialog;
goodbye;
close;
}
} while (1);
OnTimer1000:
domovestep;
OnInit:
initpath "move", 28, 36,
"dir", DOWN, 0,
"wait", 31, 0,
"move", 31, 36,
"dir", DOWN, 0,
"wait", 31, 0,
"move", 25, 35,
"dir", UP, 0,
"wait", 2, 0,
"move", 29, 36,
"dir", DOWN, 0,
"wait", 31, 0;
initialmove;
initnpctimer;
.distance = 5;
}