I'll want like this
You have to use one stone coffin (gold, ank type) to get one item, you cant get item before you have open the stone coffin
also you can only use the stone coffin one time.
Here scripts!
and the reward here:
You have to use one stone coffin (gold, ank type) to get one item, you cant get item before you have open the stone coffin
also you can only use the stone coffin one time.
Here scripts!
PHP:
-- Script by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)
local monster = "demon"
local pos1 = {x=32104, y=33267, z=12}
local pos2 = {x=32107, y=33272, z=12}
local pos3 = {x=32102, y=33275, z=12}
local pos4 = {x=32108, y=33276, z=12}
local pos5 = {x=32104, y=33286, z=12}
local pos6 = {x=32106, y=33286, z=12}
local id = 1419
if item.itemid == id and item.uid == 50000 then
if isPlayer(cid) == TRUE then
if queststatus == (getPlayerStorageValue(cid, 55000)
doSummonCreature(monster, pos1)
doSummonCreature(monster, pos2)
doSummonCreature(monster, pos3)
doSummonCreature(monster, pos4)
doSummonCreature(monster, pos5)
doSummonCreature(monster, pos6)
setPlayerStorageValue(cid, 55000) -1
else
if getPlayerStorageValue(cid, 55000) == -1 then
doCreatureSay(cid, "You cannot open it more.", TALKTYPE_ORANGE_1)
end
return 1
end
end
and the reward here:
PHP:
--- Made by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 30300 then
queststatus = getPlayerStorageValue(cid,55000)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Divine Armor.")
doPlayerAddItem(cid,8885,1)
doPlayerAddExp(cid, 5000000)
setPlayerStorageValue(cid,55000,1)
else
doPlayerSendTextMessage(cid, 22,"It is empty.")
end
elseif item.uid == 30301 then
queststatus = getPlayerStorageValue(cid,55000)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Golden Helmet.")
doPlayerAddItem(cid,2471,1)
doPlayerAddExp(cid, 5000000)
setPlayerStorageValue(cid,55000,1)
else
doPlayerSendTextMessage(cid, 22,"It is empty.")
end
end
return 1
end