function onUse(cid, item, fromPosition, itemEx, toPosition)
local charpos = getPlayerPosition(cid)
if item.uid == 10281 and charpos.x == 24 and (charpos.y == 155 or charpos.y == 154) and charpos.z == 6 then
if getPlayerStorageValue(cid,10274) == -1 or getPlayerStorageValue(cid,10275) == -1 or getPlayerStorageValue(cid,10276) == -1 or getPlayerStorageValue(cid,10277) == -1 or getPlayerStorageValue(cid,10278) == -1 or getPlayerStorageValue(cid,10279) == -1 or getPlayerStorageValue(cid,10280) == -1 then
doPlayerSendTextMessage(cid,25,'Você não absorveu energia suficiente!')
else
local newPos = {x=22, y=155, z=6}
doTeleportThing(cid, newPos)
doSendMagicEffect(newPos, 10)
end
elseif item.uid == 10281 and charpos.x == 22 and (charpos.y == 155 or charpos.y == 156) and charpos.z == 6 then
local newPos = {x=24, y=155, z=6}
doSendMagicEffect(getPlayerPosition(cid), 2)
doTeleportThing(cid, newPos)
doSendMagicEffect({x=24,y=155,z=6}, 10)
end
return 1
end
afterdoSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "You have touched " .. CONFIG[item.actionid].seal .. "\'s throne and absorbed some of his sprit.")
function onUse(cid, item, fromPosition, itemEx, toPosition)
local charpos = getPlayerPosition(cid)
if item.uid == 10281 and charpos.x == 24 and (charpos.y == 155 or charpos.y == 154) and charpos.z == 6 then
if getPlayerStorageValue(cid,10274) == -1 or getPlayerStorageValue(cid,10275) == -1 or getPlayerStorageValue(cid,10276) == -1 or getPlayerStorageValue(cid,10277) == -1 or getPlayerStorageValue(cid,10278) == -1 or getPlayerStorageValue(cid,10279) == -1 or getPlayerStorageValue(cid,10280) == -1 then
doPlayerSendTextMessage(cid,25,'Você não absorveu energia suficiente!')
else
local newPos = {x=22, y=155, z=6}
doTeleportThing(cid, newPos)
doSendMagicEffect(newPos, 10)
end
elseif item.uid == 10281 and charpos.x == 22 and (charpos.y == 155 or charpos.y == 156) and charpos.z == 6 then
local newPos = {x=24, y=155, z=6}
doSendMagicEffect(getPlayerPosition(cid), 2)
doTeleportThing(cid, newPos)
doSendMagicEffect({x=24,y=155,z=6}, 10)
end
return 1
end
<action uniqueid="10281" script="doors/poi_last.lua" />
function onStepIn(cid, item, pos)
if item.uid == 10274 then
if getPlayerStorageValue(cid,10274) == -1 then
setPlayerStorageValue(cid,10274,1)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Verminor´s throne and absorbed some of his spirit.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Veminor´s spirit.')
end
elseif item.uid == 10275 then
if getPlayerStorageValue(cid,10275) == -1 then
setPlayerStorageValue(cid,10275,1)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Infernatil´s throne and absorbed some of his spirit.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Infernatil´s spirit.')
end
elseif item.uid == 10276 then
if getPlayerStorageValue(cid,10276) == -1 then
setPlayerStorageValue(cid,10276,1)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Tafariel´s throne and absorbed some of his spirit.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Tafariel´s spirit.')
end
elseif item.uid == 10277 then
if getPlayerStorageValue(cid,10277) == -1 then
setPlayerStorageValue(cid,10277,1)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Apocalypse´s throne and absorbed some of his spirit.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Apocalypse´s spirit.')
end
elseif item.uid == 10278 then
if getPlayerStorageValue(cid,10278) == -1 then
setPlayerStorageValue(cid,10278,1)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Pumin´s throne and absorbed some of his spirit.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Pumin´s spirit.')
end
elseif item.uid == 10279 then
if getPlayerStorageValue(cid,10279) == -1 then
setPlayerStorageValue(cid,10279,1)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Bazir´s throne and absorbed some of his spirit.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Bazir´s spirit.')
end
elseif item.uid == 10280 then
if getPlayerStorageValue(cid,10280) == -1 then
setPlayerStorageValue(cid,10280,1)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_BIGCLOUDS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Ashfalor´s throne and absorbed some of his spirit.')
else
doTeleportThing(cid,{x=540, y=1526, z=14})
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MORTAREA)
doCreatureSay(cid, "Begone!", TALKTYPE_ORANGE_1)
end
end
return 1
end
<movevent type="StepIn" itemid="5915" event="script" value="PitsOfInferno/AllThrones.lua" />
<movevent type="StepIn" itemid="5916" event="script" value="PitsOfInferno/AllThrones.lua" />
means you did not finished all thrones (or you acctual thrones script is not working)EDIT: When i remove it from actions.xml then it doesn't say "You have no absorbed enough energy" anymore either
local CONFIG = {
[56486]={storage = 19551, seal = "Verminor"},
[56487]={storage = 19552, seal = "Infernatil"},
[56488]={storage = 19553, seal = "Tafariel"},
[56489]={storage = 19554, seal = "Apocalypse"},
[56410]={storage = 19555, seal = "Pumin"},
[56411]={storage = 19556, seal = "Bazir"},
[56412]={storage = 19557, seal = "Ashfalor"}
}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, CONFIG[item.actionid].storage) == -1 then
doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "You have touched " .. CONFIG[item.actionid].seal .. "\'s throne and absorbed some of his sprit.")
setPlayerStorageValue(cid, CONFIG[item.actionid].storage, 1)
else
doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "You already have touched " .. CONFIG[item.actionid].seal .. "\'s throne and absorbed some of his sprit.")
end
return TRUE
end
10274,10275,10276,10277,10278,10279,10280 (use 19551,19552 and so on...)if getPlayerStorageValue(cid,10274) == -1 or getPlayerStorageValue(cid,10275) == -1 or getPlayerStorageValue(cid,10276) == -1 or getPlayerStorageValue(cid,10277) == -1 or getPlayerStorageValue(cid,10278) == -1 or getPlayerStorageValue(cid,10279) == -1 or getPlayerStorageValue(cid,10280) == -1 then