summaryrefslogtreecommitdiff
path: root/npc/000-2-1/alige.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-21 16:04:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-21 16:04:32 +0300
commit66a7953e6f6b4d7951c306e1d305ab3b904f557a (patch)
treed96f9df4db7a506277b5659aa6165e0efa7b1700 /npc/000-2-1/alige.txt
parentefb1c01272dc109188f1a4559db05a73405a7d38 (diff)
downloadserverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.gz
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.bz2
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.tar.xz
serverdata-66a7953e6f6b4d7951c306e1d305ab3b904f557a.zip
Replace temp variables into scope temp variables.
Diffstat (limited to 'npc/000-2-1/alige.txt')
-rw-r--r--npc/000-2-1/alige.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/npc/000-2-1/alige.txt b/npc/000-2-1/alige.txt
index ea04bf81..c5abf1d3 100644
--- a/npc/000-2-1/alige.txt
+++ b/npc/000-2-1/alige.txt
@@ -51,8 +51,8 @@ OnTimer190:
// Size = 2
// Gender = 1
000-2-1,43,31,0 script Alige 401,{
- set @q, getq(ShipQuests_Alige);
- if (@q > 1) goto L_AskForFood;
+ set .@q, getq(ShipQuests_Alige);
+ if (.@q > 1) goto L_AskForFood;
goto OnFirstEncounter;
@@ -148,7 +148,7 @@ L_Artis:
next;
restorecam;
- if (@q == 2) goto L_SoAskForFood;
+ if (.@q == 2) goto L_SoAskForFood;
goto L_Accept;
L_FirstAccepted:
@@ -184,17 +184,17 @@ L_GiveFood:
rif(countitemcolor(516, 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 poisoned food.
- if (@id == 2) goto L_NoMore; // In case of Piberries.
- if (countitemcolor(@id) == 0) goto L_Quit;
-// if (@id == item's ID) then food is correct.
+ 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 poisoned food.
+ if (.@id == 2) goto L_NoMore; // In case of Piberries.
+ if (countitemcolor(.@id) == 0) goto L_Quit;
+// 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.
callfunc "InventoryPlace", 507, 3;
- delitem @id, 1;
+ delitem .@id, 1;
setcamnpc;
mes "";