diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-03-16 00:43:52 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-03-16 00:43:52 -0300 |
commit | c80e4d95db756c941ccc8d0ea3813971cc0672ca (patch) | |
tree | cba40d333edf55efe2e266b4167f1cd921a02065 /npc/017-7 | |
parent | 1459cd08f144984695e249a086d9d4f0803e3376 (diff) | |
download | serverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.tar.gz serverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.tar.bz2 serverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.tar.xz serverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.zip |
Add several stuff and several bugfixes (specially hidden errors).
Most importantly, apartment system, a branch from Real Estate System.
Diffstat (limited to 'npc/017-7')
-rw-r--r-- | npc/017-7/doorbell.txt | 10 |
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; |