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

Lua Leaver witch makes you into a monster's outfit!

Rossii

Member
Joined
Mar 27, 2012
Messages
366
Reaction score
6
Location
England
Hi!!

Dose anybody have a script where when you click a leaver you get turned into a monsters outfit..?

For 0.3.6 Pleaseeee Rep+
 
Not sure whose script it is, so I can't give credits to anyone. I use this on my server, or rather used..
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local cfg = {}
	cfg.outfit = { lookType = 35, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0 }
	cfg.storage = 10101
	cfg.time = 5 -- Minutes
	if(exhaustion.get(cid, cfg.storage) == true) then
		doPlayerSendCancel(cid, "You can only use this once every " .. cfg.time .. " minutes.")
		return true
	end
	if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
		doSendAnimatedText(getCreaturePosition(cid), 'GiRl', TEXTCOLOR_GOLD)
	elseif(getPlayerSex(cid) == PLAYERSEX_MALE) then
		doSendAnimatedText(getCreaturePosition(cid), 'MaLe', TEXTCOLOR_GOLD)
	end
	doSetCreatureOutfit(cid, cfg.outfit, cfg.time * 60 * 1000)
	exhaustion.set(cid, cfg.storage, cfg.time * 60 * 1000)
	return true
end
 
Lua:
cfg.outfit = {"orc warrior", "pirate cutthroat", "dworc voodoomaster", "dwarf guard", "minotaur mage", "frost giant", "serpent spawn", "demon", "behemoth", "warlock"}
doSetMonsterOutfit(cid, cfg.outfit[math.random(#cfg.outfit)], cfg.time * 60 * 1000)
 
Do i just replace

cfg.outfit = { lookType = 35, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0 }

With

cfg.outfit = {"orc warrior", "pirate cutthroat", "dworc voodoomaster", "dwarf guard", "minotaur mage", "frost giant", "serpent spawn", "demon", "behemoth", "warlock"}
doSetMonsterOutfit(cid, cfg.outfit[math.random(#cfg.outfit)], cfg.time * 60 * 1000)

- - - Updated - - -

So it would be like this?


PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	cfg.outfit = {"orc warrior", "pirate cutthroat", "dworc voodoomaster", "dwarf guard", "minotaur mage", "frost giant", "serpent spawn", "demon", "behemoth", "warlock"}
    an doSetMonsterOutfit(cid, cfg.outfit[math.random(#cfg.outfit)], cfg.time * 60 * 1000)
	cfg.storage = 10101
	cfg.time = 5 -- Minutes
	if(exhaustion.get(cid, cfg.storage) == true) then
		doPlayerSendCancel(cid, "You can only use this once every " .. cfg.time .. " minutes.")
		return true
	end
	if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
		doSendAnimatedText(getCreaturePosition(cid), 'GiRl', TEXTCOLOR_GOLD)
	elseif(getPlayerSex(cid) == PLAYERSEX_MALE) then
		doSendAnimatedText(getCreaturePosition(cid), 'MaLe', TEXTCOLOR_GOLD)
	end
	doSetCreatureOutfit(cid, cfg.outfit, cfg.time * 60 * 1000)
	exhaustion.set(cid, cfg.storage, cfg.time * 60 * 1000)
	return true
end
 
Back
Top