Jump to content

Event fired when player exit distance range


TOSY

Recommended Posts

When I worked for my cartridge, I found a zone event when the player exit the distance range.

 

The keyword 'OnNotInRange' can define the event when the player exit the distance range. This keyword is not shown in zone event list (such as enter nor exit) in builder, but it can be used by add into the lua file manually.

This is the sample code. The zone name and script line should be modified to fit for each cartridge.

function zoneZone1:OnNotInRange()
 -- #GroupDescription=Script --
 -- #Comment=Script Comment --
 Wherigo.MessageBox{Text=[[You have walked 100 meters.]],}
end

Link to comment

Thanks for the information. Will try it out soon.

 

Andrew

When I worked for my cartridge, I found a zone event when the player exit the distance range.

 

The keyword 'OnNotInRange' can define the event when the player exit the distance range. This keyword is not shown in zone event list (such as enter nor exit) in builder, but it can be used by add into the lua file manually.

This is the sample code. The zone name and script line should be modified to fit for each cartridge.

function zoneZone1:OnNotInRange()
 -- #GroupDescription=Script --
 -- #Comment=Script Comment --
 Wherigo.MessageBox{Text=[[You have walked 100 meters.]],}
end

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...