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?
{from = {x = 83, y = 127, z = 7}, to = {x = 95, y = 135, z = 7}},
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
-
aaaa.webp91.6 KB · Views: 8 · VirusTotal