this is the main script
this is how it looks with my changes,
i need it to only teleport druid players, the script is not working
Lua:
function onStepIn(cid, item, pos)
local poh = {x=32836, y=32294, z=7}
if item.actionid == 7449 then
doTeleportThing(cid,poh)
end
return 1
end
this is how it looks with my changes,
Code:
function onStepIn(creature, item, position, fromPosition)
local config = {
[7449] = Position(32836, 32294, 7),
}
if item.actionid == 7449 then
if player:isDruid() then
--doTeleportThing(cid,poh)
player:teleportTo(targetPosition)
end
return true
end
Code:
<movevent type="StepIn" actionid="7449" script="poh.lua" />