diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/005-1/ayasha.txt | 35 |
1 files changed, 35 insertions, 0 deletions
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;
}
|