• 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 anni quest TFS 0.2.5

darkalkon

New Member
Joined
Oct 8, 2008
Messages
4
Reaction score
0
Hello, anyone can help me from the annihi quest? i use various scripts from this quest but don't work.

For example: shawak Script.

I use the The Forgotten Server version 0.2.5.

And don't understand the part of put the "uniqueid" in the actions.

And other question, if i put uniqueid=6969, in mapeditor is necesary change the uniqueid of the lever?

Pls, Help!!
 
Hello, anyone can help me from the annihi quest? i use various scripts from this quest but don't work.

For example: shawak Script.

I use the The Forgotten Server version 0.2.5.

And don't understand the part of put the "uniqueid" in the actions.

And other question, if i put uniqueid=6969, in mapeditor is necesary change the uniqueid of the lever?

Pls, Help!!

for what i understood the uniqueid its 6969 thats the unique id u put on lever hope it helped
 
Code:
local playerPosition =
{
	{x = 247, y = 659, z = 13, stackpos = STACKPOS_TOP_CREATURE},
	{x = 247, y = 660, z = 13, stackpos = STACKPOS_TOP_CREATURE},
	{x = 247, y = 661, z = 13, stackpos = STACKPOS_TOP_CREATURE},
	{x = 247, y = 662, z = 13, stackpos = STACKPOS_TOP_CREATURE}
}

local newPosition =
{
	{x = 182, y = 659, z = 13},
 	{x = 183, y = 659, z = 13},
	{x = 184, y = 659, z = 13},
	{x = 185, y = 659, z = 13}
}

-- Do not modify the declaration lines below.
local player = {0, 0, 0, 0}
local failed = FALSE

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		for i = 1, 4 do
			failed = TRUE
			player[i] = getThingfromPos(playerPosition[i])
			if player[i].itemid > 0 then
				if isPlayer(player[i].uid) == TRUE then
					if getPlayerStorageValue(player[i].uid, 30015) == -1 then
						if getPlayerLevel(player[i].uid) >= 100 then
							failed = FALSE
						end
					end
				end
			end
			if failed == TRUE then
				doPlayerSendCancel(cid, "Sorry, not possible.")
				return TRUE
			end
		end
		for i = 1, 4 do
			doSendMagicEffect(playerPosition[i], CONST_ME_POFF)
			doTeleportThing(player[i].uid, newPosition[i], FALSE)
			doSendMagicEffect(newPosition[i], CONST_ME_ENERGYAREA)
		end
		doTransformItem(item.uid, item.itemid + 1)
	elseif item.itemid == 1946 then
		doPlayerSendCancel(cid, "Sorry, not possible.")
	end
	return TRUE
end

Code:
<action uniqueid="30015" script="quests/annihilator.lua"/>

this is the original code that came with the server, if i like when click the lever that the players move to the demon room, in mapeditor is necesary modificate the lever? i modificate the script whit the good cordinates of my map and my server is TFS 0.2.5 mystic spirit,if there is a better code for my server, please bring it or change it and post if something is wrong.

P.D: si hay algun español mejor.
 
Back
Top