// TMW-2 Script // Author: // Jesusalva // Crazyfefe 012-6,56,67,6 script Hurnscald's Nurse NPC_FEMALE,{ //if (sc_check(SC_POISON)) goto L_CurePoison; if (Hp < (MaxHp/100*90)) goto L_Heal; mesn; mesq l("Ah! Welcome. I can cure you, if you need."); do { select rif(Hp < MaxHp, l("Please heal me!")), l("I'm fine, no worries..."); switch (@menu) { case 1: goto L_Menu; break; case 2: goto L_Close; break; } } while (@menu != 2); close; L_Heal: mes ""; mesn; .@temp = rand(4); if(.@temp == 1) goto L_Heal2; if(.@temp == 2) goto L_Heal3; if(.@temp == 3) goto L_Heal4; goto L_Heal1; L_Heal1: mesq l("You don't look too well; let me treat your wounds."); mes ""; goto L_Menu; L_Heal2: mesq l("I will make quick work of your wounds."); mes ""; goto L_Menu; L_Heal3: mesq l("Need a healing?"); mes ""; goto L_Menu; L_Heal4: mesq l("Sometimes you just need to run from battle."); mes ""; goto L_Menu; L_Menu: .@price=(MaxHp-Hp)/6; .@price=.@price+10; if (BaseLevel <= 15) .@price=(.@price/10); else if (BaseLevel <= 20) .@price=(.@price/5); else .@price=(.@price/2); mesq l("For you, it'll be @@ GP.", .@price); mes ""; menu rif(Zeny >= .@price, l("Please heal me!")), L_Heal_L, l("Another time, maybe."), L_Close; L_Heal_L: mes ""; set Zeny, Zeny - .@price; sc_end(SC_POISON); sc_end(SC_SLOWPOISON); percentheal 100,100; // We can also use "recovery()" mesn; @temp = rand(1,4); if(@temp == 1) mesq l("Here you go!"); if(@temp == 2) mesq l("Painless, wasn't it?"); if(@temp == 3) mesq l("You should be more careful."); if(@temp == 4) mesq l("Much better, right?!"); goto L_Close; L_Close: close; OnInit: .@npcId = getnpcid(0, .name$); // I am too lazy to dress every NPC I add >.< setunitdata(.@npcId, UDT_HEADMIDDLE, ShortTankTop); setunitdata(.@npcId, UDT_HEADMIDDLE, MiniSkirt); setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes); setunitdata(.@npcId, UDT_HAIRSTYLE, 12); setunitdata(.@npcId, UDT_HAIRCOLOR, 16); .sex = G_FEMALE; .distance = 5; end; }