diff options
author | jesusalva <cpntb1@ymail.com> | 2018-02-24 01:49:33 -0300 |
---|---|---|
committer | jesusalva <cpntb1@ymail.com> | 2018-02-24 01:49:33 -0300 |
commit | f9914b42a8095e06c4223e3c183b53a3f8c15980 (patch) | |
tree | 7007c74da5b376d498fa53b75081a331d3ecc6b4 | |
parent | a2607fbd4133294484944636dc8c73a0f7a8da16 (diff) | |
download | serverdata-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
-rw-r--r-- | db/re/item_db.conf | 8 | ||||
-rw-r--r-- | npc/005-1/ayasha.txt | 35 |
2 files changed, 39 insertions, 4 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 6bb561f7e..6f3582ff0 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -11487,8 +11487,8 @@ item_db: ( }, { Id: 3518 - AegisName: "Judgment" - Name: "Judgment" + AegisName: "Judgement" + Name: "Judgement" Type: "IT_WEAPON" Buy: 640000 Sell: 320000 @@ -11501,9 +11501,9 @@ item_db: ( All: true } Gender: "SEX_ANY" - Loc: ["EQP_HAND_R", "EQP_HAND_L"] + Loc: "EQP_HAND_R" WeaponLv: 1 - EquipLv: 40 + EquipLv: 24 Refine: false Subtype: "W_DAGGER" //Script: <" itemskill SM_MAGNUM,1; "> // Consumable only - eg Grenade 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;
}
|