diff options
author | Reid <reidyaro@gmail.com> | 2012-06-10 16:35:00 +0200 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2012-06-10 16:35:00 +0200 |
commit | 48e406f2c254c1bfa2e731fe974b7084ce08b9cd (patch) | |
tree | a21a3b6f2bf75c41db8251298fe3f45965bb4a92 /npc/items | |
parent | 5608f0c79346ee6b6f7291f7304b5bc51bede294 (diff) | |
download | serverdata-48e406f2c254c1bfa2e731fe974b7084ce08b9cd.tar.gz serverdata-48e406f2c254c1bfa2e731fe974b7084ce08b9cd.tar.bz2 serverdata-48e406f2c254c1bfa2e731fe974b7084ce08b9cd.tar.xz serverdata-48e406f2c254c1bfa2e731fe974b7084ce08b9cd.zip |
Correct Croconut item function.
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/Croconut.txt | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/npc/items/Croconut.txt b/npc/items/Croconut.txt index 98e1ed4d..9362e028 100644 --- a/npc/items/Croconut.txt +++ b/npc/items/Croconut.txt @@ -11,18 +11,6 @@ 000-2-1.gat,0,0,0 script Croconut 0,{ -OnCroconut: - getitem 513, 1; - close; - -OnHalfCroconut: - getitem 512, 1; - close; - -OnTwoHalfCroconut: - getitem 512, 2; - close; - OnUse: mesn "Narrator"; mes col(l("Do you want to cut this") + " " + l(getitemname("Croconut")) + "?", 9); @@ -32,7 +20,7 @@ OnUse: l("Yes."), L_Weapon, l("No."), -; - doevent "Croconut::OnCroconut"; + getitem 513, 1, 1; close; L_Weapon: @@ -62,19 +50,19 @@ L_TooWeakLost: L_TooWeakFail: mes col(l("Your hands are too weak, you didn't open the Croconut."), 9); - doevent "Croconut::OnCroconut"; + getitem 513, 1, 1; close; L_Weak: mes col(l("You opened the Croconut, but only one side is edible."), 9); - doevent "Croconut::OnHalfCroconut"; + getitem 512, 1, 1; close; L_Good: mes col(l("You perfectly cut your Croconut in two edible parts."), 9); - doevent "Croconut::OnTwoHalfCroconut"; - close; + getitem 512, 2, 1; + close; }
\ No newline at end of file |