• 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!

modify script for area (movements)

pisquila

Member
Joined
Nov 14, 2023
Messages
48
Reaction score
5
Hello everyone. Can someone please modify this script?
It works as an action, I have to put the action at home, and it's complicated, because I want to put it in the caves too. Would it be possible for someone to modify it to work as an area?
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
storage_guild = getGlobalStorageValue(123123)
local tpos,v = {x=467,y=664,z=7},getThingPos(cid) -- {x=1,y=1,z=1} is the position you teleport to, don't change getThingPos(cid).

if isPlayer(cid) then
if getPlayerGuildId(cid) == storage_guild then
doTeleportThing(cid,position)
else
doTeleportThing(cid,tpos)
doCreatureSay(cid, "[CASTLE24H] Sua guild nao e mais dona do castle24H e voce foi expulso!", TALKTYPE_SAY)
doSendMagicEffect(getPlayerPosition(cid),6)
end
return true
end
end

{from = {x = 83, y = 127, z = 7}, to = {x = 95, y = 135, z = 7}},
 

Attachments

Back
Top