diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-06 20:20:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-06 20:20:13 -0300 |
commit | 04f85d61c72383a1dd554f0e918f0e38700c40eb (patch) | |
tree | f39b1fc901136c2f7a0a0ac336bc13937efea134 /npc/000-1 | |
parent | 3f83bdd97d3788c4aa5966369480267cbce9c866 (diff) | |
download | serverdata-04f85d61c72383a1dd554f0e918f0e38700c40eb.tar.gz serverdata-04f85d61c72383a1dd554f0e918f0e38700c40eb.tar.bz2 serverdata-04f85d61c72383a1dd554f0e918f0e38700c40eb.tar.xz serverdata-04f85d61c72383a1dd554f0e918f0e38700c40eb.zip |
Extend scope of LOCMASTER from NPC Temporary to Global Temporary.
Required for sieges.
Diffstat (limited to 'npc/000-1')
-rw-r--r-- | npc/000-1/exit.txt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/npc/000-1/exit.txt b/npc/000-1/exit.txt index fa80138f3..5b290567b 100644 --- a/npc/000-1/exit.txt +++ b/npc/000-1/exit.txt @@ -15,9 +15,9 @@ OnTalkNearby: } // Switch LOCATION$ and warp to nearest town's Soul Menhir - .@lx=array_find(.LOCMASTER_LOC$, LOCATION$); + .@lx=array_find($@LOCMASTER_LOC$, LOCATION$); if (.@lx >= 0) { - warp .LOCMASTER_MAP$[.@lx], .LOCMASTER_X[.@lx], .LOCMASTER_Y[.@lx]; + warp $@LOCMASTER_MAP$[.@lx], $@LOCMASTER_X[.@lx], $@LOCMASTER_Y[.@lx]; end; } @@ -30,25 +30,25 @@ OnTalkNearby: // Save your location to last visited town for @ucp. I won't hate you for this. OnSetLX: - @lx=array_find(.LOCMASTER_LOC$, LOCATION$); - savepoint .LOCMASTER_MAP$[@lx], .LOCMASTER_X[@lx], .LOCMASTER_Y[@lx]; + @lx=array_find($@LOCMASTER_LOC$, LOCATION$); + savepoint $@LOCMASTER_MAP$[@lx], $@LOCMASTER_X[@lx], $@LOCMASTER_Y[@lx]; end; // Warp you according to LX OnVisitLX: - @lx=array_find(.LOCMASTER_LOC$, LOCATION$); - warp .LOCMASTER_MAP$[@lx], .LOCMASTER_X[@lx], .LOCMASTER_Y[@lx]; + @lx=array_find($@LOCMASTER_LOC$, LOCATION$); + warp $@LOCMASTER_MAP$[@lx], $@LOCMASTER_X[@lx], $@LOCMASTER_Y[@lx]; end; OnInit: - setarray .LOCMASTER_LOC$, "Candor", "Tulim", "Halin", "Hurns", "LoF", "Lilit", "Nival", "Frostia"; - setarray .LOCMASTER_MAP$, "005-1", "003-1", "009-1", "012-1", "017-1", "018-5", "020-1", "024-1"; - setarray .LOCMASTER_X, 34, 40, 26, 86, 119, 111, 56, 94; - setarray .LOCMASTER_Y, 101, 49, 30, 69, 87, 53, 62, 42; - - //debugmes "Locmaster: Index 0: %s [%s.gat (%d, %d)]", .LOCMASTER_LOC$[0], .LOCMASTER_MAP$[0], .LOCMASTER_X[0], .LOCMASTER_Y[0]; - //debugmes "Locmaster: Index 2: %s [%s.gat (%d, %d)]", .LOCMASTER_LOC$[2], .LOCMASTER_MAP$[2], .LOCMASTER_X[2], .LOCMASTER_Y[2]; - //debugmes "Locmaster: Index 5: %s [%s.gat (%d, %d)]", .LOCMASTER_LOC$[5], .LOCMASTER_MAP$[5], .LOCMASTER_X[5], .LOCMASTER_Y[5]; + setarray $@LOCMASTER_LOC$, "Candor", "Tulim", "Halin", "Hurns", "LoF", "Lilit", "Nival", "Frostia"; + setarray $@LOCMASTER_MAP$, "005-1", "003-1", "009-1", "012-1", "017-1", "018-5", "020-1", "024-1"; + setarray $@LOCMASTER_X, 34, 40, 26, 86, 119, 111, 56, 94; + setarray $@LOCMASTER_Y, 101, 49, 30, 69, 87, 53, 62, 42; + + //debugmes "Locmaster: Index 0: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[0], $@LOCMASTER_MAP$[0], $@LOCMASTER_X[0], $@LOCMASTER_Y[0]; + //debugmes "Locmaster: Index 2: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[2], $@LOCMASTER_MAP$[2], $@LOCMASTER_X[2], $@LOCMASTER_Y[2]; + //debugmes "Locmaster: Index 5: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[5], $@LOCMASTER_MAP$[5], $@LOCMASTER_X[5], $@LOCMASTER_Y[5]; end; } |