summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/re/item_db.conf8
-rw-r--r--npc/005-1/ayasha.txt35
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;
}