• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Pits Of Inferno (Shortcut)

Haard

Slacker
Joined
Oct 7, 2009
Messages
317
Reaction score
0
Location
Sweden/Småland
Im so sick of that you always have to take the ordinary way into The Pits Of Inferno.
With this script, You have to add a new chest that you get the paper with ID 7696.
After Rightclicking On This Item You will have access to just walk trough a door and directly into the pits of inferno (As Realtibia)

PHP:
PoIDoorShortcut

-- Credits StreamSide and Empty for making the VIP part. (Haard made it for PoI)
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local cidPosition = getCreaturePosition(cid)
		if (item.actionid == 57808 and getPlayerStorageValue(cid,11551) >= 1) then
			if cidPosition.x < toPosition.x then
				doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
								doCreatureSay(cid, "You are now entering the pits of inferno", TALKTYPE_ORANGE_1)
			else
				doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
								doCreatureSay(cid, "You are now entering the pits of inferno", TALKTYPE_ORANGE_1)
			end
			return TRUE
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, You most do Pits Of Inferno before you can pass here.")
			return TRUE
	end
	return FALSE
end

PHP:
PoIItemShortcut

-- Credits StreamSide and Empty for making the Vip Part (Made By Haard)
function onUse(cid, item, fromPosition, itemEx, toPosition)

	if getPlayerStorageValue(cid,11551) < 1 then
		if getPlayerLevel(cid) > 80 then
			getPlayerStorageValue(cid, 11551)
			doCreatureSay(cid, "You can now use the shortcut to access Pits Of Inferno. ", TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 15))
			doRemoveItem(item.uid, 1)
		else
			doPlayerSendCancel(cid,"You need to be at least level 80 to use this.")
			doRemoveItem(item.uid, 1)
		end
	else
		doPlayerSendCancel(cid,"You have already absorbed the power.")
	end	
return TRUE
end

Copy this into Actions.xml
<action itemid="7696" script="other/PoIitemShortcut.lua"/>
<action actionid="57808" script="other/PoIdoorShortcut.lua" />

Credits Goes To Empty And StreamSide for Making the script orginal to Vip. I just remaded it for working like a Pits Of Inferno Shortcut.
 
cool script :) but is it possible to make if u use 1 chest in the poi reward room ur able to go through the backdoor. Lets say a chest with AI:2000 and UI: 3016 :)
 
Code:
	<action itemid="7696" event="script" value="other/PoIitemShortcut.lua"/>
	<action actionid="57808" event="script" value="other/PoIdoorShortcut.lua"/>
For 0.3
 
Thanks CykoTitan :p
@zkum Ive just edited a script made by empty to make this work fast.
I would realy appreciate if someone did script your idea.
 
Code:
local t = {
	POIchestStorages = {1001, 1002, 1003, 1004, 1005},
	closedDoorId = 1223,
	openDoorId = 1224
}

local function hasOpenedAnyChest(cid, storages)
	if isPlayer(cid) then
		if type(storages) == "table" then
			for _, v in ipairs(storages) do
				if getPlayerStorageValue(cid, v) > 0 then
					return true
				end
			end
		end
	end
	return false
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if hasOpenedAnyChest(cid, t.POIchestStorages) then
		if item.itemid == t.closedDoorId then
			doTransformItem(item.uid, t.openDoorId)
			doTeleportThing(cid, toPosition, true)
			doCreatureSay(cid, "You are now entering the Pits of Inferno", TALKTYPE_ORANGE_1, false, cid, toPosition)
		end
	else
		doCreatureSay(cid, "You must complete the Pits of Inferno quest before you can pass this door.", TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
	end
	return true
end
 
Isn't it easier to make like a door that you pass if you have the storages of like the soft boots chest?

I made mine like that and it works fine, and.... just one script!
 
Isn't it easier to make like a door that you pass if you have the storages of like the soft boots chest?

I made mine like that and it works fine, and.... just one script!
Code:
local function [B]hasOpened[COLOR="Red"]Any[/COLOR]Chest[/B](cid, storages)
And actually you're right.

Either way we won't have it like Cip's.
 
Back
Top