Does this work ???
Going to use... sorry for wrong thread... or its for release too
Going to use... sorry for wrong thread... or its for release too
Code:
-- Script was made by [A]tes {{//OTLAND.NET}}
-- Edited by Darkhaos
function onStepIn(cid, item, frompos, item2, topos)
local config = {
tile = 407,
uniqueid = 3000,
monster = "Demon",
spawn = {
{ x = 30000, y = 30000, z = 7, stackpos = 1 },
{ x = 30001, y = 30000, z = 7, stackpos = 1 },
{ x = 30002, y = 30000, z = 7, stackpos = 1 },
{ x = 30003, y = 30000, z = 7, stackpos = 1 }
}
}
if item.uid == config.uniqueid and item.itemid == config.tile and setPlayerStorageValue(cid,15000,1) == TRUE then
for i = 1, table.maxn(config.spawn) do
doCreatureSay(cid, "TEXT_TEXT.", TALKTYPE_ORANGE_1)
doSummonCreature(config.monster, config.spawn[i])
else
doPlayerSendCancel(cid, "TEXT_TEXT.")
end
return TRUE
end
end
Last edited: