From 671d84d7e2c507311c69a27be13128ee2e200577 Mon Sep 17 00:00:00 2001 From: Alige Date: Mon, 9 Jul 2012 01:00:41 +0200 Subject: Removed capital letters from the item scripts. --- npc/items/Croconut.txt | 68 ------------------------------------------- npc/items/OldBook.txt | 25 ---------------- npc/items/PoisonedBlobime.txt | 13 --------- npc/items/PoisonedWater.txt | 13 --------- npc/items/croconut.txt | 68 +++++++++++++++++++++++++++++++++++++++++++ npc/items/oldbook.txt | 25 ++++++++++++++++ npc/items/poisonedblobime.txt | 13 +++++++++ npc/items/poisonedwater.txt | 13 +++++++++ npc/scripts.conf | 8 ++--- 9 files changed, 123 insertions(+), 123 deletions(-) delete mode 100644 npc/items/Croconut.txt delete mode 100644 npc/items/OldBook.txt delete mode 100644 npc/items/PoisonedBlobime.txt delete mode 100644 npc/items/PoisonedWater.txt create mode 100644 npc/items/croconut.txt create mode 100644 npc/items/oldbook.txt create mode 100644 npc/items/poisonedblobime.txt create mode 100644 npc/items/poisonedwater.txt (limited to 'npc') diff --git a/npc/items/Croconut.txt b/npc/items/Croconut.txt deleted file mode 100644 index fe53ae9e..00000000 --- a/npc/items/Croconut.txt +++ /dev/null @@ -1,68 +0,0 @@ -// 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 diff --git a/npc/items/OldBook.txt b/npc/items/OldBook.txt deleted file mode 100644 index 8a50717c..00000000 --- a/npc/items/OldBook.txt +++ /dev/null @@ -1,25 +0,0 @@ -// Evol scripts. -// Authors: -// Reid -// Description: -// Read the Old Book - -000-2-1.gat,0,0,1 script OldBook 0,{ - -OnUse: - getitem 514, 1, 1; - mesn "Narrator"; - - mes col(l("."), 9); - next; - mes col(l("."), 9); - next; - mes col(l("."), 9); - next; - mes col(l("."), 9); - next; - mes col(l("."), 9); - - close; - -} \ No newline at end of file diff --git a/npc/items/PoisonedBlobime.txt b/npc/items/PoisonedBlobime.txt deleted file mode 100644 index 28d23bea..00000000 --- a/npc/items/PoisonedBlobime.txt +++ /dev/null @@ -1,13 +0,0 @@ -// Evol scripts. -// Authors: -// Alastrim, Vasily_Makarov, Reid -// Description: -// 1/2 bad luck to be poisoned. - -function script usePoisonedBlobime { - set @temp, rand(2); - if (!@temp) sc_start sc_poison, 1, 50; - if (@temp) itemheal 1, 0; - set @temp, 0; - return; -} diff --git a/npc/items/PoisonedWater.txt b/npc/items/PoisonedWater.txt deleted file mode 100644 index 66e7280f..00000000 --- a/npc/items/PoisonedWater.txt +++ /dev/null @@ -1,13 +0,0 @@ -// Evol scripts. -// Authors: -// Alastrim, Vasily_Makarov, Reid -// Description: -// Heal of 15hp and add 1/4 bad luck to be poisoned. - -function script usePoisonedWater { - set @temp, rand(4); - if (!@temp) sc_start sc_poison, 1, 50; - if (@temp) itemheal 15, 0; - set @temp, 0; - return; -} 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 diff --git a/npc/items/oldbook.txt b/npc/items/oldbook.txt new file mode 100644 index 00000000..8a50717c --- /dev/null +++ b/npc/items/oldbook.txt @@ -0,0 +1,25 @@ +// Evol scripts. +// Authors: +// Reid +// Description: +// Read the Old Book + +000-2-1.gat,0,0,1 script OldBook 0,{ + +OnUse: + getitem 514, 1, 1; + mesn "Narrator"; + + mes col(l("."), 9); + next; + mes col(l("."), 9); + next; + mes col(l("."), 9); + next; + mes col(l("."), 9); + next; + mes col(l("."), 9); + + close; + +} \ No newline at end of file diff --git a/npc/items/poisonedblobime.txt b/npc/items/poisonedblobime.txt new file mode 100644 index 00000000..28d23bea --- /dev/null +++ b/npc/items/poisonedblobime.txt @@ -0,0 +1,13 @@ +// Evol scripts. +// Authors: +// Alastrim, Vasily_Makarov, Reid +// Description: +// 1/2 bad luck to be poisoned. + +function script usePoisonedBlobime { + set @temp, rand(2); + if (!@temp) sc_start sc_poison, 1, 50; + if (@temp) itemheal 1, 0; + set @temp, 0; + return; +} diff --git a/npc/items/poisonedwater.txt b/npc/items/poisonedwater.txt new file mode 100644 index 00000000..66e7280f --- /dev/null +++ b/npc/items/poisonedwater.txt @@ -0,0 +1,13 @@ +// Evol scripts. +// Authors: +// Alastrim, Vasily_Makarov, Reid +// Description: +// Heal of 15hp and add 1/4 bad luck to be poisoned. + +function script usePoisonedWater { + set @temp, rand(4); + if (!@temp) sc_start sc_poison, 1, 50; + if (@temp) itemheal 15, 0; + set @temp, 0; + return; +} diff --git a/npc/scripts.conf b/npc/scripts.conf index ba2e3616..421d974e 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -4,10 +4,10 @@ import: npc/_import.txt // Item Functions -npc: npc/items/PoisonedWater.txt -npc: npc/items/PoisonedBlobime.txt -npc: npc/items/Croconut.txt -npc: npc/items/OldBook.txt +npc: npc/items/poisonedwater.txt +npc: npc/items/poisonedblobime.txt +npc: npc/items/croconut.txt +npc: npc/items/oldbook.txt // Script Functions npc: npc/functions/clientversion.txt -- cgit v1.2.3-70-g09d2