summaryrefslogtreecommitdiff
path: root/npc/017-7/doorbell.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/017-7/doorbell.txt')
-rw-r--r--npc/017-7/doorbell.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/017-7/doorbell.txt b/npc/017-7/doorbell.txt
index c343ef1dc..f04a8cd2e 100644
--- a/npc/017-7/doorbell.txt
+++ b/npc/017-7/doorbell.txt
@@ -27,7 +27,7 @@
017-7,32,34,0 script Doorbell#RES_0177 NPC_NO_SPRITE,{
// Name, Layer, Price, ID, x1, y1, x2, y2,
function create_object {
- array_push(.name$, getarg(0));
+ array_push(.nams$, getarg(0));
array_push(.layer, getarg(1));
array_push(.price, getarg(2));
array_push(.objid, getarg(3));
@@ -165,7 +165,7 @@ L_ContinuousLoop:
// Create a second array (@valid_ids) with the ID of objects within @re_col group
for (.@i=0; .@i < getarraysize(.layer); .@i++) {
- //debugmes "Found object ID %d named %s on layer %s coords (%d,%d) - Looking for layer %d", .@i, .name$[.@i], .layer[.@i], .x1[.@i], .y1[.@i], @re_col;
+ //debugmes "Found object ID %d named %s on layer %s coords (%d,%d) - Looking for layer %d", .@i, .nams$[.@i], .layer[.@i], .x1[.@i], .y1[.@i], @re_col;
if (.layer[.@i] == @re_col)
array_push(@valid_ids, .@i);
}
@@ -176,9 +176,9 @@ L_ContinuousLoop:
for (.@j=0; .@j < getarraysize(@valid_ids); .@j++) {
.@i=@valid_ids[.@j];
if (realestate_hasmobilia(.id, .layer[.@i], .objid[.@i]))
- @menuentries$+=l("Sell ")+.name$[.@i]+l(" for ") + format_number( realestate_sellprice(.id,.price[.@i]) ) +":";
+ @menuentries$+=l("Sell ")+.nams$[.@i]+l(" for ") + format_number( realestate_sellprice(.id,.price[.@i]) ) +":";
else
- @menuentries$+=l("Purchase ")+.name$[.@i]+(" for ") + format_number( .price[.@i] )+":";
+ @menuentries$+=l("Purchase ")+.nams$[.@i]+(" for ") + format_number( .price[.@i] )+":";
}
select (@menuentries$);
mes "";
@@ -232,7 +232,7 @@ OnInit:
// Arrays
// We go element by element on the array building the menu
- .name$="";
+ .nams$="";
.layer=0;
.price=0;
.objid=0;