Map: https://i.imgur.com/ehna8gl.jpg
Movements.xml:
Thrones seem to work (there is animation and message) but I can't pass the doors nor there is message about not enough absorbed energy. Any ideas what is wrong? Just don't tell me it's cause im running 1.0.0.
Movements.xml:
AllThrones.lua:<movevent event="StepIn" itemid="5916" script="AllThrones.lua"/>
<movevent event="StepIn" itemid="5915" script="AllThrones.lua"/>
<movevent event="StepIn" uniqueid="10281" script="AllThrones.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
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Ashfalor´s spirit.')
end
elseif item.uid == 10281 and item.itemid == 1225 and pos == {x=999, y=994, z=7} 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
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You absorbed enough energy! You may pass.')
end
end
return 1
end
Thrones seem to work (there is animation and message) but I can't pass the doors nor there is message about not enough absorbed energy. Any ideas what is wrong? Just don't tell me it's cause im running 1.0.0.