summaryrefslogtreecommitdiff
path: root/npc/005-1/ayasha.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-24 01:49:33 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-24 01:49:33 -0300
commitf9914b42a8095e06c4223e3c183b53a3f8c15980 (patch)
tree7007c74da5b376d498fa53b75081a331d3ecc6b4 /npc/005-1/ayasha.txt
parenta2607fbd4133294484944636dc8c73a0f7a8da16 (diff)
downloadserverdata-f9914b42a8095e06c4223e3c183b53a3f8c15980.tar.gz
serverdata-f9914b42a8095e06c4223e3c183b53a3f8c15980.tar.bz2
serverdata-f9914b42a8095e06c4223e3c183b53a3f8c15980.tar.xz
serverdata-f9914b42a8095e06c4223e3c183b53a3f8c15980.zip
The first item rent on our server is Ayasha's weapon
Diffstat (limited to 'npc/005-1/ayasha.txt')
-rw-r--r--npc/005-1/ayasha.txt35
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;
}