Code:
local t = {
storage = 32001,
monster = {"MONSTER", {x=1140, y=833, z=9}},
msg = "Oh no! Elder Beholder appeared, you have to kill him to get out of here.."
}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, t.storage) < 1 then
doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
doSummonCreature(t.monster[1], t.monster[2])
setPlayerStorageValue(cid, t.storage, 1)
end
return TRUE
end
It makes MONSTER everytime if some CREATURE will stay at this script pos. But i want only if player will stay there, please fast help. :|