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

[HELP] Demon OAK,QUESTS

Lobobo

New Member
Joined
Sep 9, 2008
Messages
2
Reaction score
0
I'm looking for help in Anhi I pull the lever and nothing happens with the players

Actions>Action.xml
<action uniqueid="30015" event="script" value="quests/annihilator.lua"/>

Actions>Scripts>Quests>annihilator
Code:
local config = {
	daily = "no", -- allow only one enter per day? (like in global Tibia)
	level = 100,
	storage = 30015
	entry =
		{
		{x = 1531, y = 1558, z = 9},
		{x = 1530, y = 1558, z = 9},
		{x = 1529, y = 1558, z = 9},
		{x = 1528, y = 1558, z = 9}
	},
	destination =
	{
		{x = 1531, y = 1558, z = 10},
		{x = 1530, y = 1558, z = 10},
		{x = 1529, y = 1558, z = 10},
		{x = 1528, y = 1558, z = 10}
	}
}

config.daily = getBooleanFromString(config.daily)
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == 1946) then
		if(config.daily) then
			doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
		else
			doTransformItem(item.uid, item.itemid - 1)
		end

		return true
	end

	if(item.itemid ~= 1945) then
		return true
	end

	local players = {}
	for _, position in ipairs(config.entry) do
		local pid = getTopCreature(position).uid
		if(pid == 0 or not isPlayer(pid) or getCreatureStorage(pid, config.storage) > 0 or getPlayerLevel(pid) < config.level) then
			doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
			return true
		end

		table.insert(players, pid)
	end

	for i, pid in ipairs(players) do
		doSendMagicEffect(config.entry[i], CONST_ME_POFF)
		doTeleportThing(pid, config.destination[i], false)
		doSendMagicEffect(config.destination[i], CONST_ME_ENERGYAREA)
	end

	doTransformItem(item.uid, item.itemid + 1)
	return true
end
 
Last edited:
to put the quest in map editor, you need to set aid to 2000
and unique id you put any number ( except this number is already uid of another quest) , then you just need to put the item inside the chest
 
First:
Goto your map editor and place the tree on tile to the south.

Second:
Fill actionid 2000 and a random unique id in (unique id shouldnt be used) and click on a black square and search steel boots and then OK
 
Back
Top