I'm using a Cykotitan script:
And select uniqueid at the stone tile before altar stone and put all parts of helmet and is nothing happened. Can somebody help me?
Code:
local config = {
ids = {from=2335, to=2341},
storage = 4449,
item = 2342
}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, config.storage) < 1 then
for i = config.ids.from, config.ids.to do
if getPlayerItemCount(cid, i) < 1 then
failed = true
break
end
end
if not failed then
for i = config.ids.from, config.ids.to do
doPlayerRemoveItem(cid, i, 1)
end
local pos = getCreaturePosition(cid)
doCreateItem(config.item, 1, {x=pos.x, y=pos.y-1, z=pos.z})
setPlayerStorageValue(cid, config.storage, 1)
else
doPlayerSendCancel(cid, "You don't have all the required items.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You already done this quest.")
end
end