• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Request] Demon Oak-Yell

Kudzu

Active Member
Joined
Apr 9, 2008
Messages
512
Reaction score
38
Location
localhost
Who can help me and fix this script.I use Crying Damson 0.3.5 pl 1

-- 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
:peace:
 
Last edited:
Ok.This is work:
-- Made by Rooteh and Mazen --
local doqyell = {
[46005] = {storage = 46005, text = 'What a nice shiny golden armor. Come to me and you can have it!'},
[46006] = {storage = 46006, text = 'What is that? Demon Legs lying here? Someone might have lost them.'},
[46007] = {storage = 46007, text = 'You can have my demon set, if you help me get out of here!'},
[46008] = {storage = 46008, text = 'I can bring your beloved back from the dead, just release me!'},
[46009] = {storage = 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.actionid].storage) == -1 then
doCreatureSay(cid, doqyell[item.actionid].text, TALKTYPE_MONSTER_YELL)
setPlayerStorageValue(cid, doqyell[item.actionid].storage, 1)
end
local x = 0
for i = 1, 5 do
if getPlayerStorageValue(cid, doqyell[46004+i].storage) == 1 then
x = x + 1
end
end
if x == 5 then
setPlayerStorageValue(cid,29061,0)
end
end
return TRUE
end

Thanks for help:$
 
Back
Top