Ific
New Member
Hello, Anyone can gimme the poi trhones script? cuz when the people try to make the poi quest, they can't cuz that thrones doesn't run.
TFS 0.3.2
:thumbup:
TFS 0.3.2
:thumbup:
function onStepIn(cid, item, position, fromPosition)
if item.uid == 10274 then
if getPlayerStorageValue(cid,10274) == -1 then
setPlayerStorageValue(cid,10274,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 == 10275 then
if getPlayerStorageValue(cid,10275) == -1 then
setPlayerStorageValue(cid,10275,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 == 10276 then
if getPlayerStorageValue(cid,10276) == -1 then
setPlayerStorageValue(cid,10276,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 == 10277 then
if getPlayerStorageValue(cid,10277) == -1 then
setPlayerStorageValue(cid,10277,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 == 10278 then
if getPlayerStorageValue(cid,10278) == -1 then
setPlayerStorageValue(cid,10278,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 == 10279 then
if getPlayerStorageValue(cid,10279) == -1 then
setPlayerStorageValue(cid,10279,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 == 10280 then
if getPlayerStorageValue(cid,10280) == -1 then
setPlayerStorageValue(cid,10280,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 == 10281 and item.itemid == 1210 and pos == {x=345, y=1419, z=12} 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 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 == 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 == 1225 and pos == {x=1313, y=1151, z=14} 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 == 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 == 1225 and pos == {x=1313, y=1151, z=14} 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
Lua:function onStepIn(cid, item, position, fromPosition) if item.uid == 10274 then if getPlayerStorageValue(cid,10274) == -1 then setPlayerStorageValue(cid,10274,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 == 10275 then if getPlayerStorageValue(cid,10275) == -1 then setPlayerStorageValue(cid,10275,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 == 10276 then if getPlayerStorageValue(cid,10276) == -1 then setPlayerStorageValue(cid,10276,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 == 10277 then if getPlayerStorageValue(cid,10277) == -1 then setPlayerStorageValue(cid,10277,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 == 10278 then if getPlayerStorageValue(cid,10278) == -1 then setPlayerStorageValue(cid,10278,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 == 10279 then if getPlayerStorageValue(cid,10279) == -1 then setPlayerStorageValue(cid,10279,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 == 10280 then if getPlayerStorageValue(cid,10280) == -1 then setPlayerStorageValue(cid,10280,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 == 10281 and item.itemid == 1210 and pos == {x=345, y=1419, z=12} 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 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
<movevent type="StepIn" itemid="5915" event="script" value="PitsOfInferno/AllThrones.lua" />
<movevent type="StepIn" itemid="5916" event="script" value="PitsOfInferno/AllThrones.lua" />
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 = "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 sobe of his sprit.")
end
return TRUE
end
<movevent type="StepIn" actionid="56486" event="script" value="trony/Seals.lua" />
<movevent type="StepIn" actionid="56487" event="script" value="trony/Seals.lua" />
<movevent type="StepIn" actionid="56488" event="script" value="trony/Seals.lua" />
<movevent type="StepIn" actionid="56489" event="script" value="trony/Seals.lua" />
<movevent type="StepIn" actionid="56410" event="script" value="trony/Seals.lua" />
<movevent type="StepIn" actionid="56411" event="script" value="trony/Seals.lua" />
local storages =
{
19551,
19552,
19553,
19554,
19555,
19556
}
function onStepIn(cid, item, position, fromPosition)
for i = 1, 6 do
if getPlayerStorageValue(cid, storages[i]) == -1 then
doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "You did not completed all seals")
doTeleportThing(cid, fromPosition)
end
end
return TRUE
end
when i complete all seals, i need to stand on that tile and than that teleport me to prize room...
But that doesn't work :/
can someone help me? :/
you see a time tile.
Itemid: [471].
Uniqueid: [22222].
Position: [x: 1313] [y: 1149] [z: 14].
Lua:function onStepIn(cid, item, position, fromPosition) if item.uid == 10274 then if getPlayerStorageValue(cid,10274) == -1 then setPlayerStorageValue(cid,10274,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 == 10275 then if getPlayerStorageValue(cid,10275) == -1 then setPlayerStorageValue(cid,10275,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 == 10276 then if getPlayerStorageValue(cid,10276) == -1 then setPlayerStorageValue(cid,10276,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 == 10277 then if getPlayerStorageValue(cid,10277) == -1 then setPlayerStorageValue(cid,10277,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 == 10278 then if getPlayerStorageValue(cid,10278) == -1 then setPlayerStorageValue(cid,10278,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 == 10279 then if getPlayerStorageValue(cid,10279) == -1 then setPlayerStorageValue(cid,10279,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 == 10280 then if getPlayerStorageValue(cid,10280) == -1 then setPlayerStorageValue(cid,10280,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 == 10281 and item.itemid == 1210 and pos == {x=345, y=1419, z=12} 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 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
yeah, i have this problem too ;//
--Action by Wallaby- baseado na Porta do postman by eu mesmo.. action que foi baseada na lvl door
-- quando for por no mapa, em propriedades poe actionID 5019 e vai funfa =]
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1223 then
queststatus = getPlayerStorageValue(cid,10274)
queststatus2 = getPlayerStorageValue(cid,10275)
queststatus3 = getPlayerStorageValue(cid,10276)
queststatus4 = getPlayerStorageValue(cid,10277)
queststatus5 = getPlayerStorageValue(cid,10278)
queststatus6 = getPlayerStorageValue(cid,10279)
queststatus7 = getPlayerStorageValue(cid,10280)
if queststatus == -1 or queststatus2 == -1 or queststatus3 == -1 or queststatus4 == -1 or queststatus5 == -1 or queststatus6 == -1 or queststatus7 == -1 then
doPlayerSendTextMessage(cid,22,"The door seems to be sealed against unwanted intruders.")
else
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Stand in front of the door.')
return 1
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
end
return 1
else
return 0
end
end
But, this script is movement or action?
what i imput in movements.xml?
can send me poi actions,movements and scripts for tfs 0.3.4?
thx!
<movevent type="StepIn" uniqueid="22222" event="script" value="poifinal.lua"/>
<movevent type="StepIn" itemid="10002" event="script" value="thrones.lua"/>
<movevent type="StepIn" itemid="10001" event="script" value="thrones.lua"/>
<movevent type="StepIn" itemid="10003" event="script" value="thrones.lua"/>
<movevent type="StepIn" itemid="10004" event="script" value="thrones.lua"/>
<movevent type="StepIn" itemid="10005" event="script" value="thrones.lua"/>
<movevent type="StepIn" itemid="10007" event="script" value="thrones.lua"/>
<movevent type="StepIn" itemid="5915" event="script" value="thrones.lua" />
<movevent type="StepIn" itemid="5916" event="script" value="thrones.lua" />
<movevent type="StepIn" itemid="6488" event="script" value="thrones.lua" />
scan
Could you write credits, please?
Also, they aren't really from real tibia. In global tibia you have to step 2 times on throne. If you add some tables it would be hmm.. a half of this script. USE MUTHAFUCKA TABLES AND LOOPS. Ty.