Who can help me and fix this script.I use Crying Damson 0.3.5 pl 1
eace:-- Made by Rooteh and Mazen --
local doqyell = {
[46005] = {svalue = 46005, text = 'What a nice shiny golden armor. Come to me and you can have it!'},
[46006] = {svalue = 46006, text = 'What is that? Demon Legs lying here? Someone might have lost them.'},
[46007] = {svalue = 46007, text = 'You can have my demon set, if you help me get out of here!'},
[46008] = {svalue = 46008, text = 'I can bring your beloved back from the dead, just release me!'},
[46009] = {svalue = 46009, text = 'Release me and you will be rewarded greatefully!'}
}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE then
if getPlayerStorageValue(cid, doqyell[item.uid].svalue) == -1 then
doCreatureSay(cid, doqyell[item.uid].text, TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, doqyell[item.uid].svalue, 1)
end
local x = 0
for i = 1, 5 do
if getPlayerStorageValue(cid, doqyell[46004+i].svalue) == 1 then
x = x + 1
end
end
if x == 5 then
setPlayerStorageValue(cid,29061,0)
end
end
return TRUE
end
Last edited: