// TMW2 scripts. // Author: // Jesusalva // Description: // Tulimshar Inn Recepcionist 003-9,62,128,0 script Recepcionist#TInn NPC_LOF_BARKEEPER,{ // You're on Main Quest - total priority if (LUA_ASKED_TO_SLEEP) goto L_Cutscene; // Otherwise, you cannot sleep here before finishing Lua's Quest if (getq(General_Narrator) < 3) { npctalk3 l("Hello, and welcome to Tulimshar Inn."); emotion E_HAPPY; end; } .@price=limit(400, 700+(BaseLevel*3)-getq(General_Narrator)*6, 1200); .@price=POL_AdjustPrice(.@price); mesn; mesq l("Good %s. Would you like to sleep here? It's only %d GP!", (is_night() ? l("evening") : l("day")), .@price); mesc l("Sleeping will fully replenish your health."); next; if (askyesno() == ASK_YES && Zeny > .@price) { POL_PlayerMoney(.@price); percentheal 100, 100; closeclientdialog; } close; L_Cutscene: mesc l("continues"), 1; close; OnInit: .sex = G_FEMALE; .distance = 5; end; }