• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Walkable Water

Peroxide

Gone since January 2018
Senator
Joined
Aug 22, 2008
Messages
10,486
Reaction score
2,443
Location
New Zealand
How is it we make a water area swimmable?
 
Last edited by a moderator:
Walkable water, then there should be some script on otland that has swimming.lua or w,e

Then just edit the AID accordingly i think :)
 
a simple stepIn script is enough

pseudo-code:
Code:
function onStepIn(cid, item, position, fromPosition)
    if(groundInPosition(fromPosition).id != WATER_ID)
        sendEffect(...)
    end
end
if the ground id is different means that the player walked from ground to water
 
Back
Top