From f9914b42a8095e06c4223e3c183b53a3f8c15980 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Sat, 24 Feb 2018 01:49:33 -0300 Subject: The first item rent on our server is Ayasha's weapon --- npc/005-1/ayasha.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'npc/005-1') diff --git a/npc/005-1/ayasha.txt b/npc/005-1/ayasha.txt index a38a58baa..eb0c761d5 100644 --- a/npc/005-1/ayasha.txt +++ b/npc/005-1/ayasha.txt @@ -88,6 +88,7 @@ { mesn; mesq l("Thank you for your help."); + if (BaseLevel >= 24 && gettimetick(2) > .RENT_TIME) goto L_Sword; close; } @@ -95,9 +96,43 @@ //goodbye; close; +L_Sword: + menu + l("The children are safe, could you rent me your sword?"), L_Rent, + l("You're welcome!"), -; + close; + +L_Rent: + // This code is equivalent to: speech S_FIRST_BLANK_LINE | S_LAST_NEXT + mes ""; + mesn; + mesq l("Ah, I guess you want to fight at the cave north of me..."); + next; + mesq l("The children are safe, aren't they...?"); + next; + mesq l("I can rent it to you for 500 GP, during 15 minutes. Deal?"); + next; + menu + rif(Zeny >= 500 && gettimetick(2) > .RENT_TIME, l("Deal!")), L_DoRent, + l("Maybe later."), -; + close; + +L_DoRent: + if (gettimetick(2) <= .RENT_TIME) mesq l("Sorry, you was taking too long to decide and I've rented my sword to somebody else."); + if (gettimetick(2) <= .RENT_TIME) close; + .RENT_TIME=gettimetick(2)+(15*60); + set Zeny, Zeny - 500; + // Here must use item ID + rentitem 3518, (15*60); + mes ""; + mesn; + mesq l("Here it is. Take care with it!"); + close; + OnInit: .sex = G_FEMALE; .distance = 5; + .RENT_TIME=0; end; } -- cgit v1.2.3-60-g2f50