Edling
Member
- Joined
- Mar 1, 2009
- Messages
- 246
- Reaction score
- 11
Hello. I try to fix this since you can make INQ in my server without touching any Throne of POI first which I disslike. I have found this script but I can't get it work proppobly.
But It does not let me in even if POI is completed
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storages = {10001, 10002, 10003, 10004, 10005, 10006, 10007}
local fail = FALSE
for i = 1, #storages do
if (getPlayerStorageValue(cid, storages[i]) == -1) then
fail = TRUE
end
end
if (fail == TRUE) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to absorb some of pits of infernos spirit first!")
else
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, fromPosition, TRUE)
end
return TRUE
end
Code:
function onStepIn(cid, item, pos)
local nie = {x=32824, y=32231, z=12}
if item.uid == 10001 then
if getPlayerStorageValue(cid,10001) == -1 then
setPlayerStorageValue(cid,10001,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Verminor´s throne and absorbed some of his spirit.')
doSendMagicEffect(getCreaturePosition(cid),20)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Veminor´s spirit.')
local wal2 = {x=32840, y=32327, z=15}
doTeleportThing(cid, wal2)
doSendMagicEffect(wal2,17)
end
elseif item.uid == 10002 then
if getPlayerStorageValue(cid,10002) == -1 then
setPlayerStorageValue(cid,10002,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Infernatil´s throne and absorbed some of his spirit.')
doSendMagicEffect(getCreaturePosition(cid),15)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Infernatil´s spirit.')
local wal7 = {x=32909, y=32211, z=15}
doTeleportThing(cid, wal7)
doSendMagicEffect(wal7,17)
end
elseif item.uid == 10003 then
if getPlayerStorageValue(cid,10003) == -1 then
setPlayerStorageValue(cid,10003,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Tafariel´s throne and absorbed some of his spirit.')
doSendMagicEffect(getCreaturePosition(cid),2)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Tafariel´s spirit.')
local wal3 = {x=32761, y=32243, z=15}
doTeleportThing(cid, wal3)
doSendMagicEffect(wal3,17)
end
elseif item.uid == 10004 then
if getPlayerStorageValue(cid,10004) == -1 then
setPlayerStorageValue(cid,10004,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Apocalypse´s throne and absorbed some of his spirit.')
doSendMagicEffect(getCreaturePosition(cid),4)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Apocalypse´s spirit.')
local wal4 = {x=32875, y=32267, z=15}
doTeleportThing(cid, wal4)
doSendMagicEffect(wal4,17)
end
elseif item.uid == 10005 then
if getPlayerStorageValue(cid,10005) == -1 then
setPlayerStorageValue(cid,10005,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Pumin´s throne and absorbed some of his spirit.')
doSendMagicEffect(getCreaturePosition(cid),7)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Pumin´s spirit.')
local wal = {x=32785, y=32279, z=15}
doTeleportThing(cid, wal)
doSendMagicEffect(wal,17)
end
elseif item.uid == 10007 then
if getPlayerStorageValue(cid,10007) == -1 then
setPlayerStorageValue(cid,10007,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Ashfalor´s throne and absorbed some of his spirit.')
doSendMagicEffect(getCreaturePosition(cid),17)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Ashfalor´s spirit.')
local wal1 = {x=32839, y=32310, z=15}
doTeleportThing(cid, wal1)
doSendMagicEffect(wal1,17)
end
elseif item.uid == 10008 then
if getPlayerStorageValue(cid,10008) == -1 then
setPlayerStorageValue(cid,10008,1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have touched Bazir´s throne and absorbed some of his spirit.')
doSendMagicEffect(getCreaturePosition(cid),11)
local wal5 = {x=32745, y=32385, z=15}
doTeleportThing(cid, wal5)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have already absorbed some of Bazir´s spirit.')
local wal5 = {x=32745, y=32385, z=15}
doTeleportThing(cid, wal5)
end
elseif item.uid == 14334 then
if getPlayerStorageValue(cid,10001) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
doTeleportThing(cid, nie)
doSendMagicEffect(getCreaturePosition(cid),51)
else
end
elseif item.uid == 14333 then
if getPlayerStorageValue(cid,10002) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
doTeleportThing(cid, nie)
doSendMagicEffect(getCreaturePosition(cid),51)
else
end
elseif item.uid == 14332 then
if getPlayerStorageValue(cid,10003) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
doTeleportThing(cid, nie)
doSendMagicEffect(getCreaturePosition(cid),51)
else
end
elseif item.uid == 14339 then
if getPlayerStorageValue(cid,10004) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
doTeleportThing(cid, nie)
doSendMagicEffect(getCreaturePosition(cid),51)
else
end
elseif item.uid == 14330 then
if getPlayerStorageValue(cid,10005) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
doTeleportThing(cid, nie)
doSendMagicEffect(getCreaturePosition(cid),51)
else
end
elseif item.uid == 14329 then
if getPlayerStorageValue(cid,10007) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
doTeleportThing(cid, nie)
doSendMagicEffect(getCreaturePosition(cid),51)
else
end
elseif item.uid == 14328 then
if getPlayerStorageValue(cid,10008) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
doTeleportThing(cid, nie)
doSendMagicEffect(getCreaturePosition(cid),51)
else
end
end
end
return 1
But It does not let me in even if POI is completed