From 17975296c914b7bb48f1707a26ad8a6d71870299 Mon Sep 17 00:00:00 2001 From: Alige Date: Mon, 24 Dec 2012 18:00:56 +0400 Subject: Fixed several things in the script of alige. Added the missing script for the headache created by the pumpkin seeds. Differenciated the scripts of the blobime and the seeds. --- npc/000-2-1/alige.txt | 12 +++++++----- npc/items/poisonedblobime.txt | 4 ++-- npc/items/poisonedseeds.txt | 17 +++++++++++++++++ 3 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 npc/items/poisonedseeds.txt (limited to 'npc') diff --git a/npc/000-2-1/alige.txt b/npc/000-2-1/alige.txt index 99c00411..e544795f 100644 --- a/npc/000-2-1/alige.txt +++ b/npc/000-2-1/alige.txt @@ -1,6 +1,7 @@ // Evol scripts. // Authors: // Ablu +// Alige // Reid // Vasily_Makarov // Description: @@ -164,18 +165,19 @@ l_GiveFood: rif(countitem(508, 1), l(getitemname("SeaDrops"))), 1, rif(countitem(509, 1), l(getitemname("Aquada"))), 509, rif(countitem(510, 1), l(getitemname("PinkBlobime"))), 1, - rif(countitem(511, 1), l(getitemname("PurpleBlobime"))), 1, rif(countitem(512, 1), l(getitemname("HalfCroconut"))), 512, - rif(countitem(513, 1), l(getitemname("Croconut"))), 513, + rif(countitem(512, 1), l(getitemname("Croconut"))), 0, rif(countitem(515, 1), l(getitemname("Plushroom"))), 515, + rif(countitem(515, 1), l(getitemname("PumpkinSeeds"))), 1, l("I don't have anything good for you today."), -1; set @id, @menuret; if (@id == -1) goto l_Quit; // Quit message. if (@id == 0) goto l_NoReward; // In case of wrong food. - if (@id == 1) goto l_Poison; // In case of Poisonned food. + if (@id == 1) goto l_Poison; // In case of poisoned food. if (@id == 2) goto l_NoMore; // In case of Piberries. -// Continue if the food is correct. +// if (@id == item's ID) then food is correct. +// Do not put any other number than -1, 0, 1, 2 or the item's ID, that'll avoid confusion. l_GiveReward: mes ""; @@ -197,7 +199,7 @@ l_NoReward: setcamnpc; mes ""; mesn; - mesq l("I don't want this, give me something else."); + mesq l("You don't expect me to eat that, do you? Give me something else!"); restorecam; goto l_GiveFood; diff --git a/npc/items/poisonedblobime.txt b/npc/items/poisonedblobime.txt index 2cb4ea64..4b1213d9 100644 --- a/npc/items/poisonedblobime.txt +++ b/npc/items/poisonedblobime.txt @@ -5,12 +5,12 @@ // Vasily_Makarov // Description: // 1/2 chances to get poisoned. -// 1/2 chances to get healed (1 HP). +// 1/2 chances to get healed (4 HP). function script usePoisonedBlobime { set @temp, rand(2); if (!@temp) sc_start sc_poison, 1, 50; - if (@temp) itemheal 1, 0; + if (@temp) itemheal 4, 0; set @temp, 0; return; } diff --git a/npc/items/poisonedseeds.txt b/npc/items/poisonedseeds.txt new file mode 100644 index 00000000..864104eb --- /dev/null +++ b/npc/items/poisonedseeds.txt @@ -0,0 +1,17 @@ +// Evol scripts. +// Authors: +// Alige +// Alastrim +// Reid +// Vasily_Makarov +// Description: +// 3/4 chances to get poisoned. +// 1/4 chances to get healed (1 HP). + +function script usePoisonedSeeds { + set @temp, rand(4); + if (!@temp) itemheal 1, 0; + if (@temp) sc_start sc_poison, 1, 50; + set @temp, 0; + return; +} -- cgit v1.2.3-70-g09d2