local config = {
storage = 2222 --Quest storage
pos = {x=33179, y=31867, z=12, stackpos = 253} --Koshei pos
}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) == -1 then
doSummonCreature("Koshei The Deathless", pos)
setPlayerStorageValue(cid, config.storage, 1)
doCreatureSay(cid, "You have awoke a old deathless creature, Koshei the Deathless!", TALKTYPE_ORANGE_1)
end
return true
end
what for this
must beCode:doSummonCreature("Koshei The Deathless", pos)
Code:doSummonCreature("Koshei The Deathless", conf.pos)
local config = {
storage = 2222 --Quest storage
pos = {x=33179, y=31867, z=12, stackpos = 253} --Koshei pos
}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) == -1 then
doSummonCreature("Koshei The Deathless", config.pos)
setPlayerStorageValue(cid, config.storage, 1)
doCreatureSay(cid, "You have awoke a old deathless creature, Koshei the Deathless!", TALKTYPE_ORANGE_1)
end
return true
end