summaryrefslogtreecommitdiff
path: root/npc/items/croconut.txt
diff options
context:
space:
mode:
authorAlige <aligetmw@hotmail.fr>2012-07-09 01:00:41 +0200
committerAlige <aligetmw@hotmail.fr>2012-07-09 01:00:41 +0200
commit671d84d7e2c507311c69a27be13128ee2e200577 (patch)
tree39ba7c57f70ab65938c5ccd105af094e777ec486 /npc/items/croconut.txt
parent11c11d7fabff7c0d2bafab49be02bf26647b70c6 (diff)
downloadserverdata-671d84d7e2c507311c69a27be13128ee2e200577.tar.gz
serverdata-671d84d7e2c507311c69a27be13128ee2e200577.tar.bz2
serverdata-671d84d7e2c507311c69a27be13128ee2e200577.tar.xz
serverdata-671d84d7e2c507311c69a27be13128ee2e200577.zip
Removed capital letters from the item scripts.
Diffstat (limited to 'npc/items/croconut.txt')
-rw-r--r--npc/items/croconut.txt68
1 files changed, 68 insertions, 0 deletions
diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt
new file mode 100644
index 00000000..fe53ae9e
--- /dev/null
+++ b/npc/items/croconut.txt
@@ -0,0 +1,68 @@
+// Evol scripts.
+// Authors:
+// 4144, Reid
+// Description:
+// Allow to cut a croconut in multiple part.
+//
+// Multiple choice possible for L_Weapon:
+// rif(countitem(35xx, 1), l(getitemname("xx"))), l_Weak,
+// rif(countitem(35yy, 1), l(getitemname("yy"))), l_Good,
+
+
+000-2-1.gat,0,0,0 script Croconut 0,{
+
+OnUse:
+ mesn "Narrator";
+ mes col(l("Do you want to cut this @@?", getitemlink(513)), 9);
+ next;
+
+ menu
+ l("Yes."), L_Weapon,
+ l("No."), -;
+
+ getitem 513, 1, 1;
+ close;
+
+L_Weapon:
+ mes "";
+ mesn "Narrator";
+ mes col(l("Which of your weapons do you want to use in order to cut this @@?", getitemlink(513)), 9);
+ next;
+
+ menu
+ rif(countitem(3500, 1), l(getitemname("Knife"))), L_Weak,
+ l("Bare Hands"), -;
+
+L_TooWeak:
+ mes "";
+ mesn "Narrator";
+
+ set @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:
+ mes col(l("You hit too hard with your fist, you lost your @@.", getitemlink(513)), 9);
+
+ close;
+
+L_TooWeakFail:
+ mes col(l("Your hands are too weak, you didn't open the @@.", getitemlink(513)), 9);
+
+ getitem "Croconut", 1, 1;
+ close;
+
+L_Weak:
+ mes col(l("You opened the @@, but only one side is edible.", getitemlink(513)), 9);
+
+ getitem "HalfCroconut", 1, 1;
+ close;
+
+L_Good:
+ mes col(l("You perfectly cut your @@ in two edible parts.", getitemlink(513)), 9);
+
+ getitem "HalfCroconut", 2, 1;
+ close;
+
+} \ No newline at end of file