Well ty..
I resolved my self....(doRemoveCreature)
Chjroak (x, y, z,)
Its is work u can tested :O
I resolved my self....(doRemoveCreature)
Chjroak (x, y, z,)
Its is work u can tested :O
Lua:
function onStepIn(cid, item, pos)
local config =
{
positions =
{
{x = pos.x - 1, y = pos.y - 1, z = pos.z},
{x = pos.x - 1, y = pos.y + 1, z = pos.z}
},
monsterName = "Trainer"
}
if item.actionid == 30001 then
for i = 1, table.maxn(config.positions) do
if isPlayer(cid) == TRUE then
doSummonCreature(config.monsterName, config.positions[i])
else
return FALSE
end
end
end
end
function onStepOut(cid, item, pos)
local config =
{
positions =
{
{x = pos.x - 1, y = pos.y - 1, z = pos.z, stackpos=253},
{x = pos.x - 1, y = pos.y + 1, z = pos.z, stackpos=253}
},
monsterName = "Trainer"
}
if item.actionid == 30001 then
for i = 1, table.maxn(config.positions) do
if isPlayer(cid) == TRUE then
doRemoveCreature(getThingfromPos(config.positions[i]).uid)
doSendMagicEffect(config.positions[i], CONST_ME_YALAHARIGHOST)
else
return FALSE
end
end
end
end
Last edited: