summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-05 12:47:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-05 12:47:25 +0300
commit6eeae2ee499b4aec7b9f771c75ff09264d79c8fd (patch)
treed024b7517c78adc0cfda5f4d4d17ac03ced5cb3a /npc/functions
parent58cf99bc280bb54f3c6ad6538ae3bc14fd54ec7f (diff)
downloadserverdata-6eeae2ee499b4aec7b9f771c75ff09264d79c8fd.tar.gz
serverdata-6eeae2ee499b4aec7b9f771c75ff09264d79c8fd.tar.bz2
serverdata-6eeae2ee499b4aec7b9f771c75ff09264d79c8fd.tar.xz
serverdata-6eeae2ee499b4aec7b9f771c75ff09264d79c8fd.zip
Replace script function set to direct variable assignments.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/asleep.txt2
-rw-r--r--npc/functions/goodbye.txt2
-rw-r--r--npc/functions/inventoryplace.txt4
-rw-r--r--npc/functions/sailordialogue.txt2
4 files changed, 5 insertions, 5 deletions
diff --git a/npc/functions/asleep.txt b/npc/functions/asleep.txt
index ca28669d..35a6f5c4 100644
--- a/npc/functions/asleep.txt
+++ b/npc/functions/asleep.txt
@@ -9,7 +9,7 @@
function script asleep {
- set .@rand, rand(3);
+ .@rand = rand(3);
if (.@rand == 0) npctalk3 l("Zzzzzzzzz...");
if (.@rand == 1) npctalk3 l("Rrrr... Pchhhh...");
if (.@rand == 2) npctalk3 l("Ggrmm... Grmmmm...");
diff --git a/npc/functions/goodbye.txt b/npc/functions/goodbye.txt
index ea060099..c23aeeac 100644
--- a/npc/functions/goodbye.txt
+++ b/npc/functions/goodbye.txt
@@ -9,7 +9,7 @@
function script goodbye {
closedialog;
- set .@rand, rand(13);
+ .@rand = rand(13);
if (.@rand == 0) npctalk3 l("See you!");
if (.@rand == 1) npctalk3 l("See you later!");
if (.@rand == 2) npctalk3 l("See you soon!");
diff --git a/npc/functions/inventoryplace.txt b/npc/functions/inventoryplace.txt
index 58b60754..0d8fe397 100644
--- a/npc/functions/inventoryplace.txt
+++ b/npc/functions/inventoryplace.txt
@@ -12,8 +12,8 @@
function script inventoryplace {
getinventorylist;
- set .@iteminfo, getiteminfo(getarg(0), 2);
- set .@countitem, countitemcolor(getarg(0));
+ .@iteminfo = getiteminfo(getarg(0), 2);
+ .@countitem = countitemcolor(getarg(0));
if (checkweight(getarg(0), getarg(1)) == 0) goto L_Warn;
if ((.@iteminfo < 4) && (.@countitem == 0) && (.@inventorylist_count < 100)) return;
diff --git a/npc/functions/sailordialogue.txt b/npc/functions/sailordialogue.txt
index 6a2bc108..51e7e292 100644
--- a/npc/functions/sailordialogue.txt
+++ b/npc/functions/sailordialogue.txt
@@ -8,7 +8,7 @@
function script sailorfood {
mesn;
- set .@q, rand(0, 400) / 100;
+ .@q = rand(0, 400) / 100;
if (.@q == 0) goto L_RandomA;
if (.@q == 1) goto L_RandomB;
if (.@q > 1) goto L_RandomC;