function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 1300 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found robe of the underworld.")
doPlayerAddItem(cid,8890,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1301 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Spellbook of Dark Mysteries.")
doPlayerAddItem(cid,8918,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1302 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Fireborn Giant Armor.")
doPlayerAddItem(cid,8881,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1304 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Master Archer's Armor.")
doPlayerAddItem(cid,8888,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1303 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Royal Crossbow.")
doPlayerAddItem(cid,8851,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1305 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Hellforged Axe.")
doPlayerAddItem(cid,8924,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1306 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Obsidian Truncheon.")
doPlayerAddItem(cid,8928,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1307 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Emerald Sword.")
doPlayerAddItem(cid,8930,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1308 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Warsinger Bow.")
doPlayerAddItem(cid,8854,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
end
return 1
end
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "inquisitionPortals")
local creaturename = getCreatureName(cid)
--- positions where the teleports will be created:
local ushuriel_in_pos = {x=1115, y=1214, z=12, stackpos=2}
local annihilon_in_pos = {x=1187, y=1198, z=12, stackpos=2}
local hellgorak_in_pos = {x=1192, y=1240, z=12, stackpos=2}
local madareth_in_pos = {x=1112, y=1240, z=12, stackpos=2}
local zugurosh_in_pos = {x=1149, y=1213, z=12, stackpos=2}
local brothers_in_pos = {x=1147, y=1244, z=12, stackpos=1}
--- positions where the teleports will be teleported you:
local ushuriel_to_pos = {x=1173, y=1138, z=12, stackpos=1}
local annihilon_to_pos = {x=1245, y=1297, z=12, stackpos=1}
local hellgorak_to_pos = {x=1064, y=1308, z=13, stackpos=1}
local madareth_to_pos = {x=1045, y=1205, z=13, stackpos=1}
local zugurosh_to_pos = {x=1128, y=1151, z=12, stackpos=1}
local brothers_to_pos = {x=1152, y=1195, z=13, stackpos=1}
local time_to_pass = 180 -- in seconds
local tpID = 1387
local doEffect = CONST_ME_TELEPORT
local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during this time or the teleporter will disappear."
if creaturename == 'Ushuriel' then
teleport = doCreateTeleport(tpID, ushuriel_to_pos, ushuriel_in_pos)
doSendMagicEffect(ushuriel_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))
elseif creaturename == 'Annihilon' then
teleport = doCreateTeleport(tpID, annihilon_to_pos, annihilon_in_pos)
doSendMagicEffect(annihilon_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInAnnihilonWard, (1000*time_to_pass))
elseif creaturename == 'Madareth' then
teleport = doCreateTeleport(tpID, madareth_to_pos, madareth_in_pos)
doSendMagicEffect(madareth_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInMadarethWard, (1000*time_to_pass))
elseif creaturename == 'Hellgorak' then
teleport = doCreateTeleport(tpID, hellgorak_to_pos, hellgorak_in_pos)
doSendMagicEffect(hellgorak_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInHellgorakWard, (1000*time_to_pass))
elseif creaturename == 'Zugurosh' then
teleport = doCreateTeleport(tpID, zugurosh_to_pos, zugurosh_in_pos)
doSendMagicEffect(zugurosh_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInZuguroshWard, (1000*time_to_pass))
elseif creaturename == 'Latrivan' then
teleport = doCreateTeleport(tpID, brothers_to_pos, brothers_in_pos)
doSendMagicEffect(brothers_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))
end
end
function removeTeleportInUshurielWard()
if getThingfromPos({x=1115, y=1214, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1115, y=1214, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1115, y=1214, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInAnnihilonWard()
if getThingfromPos({x=1187, y=1198, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1187, y=1198, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1187, y=1198, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInHellgorakWard()
if getThingfromPos({x=1192, y=1240, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1192, y=1240, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1192, y=1240, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInMadarethWard()
if getThingfromPos({x=1112, y=1240, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1112, y=1240, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1112, y=1240, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInZuguroshWard()
if getThingfromPos({x=1149, y=1213, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1149, y=1213, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1149, y=1213, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInBrothersWard()
if getThingfromPos({x=1147, y=1244, z=12, stackpos=1}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1147, y=1244, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=1147, y=1244, z=12, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
-- tablica z pozycjami lawy
local Lawa = {
{x=921,y=1259,z=15},
{x=921,y=1258,z=15},
{x=921,y=1257,z=15},
{x=921,y=1256,z=15},
{x=921,y=1255,z=15},
{x=921,y=1254,z=15},
{x=920,y=1254,z=15},
{x=920,y=1255,z=15},
{x=920,y=1256,z=15},
{x=920,y=1257,z=15},
{x=920,y=1258,z=15},
{x=920,y=1259,z=15},
}
if (itemEx.uid == 12344) then -- unique kamienia
if (getGlobalStorageValue(5544) == -1) then
local Teleport = doCreateTeleport(1387, {x=0,y=0,z=0}, {x=921,y=1256,z=15}) -- tworzenie teleportu
doSetItemActionId(Teleport, 12345)
for i = 1, #Lawa do -- petla tworzenia lawy
doCreateItem(5815, 1, Lawa[i]) -- funkcja tworzenia lawy
doSendMagicEffect(Lawa[i], CONST_ME_POFF)
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It\'s not time yet.")
end
end
<!-- InquisitonQuest -->
<action uniqueid="1300" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1301" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1302" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1303" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1304" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1305" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1306" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1307" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1308" event="script" value="inq/inqchests.lua"/>
<action uniqueid="12344" event="script" value="inq/teleports.lua"/>
<!-- Pits of Inferno -->
<action uniqueid="10203" event="script" value="PitsOfInferno/Oil.lua"/>
<action uniqueid="10204" event="script" value="PitsOfInferno/LeverKnight.lua"/>
<action uniqueid="10205" event="script" value="PitsOfInferno/LeverDruid.lua"/>
<action uniqueid="10206" event="script" value="PitsOfInferno/LeverPaladin.lua"/>
<action uniqueid="10207" event="script" value="PitsOfInferno/LeverSorcerer.lua"/>
<action uniqueid="10224" event="script" value="PitsOfInferno/SmallBridge1.lua"/>
<action uniqueid="10254" event="script" value="PitsOfInferno/SmallBridge2.lua"/>
<action uniqueid="10255" event="script" value="PitsOfInferno/StoneMagicThrowers.lua"/>
<action uniqueid="10256" event="script" value="PitsOfInferno/StoneGoldenKey.lua"/>
<action uniqueid="10258" event="script" value="PitsOfInferno/RemoveStone.lua"/>
<action uniqueid="10259" event="script" value="PitsOfInferno/RemoveLevelDoor.lua"/>
<action uniqueid="10260" event="script" value="PitsOfInferno/TeleportLever1.lua"/>
<action uniqueid="10261" event="script" value="PitsOfInferno/TeleportLever2.lua"/>
<action uniqueid="10262" event="script" value="PitsOfInferno/TeleportLever3.lua"/>
<action uniqueid="10263" event="script" value="PitsOfInferno/TeleportLever4.lua"/>
<action uniqueid="10264" event="script" value="PitsOfInferno/TeleportLever5.lua"/>
<action uniqueid="10265" event="script" value="PitsOfInferno/TeleportLever6.lua"/>
<action uniqueid="10266" event="script" value="PitsOfInferno/TeleportLever7.lua"/>
<action uniqueid="10267" event="script" value="PitsOfInferno/TeleportLever8.lua"/>
<action uniqueid="10268" event="script" value="PitsOfInferno/TeleportLever9.lua"/>
<action uniqueid="10269" event="script" value="PitsOfInferno/TeleportLever10.lua"/>
<action uniqueid="10270" event="script" value="PitsOfInferno/TeleportLever11.lua"/>
<action uniqueid="10272" event="script" value="PitsOfInferno/BazirChest.lua"/>
<action uniqueid="10273" event="script" value="PitsOfInferno/BazirMirror.lua"/>
<action uniqueid="10281" event="script" value="doors/poi_last.lua"/>
<action uniqueid="10282" event="script" value="PitsOfInferno/SkeletonReward.lua"/>
<action actionid="10284" event="script" value="PitsOfInferno/16Levers2.lua"/>
<action uniqueid="10285" event="script" value="PitsOfInferno/LavaLever.lua"/>
<action uniqueid="10286" event="script" value="PitsOfInferno/LavaLever.lua"/>
<action uniqueid="10287" event="script" value="PitsOfInferno/RemoveStone.lua"/>
<!-- Pits of Inferno rewards -->
<action uniqueid="10544" event="script" value="PitsOfInferno/poireward.lua"/>
<action uniqueid="10545" event="script" value="PitsOfInferno/poireward.lua"/>
<action uniqueid="10546" event="script" value="PitsOfInferno/poireward.lua"/>
<action uniqueid="10547" event="script" value="PitsOfInferno/poireward.lua"/>
<action uniqueid="10548" event="script" value="PitsOfInferno/poireward.lua"/>
<action uniqueid="10549" event="script" value="PitsOfInferno/poireward.lua"/>
<action uniqueid="10550" event="script" value="PitsOfInferno/poireward.lua"/>
<action uniqueid="10551" event="script" value="PitsOfInferno/poireward.lua"/>
Download PitsOfInferno.rar and extract it at /data/actions/script
and actions.xml
Code:<!-- Pits of Inferno --> <action uniqueid="10203" event="script" value="PitsOfInferno/Oil.lua"/> <action uniqueid="10204" event="script" value="PitsOfInferno/LeverKnight.lua"/> <action uniqueid="10205" event="script" value="PitsOfInferno/LeverDruid.lua"/> <action uniqueid="10206" event="script" value="PitsOfInferno/LeverPaladin.lua"/> <action uniqueid="10207" event="script" value="PitsOfInferno/LeverSorcerer.lua"/> <action uniqueid="10224" event="script" value="PitsOfInferno/SmallBridge1.lua"/> <action uniqueid="10254" event="script" value="PitsOfInferno/SmallBridge2.lua"/> <action uniqueid="10255" event="script" value="PitsOfInferno/StoneMagicThrowers.lua"/> <action uniqueid="10256" event="script" value="PitsOfInferno/StoneGoldenKey.lua"/> <action uniqueid="10258" event="script" value="PitsOfInferno/RemoveStone.lua"/> <action uniqueid="10259" event="script" value="PitsOfInferno/RemoveLevelDoor.lua"/> <action uniqueid="10260" event="script" value="PitsOfInferno/TeleportLever1.lua"/> <action uniqueid="10261" event="script" value="PitsOfInferno/TeleportLever2.lua"/> <action uniqueid="10262" event="script" value="PitsOfInferno/TeleportLever3.lua"/> <action uniqueid="10263" event="script" value="PitsOfInferno/TeleportLever4.lua"/> <action uniqueid="10264" event="script" value="PitsOfInferno/TeleportLever5.lua"/> <action uniqueid="10265" event="script" value="PitsOfInferno/TeleportLever6.lua"/> <action uniqueid="10266" event="script" value="PitsOfInferno/TeleportLever7.lua"/> <action uniqueid="10267" event="script" value="PitsOfInferno/TeleportLever8.lua"/> <action uniqueid="10268" event="script" value="PitsOfInferno/TeleportLever9.lua"/> <action uniqueid="10269" event="script" value="PitsOfInferno/TeleportLever10.lua"/> <action uniqueid="10270" event="script" value="PitsOfInferno/TeleportLever11.lua"/> <action uniqueid="10272" event="script" value="PitsOfInferno/BazirChest.lua"/> <action uniqueid="10273" event="script" value="PitsOfInferno/BazirMirror.lua"/> <action uniqueid="10281" event="script" value="doors/poi_last.lua"/> <action uniqueid="10282" event="script" value="PitsOfInferno/SkeletonReward.lua"/> <action actionid="10284" event="script" value="PitsOfInferno/16Levers2.lua"/> <action uniqueid="10285" event="script" value="PitsOfInferno/LavaLever.lua"/> <action uniqueid="10286" event="script" value="PitsOfInferno/LavaLever.lua"/> <action uniqueid="10287" event="script" value="PitsOfInferno/RemoveStone.lua"/> <!-- Pits of Inferno rewards --> <action uniqueid="10544" event="script" value="PitsOfInferno/poireward.lua"/> <action uniqueid="10545" event="script" value="PitsOfInferno/poireward.lua"/> <action uniqueid="10546" event="script" value="PitsOfInferno/poireward.lua"/> <action uniqueid="10547" event="script" value="PitsOfInferno/poireward.lua"/> <action uniqueid="10548" event="script" value="PitsOfInferno/poireward.lua"/> <action uniqueid="10549" event="script" value="PitsOfInferno/poireward.lua"/> <action uniqueid="10550" event="script" value="PitsOfInferno/poireward.lua"/> <action uniqueid="10551" event="script" value="PitsOfInferno/poireward.lua"/>
16Levers1.lua
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 1300 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found robe of the underworld.")
doPlayerAddItem(cid,8890,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1301 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Spellbook of Dark Mysteries.")
doPlayerAddItem(cid,8918,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1302 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Fireborn Giant Armor.")
doPlayerAddItem(cid,8881,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1304 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Master Archer's Armor.")
doPlayerAddItem(cid,8888,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1303 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Royal Crossbow.")
doPlayerAddItem(cid,8851,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1305 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Hellforged Axe.")
doPlayerAddItem(cid,8924,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1306 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Obsidian Truncheon.")
doPlayerAddItem(cid,8928,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1307 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Emerald Sword.")
doPlayerAddItem(cid,8930,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
elseif item.uid == 1308 then
queststatus = getPlayerStorageValue(cid,6075)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Warsinger Bow.")
doPlayerAddItem(cid,8854,1)
setPlayerStorageValue(cid,6075,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
end
return 1
end
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "inquisitionPortals")
local creaturename = getCreatureName(cid)
--- positions where the teleports will be created:
local ushuriel_in_pos = {x=1115, y=1214, z=12, stackpos=2}
local annihilon_in_pos = {x=1187, y=1198, z=12, stackpos=2}
local hellgorak_in_pos = {x=1192, y=1240, z=12, stackpos=2}
local madareth_in_pos = {x=1112, y=1240, z=12, stackpos=2}
local zugurosh_in_pos = {x=1149, y=1213, z=12, stackpos=2}
local brothers_in_pos = {x=1147, y=1244, z=12, stackpos=1}
--- positions where the teleports will be teleported you:
local ushuriel_to_pos = {x=1173, y=1138, z=12, stackpos=1}
local annihilon_to_pos = {x=1245, y=1297, z=12, stackpos=1}
local hellgorak_to_pos = {x=1064, y=1308, z=13, stackpos=1}
local madareth_to_pos = {x=1045, y=1205, z=13, stackpos=1}
local zugurosh_to_pos = {x=1128, y=1151, z=12, stackpos=1}
local brothers_to_pos = {x=1152, y=1195, z=13, stackpos=1}
local time_to_pass = 180 -- in seconds
local tpID = 1387
local doEffect = CONST_ME_TELEPORT
local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during this time or the teleporter will disappear."
if creaturename == 'Ushuriel' then
teleport = doCreateTeleport(tpID, ushuriel_to_pos, ushuriel_in_pos)
doSendMagicEffect(ushuriel_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))
elseif creaturename == 'Annihilon' then
teleport = doCreateTeleport(tpID, annihilon_to_pos, annihilon_in_pos)
doSendMagicEffect(annihilon_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInAnnihilonWard, (1000*time_to_pass))
elseif creaturename == 'Madareth' then
teleport = doCreateTeleport(tpID, madareth_to_pos, madareth_in_pos)
doSendMagicEffect(madareth_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInMadarethWard, (1000*time_to_pass))
elseif creaturename == 'Hellgorak' then
teleport = doCreateTeleport(tpID, hellgorak_to_pos, hellgorak_in_pos)
doSendMagicEffect(hellgorak_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInHellgorakWard, (1000*time_to_pass))
elseif creaturename == 'Zugurosh' then
teleport = doCreateTeleport(tpID, zugurosh_to_pos, zugurosh_in_pos)
doSendMagicEffect(zugurosh_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInZuguroshWard, (1000*time_to_pass))
elseif creaturename == 'Latrivan' then
teleport = doCreateTeleport(tpID, brothers_to_pos, brothers_in_pos)
doSendMagicEffect(brothers_in_pos, doEffect)
doPlayerSendTextMessage(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))
end
end
function removeTeleportInUshurielWard()
if getThingfromPos({x=1115, y=1214, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1115, y=1214, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1115, y=1214, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInAnnihilonWard()
if getThingfromPos({x=1187, y=1198, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1187, y=1198, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1187, y=1198, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInHellgorakWard()
if getThingfromPos({x=1192, y=1240, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1192, y=1240, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1192, y=1240, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInMadarethWard()
if getThingfromPos({x=1112, y=1240, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1112, y=1240, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1112, y=1240, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInZuguroshWard()
if getThingfromPos({x=1149, y=1213, z=12, stackpos=2}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1149, y=1213, z=12, stackpos=2}).uid,1)
doSendMagicEffect({x=1149, y=1213, z=12, stackpos=2}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInBrothersWard()
if getThingfromPos({x=1147, y=1244, z=12, stackpos=1}).itemid == 1387 then
doRemoveItem(getThingfromPos({x=1147, y=1244, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=1147, y=1244, z=12, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
-- tablica z pozycjami lawy
local Lawa = {
{x=921,y=1259,z=15},
{x=921,y=1258,z=15},
{x=921,y=1257,z=15},
{x=921,y=1256,z=15},
{x=921,y=1255,z=15},
{x=921,y=1254,z=15},
{x=920,y=1254,z=15},
{x=920,y=1255,z=15},
{x=920,y=1256,z=15},
{x=920,y=1257,z=15},
{x=920,y=1258,z=15},
{x=920,y=1259,z=15},
}
if (itemEx.uid == 12344) then -- unique kamienia
if (getGlobalStorageValue(5544) == -1) then
local Teleport = doCreateTeleport(1387, {x=0,y=0,z=0}, {x=921,y=1256,z=15}) -- tworzenie teleportu
doSetItemActionId(Teleport, 12345)
for i = 1, #Lawa do -- petla tworzenia lawy
doCreateItem(5815, 1, Lawa[i]) -- funkcja tworzenia lawy
doSendMagicEffect(Lawa[i], CONST_ME_POFF)
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It\'s not time yet.")
end
end
<!-- InquisitonQuest -->
<action uniqueid="1300" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1301" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1302" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1303" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1304" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1305" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1306" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1307" event="script" value="inq/inqchests.lua"/>
<action uniqueid="1308" event="script" value="inq/inqchests.lua"/>
<action uniqueid="12344" event="script" value="inq/teleports.lua"/>
Need to use search function?...