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

Need script!

Ryokushin

New Member
Joined
Jun 20, 2009
Messages
42
Reaction score
0
can i have someone make a script, that:

1: kill a monster
2: put monster on a tile:
3: pull lever with monster on the tile
4: door unlocks/portal opens.

im using roxor 8.5 TFS v0.2.5 if someone could help it would be SWEET!
 
Sry for late reply, mom didnt pay internet bill...Anyway, I want it so when you kill a monster lets say a Boss. When the monster is killed in order to access the next part of the area, you need to put its corpse on a tile to unlock a door, or open a portal...
 
Quick Script - Teleports Player

Not Tested

Lua:
local storage = 12345
local BODY = XXXX
local pos = { x=100, y=100, z=7 }
function onUse(cid, item, fromPosition, itemEx, toPosition)
local monster = getThingfromPos((pos).BODY)
local playerStorage = getPlayerStorageValue(cid, storage)
	if (item.itemid == 1945) then
		if (playerStorage == 1) then
			if (monster == TRUE) then
				doTeleportThing(cid, pos)
				doSendMagicEffect(toPosition, CONST_ME_TELEPORT)
				doRemoveItem(monster.uid)
			else
				doPlayerSendCancel(cid, "You must place the orshabaal on the tile.")
			end
		else
			doPlayerSendCancel(cid, "You have not killed the monster.")
		end
	elseif (item.itemid == 1946) then
		doTransformItem(item.uid,item.itemid-1)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
	return true
end
 
Last edited:
Back
Top