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

walk on tile and transform ina a orc or minotaur!!

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
well i need this script it goes like this..

its for a event..
i nned if a players steps in a floor with x actionid the player will transform in different forms of orcs and minotaurs
i step in, it transform in a orc berserker, i step again and i transform into a orc warlord
for minotaur tile the same thing i step the tile, i trans form into a mino archer, i step again i transform in a mino mage and like that

kinda easy hehehe...

well tyy
oh another one if possible..
if i clic on a item like a coal basin it will broadcast a global message ty :D
 
LUA:
-- <movevent type="StepIn" uniqueid="29002" event="script" value="orcminotaur.lua"/>
-- <movevent type="StepIn" uniqueid="29001" event="script" value="orcminotaur.lua"/>

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)

	local orcuid = 29001 -- the tile unique id for orcs
	local t = 1000 * 60 -- 1 minute
	local minotauruid = 29002 -- the tile unique id for minotaurs
	
        local rand = math.random(1,8)

	if item.uid == orcuid then
		if rand == 1 then doSetMonsterOutfit(cid, "Orc Berserker", t)
			elseif rand == 2 then doSetMonsterOutfit(cid, "Orc Warlord", t)
			elseif rand == 3 then doSetMonsterOutfit(cid, "Orc Leader", t)
			elseif rand == 4 then doSetMonsterOutfit(cid, "Orc Spearman", t)
			elseif rand == 5 then doSetMonsterOutfit(cid, "Orc", t)
			elseif rand == 6 then doSetMonsterOutfit(cid, "Orc Warrior", t)
			elseif rand == 7 then doSetMonsterOutfit(cid, "Orc Rider", t)
			elseif rand == 8 then doSetMonsterOutfit(cid, "Orc Shaman", t)
		end
	end
						
	local rando = math.random(1,4)
	
	if item.uid == minotauruid then
		if rando == 1 then doSetMonsterOutfit(cid, "Minotaur", t)
			elseif rando == 2 then doSetMonsterOutfit(cid, "Minotaur Archer", t)
			elseif rando == 3 then doSetMonsterOutfit(cid, "Minotaur Guard", t)
			elseif rando == 4 then doSetMonsterOutfit(cid, "Minotaur Mage", t)
		end
	end
end

np
 
Back
Top