• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Sacrifices request

zerghel

Tsuni
Joined
Jul 1, 2008
Messages
299
Reaction score
9
ok here's my idea
sacrifice 2 lives to create specific monster or a random monster from a small list in the script(prefer with lvl req)
you have 2 noobs (N), in the middle (x) the monster will be spawned and behind is the lever (L)
when someone pull the lever the noobs get owned and the monster appear to terrorize the town

N
x L
N


Another is Sacrifice an item in a coal basin with a lever to get an outfit

i'm using TFS 0.2.5
now if someone can make this 2 scripts he/she will be my hero 'cause im not a scripter =B

thx
 
Maybe this works
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local monster = "Demon"
local monsterPos = {x = 101, y = 101, z = 7}
local noobPositions =
{
	{x = 100, y = 100, z = 7},
	{x = 102, y = 102, z = 7}
}
local t = 0
local leverID = {1945, 1946}

	if(isInArray(leverID, item.itemid) and item.actionid == ACTION_ID) then
		for i = 1, table.maxn(noobPositions) do
			local n = getTileThingByPos(noobPositions[i]).uid
			if(isPlayer(getTileThingByPos(n) == true) then
				doCreatureAddHealth(n, -getCreatureHealth(n))
				t = 1
			end
		end
		
		if(t > 0) then
			doCreateMonster(monster, monsterPos)
			doTransformItem(item.uid, (item.itemid == 1945 and 1946 or 1945))
		end
	end
	return true
end
 
Back
Top