From a3ef19f0f54954fb9eede3d8481152c3983b6f5f Mon Sep 17 00:00:00 2001 From: Reid Yaro Date: Fri, 18 Jan 2013 00:43:30 +0000 Subject: Add loop on Alige script. --- npc/000-2-1/alige.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'npc') diff --git a/npc/000-2-1/alige.txt b/npc/000-2-1/alige.txt index 59a7c351..2257a338 100644 --- a/npc/000-2-1/alige.txt +++ b/npc/000-2-1/alige.txt @@ -179,7 +179,6 @@ l_GiveFood: // 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 ""; set @item, 507; set @count, 3; @@ -193,7 +192,7 @@ l_GiveReward: setq ShipQuests_Alige, 3; getitem "Piberries", rand(1,3); - close; + goto l_ReturnMenu; l_NoReward: setcamnpc; @@ -204,6 +203,16 @@ l_NoReward: goto l_GiveFood; +l_ReturnMenu: + setcamnpc; + mes ""; + mesn; + mesq l("Do you have anything else for me?"); + next; + restorecam; + + goto l_GiveFood; + l_NoMore: setcamnpc; mes ""; @@ -219,7 +228,7 @@ l_Poison: mesq l("Don't try to poison me! I know what that does!"); restorecam; - goto l_GiveFood; + goto l_ReturnMenu; l_SoAskForFood: setcamnpc; @@ -234,7 +243,6 @@ l_AskForFood: mesn; mesq l("Do you have anything for me today?"); restorecam; - next; l_IntroMenu: menu -- cgit v1.2.3-70-g09d2