summaryrefslogtreecommitdiff
path: root/npc/items/croconut.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 11:00:49 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 11:00:49 -0300
commit8a4bf716002a017de77fe7df301ef8e4aaf00a2e (patch)
tree4947d0b015baad639fa07133369e9a09c8a468bc /npc/items/croconut.txt
downloadserverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.gz
serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.bz2
serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.xz
serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.zip
Initial commit
Diffstat (limited to 'npc/items/croconut.txt')
-rw-r--r--npc/items/croconut.txt72
1 files changed, 72 insertions, 0 deletions
diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt
new file mode 100644
index 00000000..8e54971d
--- /dev/null
+++ b/npc/items/croconut.txt
@@ -0,0 +1,72 @@
+// Evol scripts.
+// Authors:
+// 4144
+// Reid
+// Description:
+// Allows to cut a Croconut in multiple parts.
+//
+// Possible choices for L_Weapon:
+// rif(countitem(35xx), l(getitemname(xx))), L_Weak,
+// rif(countitem(35yy), l(getitemname(yy))), L_Good,
+
+000-2-1,0,0,0 script Croconut NPC_HIDDEN,{
+ close;
+
+OnUse:
+ mesn "Narrator";
+ mesc(l("Do you want to cut this @@?", getitemlink(Croconut)), 9);
+ next;
+
+ menu
+ l("Yes."), L_Weapon,
+ l("No."), -;
+
+ getitem Croconut, 1;
+ close;
+
+L_Weapon:
+ mes "";
+ mesn "Narrator";
+ mesc(l("Which of your weapons do you want to use in order to cut this @@?", getitemlink(Croconut)), 9);
+ next;
+
+ menu
+ rif(countitem(Knife) > 0, l(getitemname(Knife))), L_Weak,
+ rif(countitem(PiouSlayer) > 0, l(getitemname(PiouSlayer))), L_Weak,
+ rif(countitem(TrainingGladius) > 0, l(getitemname(TrainingGladius))), L_Good,
+ rif(countitem(WoodenSword) > 0, l(getitemname(WoodenSword))), L_Weak,
+ rif(countitem(ArtisBacksword) > 0, l(getitemname(ArtisBacksword))), L_Good,
+ l("Bare Hands"), -;
+
+L_TooWeak:
+ mes "";
+ mesn "Narrator";
+
+ .@q = rand(5);
+ if (.@q == 0) goto L_TooWeakLost;
+ if ( (.@q == 1) || (.@q == 2) ) goto L_TooWeakFail;
+ if ( (.@q == 3) || (.@q == 4) || (.@q == 5) ) goto L_Weak;
+
+L_TooWeakLost:
+ mesc(l("You hit too hard with your fist, you destroyed your @@.", getitemlink(Croconut)), 9);
+
+ close;
+
+L_TooWeakFail:
+ mesc(l("Your hands are too weak, you did not succeed in opening this @@.", getitemlink(Croconut)), 9);
+
+ getitem Croconut, 1;
+ close;
+
+L_Weak:
+ mesc(l("You opened the @@ in two parts, but you crushed one of them.", getitemlink(Croconut)), 9);
+
+ getitem HalfCroconut, 1;
+ close;
+
+L_Good:
+ mesc(l("You perfectly cut your @@ into two edible parts.", getitemlink(Croconut)), 9);
+
+ getitem HalfCroconut, 2;
+ close;
+}