• 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!

Pits of inferno movements help.

enriel

Big L
Joined
Dec 14, 2007
Messages
1,254
Reaction score
2
Location
Montenegro
There is a problem, when you've done all 7 rooms or seals its a door there the uniqe id is 22222 and I've tuched all 7 thrones. How to get this script to work? When you have passed all rooms you should be able to get throe the door and get your reward.


function onStepIn(cid, item, pos)
if item.uid == 10001 then
if getPlayerStorageValue(cid,1234561) == -1 then
setPlayerStorageValue(cid,1234561,1)
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 == 10002 then
if getPlayerStorageValue(cid,1234562) == -1 then
setPlayerStorageValue(cid,1234562,1)
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 == 10003 then
if getPlayerStorageValue(cid,1234563) == -1 then
setPlayerStorageValue(cid,1234563,1)
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 == 10004 then
if getPlayerStorageValue(cid,1234564) == -1 then
setPlayerStorageValue(cid,1234564,1)
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 == 10005 then
if getPlayerStorageValue(cid,1234565) == -1 then
setPlayerStorageValue(cid,1234565,1)
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 == 10006 then
if getPlayerStorageValue(cid,1234566) == -1 then
setPlayerStorageValue(cid,1234566,1)
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 == 10007 then
if getPlayerStorageValue(cid,1234567) == -1 then
setPlayerStorageValue(cid,1234567,1)
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 == 22222 and item.itemid == 1210 and pos == {x=295, y=480, z=11} then
if getPlayerStorageValue(cid,1234561) == -1 or getPlayerStorageValue(cid,1234562) == -1 or getPlayerStorageValue(cid,1234563) == -1 or getPlayerStorageValue(cid,1234564) == -1 or getPlayerStorageValue(cid,1234565) == -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
 
function onStepIn(cid, item, pos)
if item.uid == 10001 then
if getPlayerStorageValue(cid,1234561) == -1 then
setPlayerStorageValue(cid,1234561,1)
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 == 10002 then
if getPlayerStorageValue(cid,1234562) == -1 then
setPlayerStorageValue(cid,1234562,1)
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 == 10003 then
if getPlayerStorageValue(cid,1234563) == -1 then
setPlayerStorageValue(cid,1234563,1)
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 == 10004 then
if getPlayerStorageValue(cid,1234564) == -1 then
setPlayerStorageValue(cid,1234564,1)
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 == 10005 then
if getPlayerStorageValue(cid,1234565) == -1 then
setPlayerStorageValue(cid,1234565,1)
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 == 10006 then
if getPlayerStorageValue(cid,1234566) == -1 then
setPlayerStorageValue(cid,1234566,1)
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 == 10007 then
if getPlayerStorageValue(cid,1234567) == -1 then
setPlayerStorageValue(cid,1234567,1)
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 == 22222 and item.itemid == 1210 and pos == {x=295, y=480, z=11} then
if getPlayerStorageValue(cid,1234561) == -1 or getPlayerStorageValue(cid,1234562) == -1 or getPlayerStorageValue(cid,1234563) == -1 or getPlayerStorageValue(cid,1234564) == -1 or getPlayerStorageValue(cid,1234565) == -1 then
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You absorbed enough energy! You may pass.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Sorry, but you did not absorb enough energy!')
end
end
return 1
end







i guess ths shuld do it, but i am just a bigg noob :P, the only thing i swiched is

doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Sorry, but you did not absorb enough energy!')

with


doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You absorbed enough energy! You may pass.')
 
elseif item.uid == 22222 then
if getPlayerStorageValue(cid,1234561) == 1 and getPlayerStorageValue(cid,1234562) == 1 and getPlayerStorageValue(cid,1234563) == 1 and getPlayerStorageValue(cid,1234564) == 1 and getPlayerStorageValue(cid,1234565) == 1 and getPlayerStorageValue(cid,1234566) == 1 and getPlayerStorageValue(cid,1234567) == 1 then
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You absorbed enough energy! You may pass.')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Sorry, but you did not absorb enough energy!')
end
end
return 1
end
 
Personally, This is what I use to check + teleport the players if they have all 7 of the thrones complete:

Code:
local firstpos =
{
	{x = 303, y = 480, z = 11, stackpos = STACKPOS_TOP_CREATURE}
}
local newpos = 
{
	{x = 294, y = 481, z = 11}
}

function onStepIn(cid, item, fromPosition, toPosition)
    if item.uid == 2290 then
        if getPlayerStorageValue(cid,1234561) == -1 or getPlayerStorageValue(cid,1234562) == -1 or getPlayerStorageValue(cid,1234563) == -1 or getPlayerStorageValue(cid,1234564) == -1 or getPlayerStorageValue(cid,1234565) == -1 or getPlayerStorageValue(cid,1234566) == -1 or getPlayerStorageValue(cid,1234567) == -1 then
            doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you did not absorb enough energy!')
			return FALSE
        else
			player = getThingfromPos(firstpos[1])
			doSendMagicEffect(firstpos[1], CONST_ME_POFF)
			doTeleportThing(player.uid, newpos[1], FALSE)
			doSendMagicEffect(newpos[1], CONST_ME_ENERGYAREA)
            doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You absorbed enough energy! You may pass.')
			return TRUE
        end
    end
end

This teleports the player after they step on a tile with the unique id 2290 (If they completed POI of course).

To use this you would have to edit the firstpos and newpos. Also, you might have to edit the storage values...
 
Back
Top