The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sailing around the world
Author Message
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: Sailing around the world
So the tricky part is not moving the ship, its contents, and its crew... the tricky part is detecting when the ship reaches the edge.

I tried to create a long narrow region on the west edge of the map, like so:

Code:
[AREADEF a_world_edge_west]
NAME=Western Ocean
GROUP=Ocean
P=5,5,0,0
RECT=0,0,10,4096,0
EVENTS=r_western_ocean_teleport

But it turns out that REGION triggers do not fire when a character is inside another region (the ship is a multi and therefore a region.)

I tried to override t_ship with some region triggers, but they do not fire either.

Unrelated, but still a bug... when you sail sideways, and hit the world edge with a boat, and then tell it to turn right or left you get some crazy errors... and if you logout or are at the edge when the world saves, parts of the boat are destroyed for being in invalid places.
(This post was last modified: 11-27-2012 09:28 AM by RanXerox.)
11-27-2012 09:26 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Sailing around the world - RanXerox - 11-27-2012, 04:58 AM
RE: Sailing around the world - Shaklaban - 11-27-2012, 05:36 AM
RE: Sailing around the world - Mordaunt - 11-27-2012, 05:38 AM
RE: Sailing around the world - RanXerox - 11-27-2012 09:26 AM
RE: Sailing around the world - Ben - 11-27-2012, 11:38 AM
RE: Sailing around the world - RanXerox - 11-28-2012, 08:04 AM
RE: Sailing around the world - Mordaunt - 11-28-2012, 09:59 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)