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

monster lever

Zerak456

Gorlex.net NEW!
Joined
Aug 13, 2008
Messages
1,060
Reaction score
6
dmflucid need a script when you pull a lever you turn into a monster and when you are in the shape of that monster you can't get hit ýou because ur one of them..

dmflucid need it:p

im just a player, and im helping peps so i want to help dmflucid
 
@Up,

I do not think if you look like the monster,
you can't be attacked by the same one will work.

Wrong Section
 
Maybe this will work?

Lua:
function onUse(cid, item, frompos, item2, topos)
	local outfit = {looktype = 35}
	local time1 = 60 * 1000 -- Seconds
	local storage = 12345
		if(getPlayerStorageValue(cid, storage) ~= TRUE) then
			doSetMonsterOutfit(cid, outfit, time1)
		else
			doPlayerSendCancel(cid, "You have already pulled the lever.")
		end
	return 1
end
 
Maybe this will work?

Lua:
function onUse(cid, item, frompos, item2, topos)
	local outfit = {looktype = 35}
	local time1 = 60 * 1000 -- Seconds
		if(isPlayer == TRUE) then
			doSetMonsterOutfit(cid, outfit, time1)
		else
			doPlayerSendCancel(cid, "You have already pulled the lever.")
		end
	return 1
end


Add "Player Flag" and add a "Ignored By Monsters" + Ticks for it..

and it will work ^.^



I don't know what flag or such, I don't got access to my Private Computer atm, because its broke >.<
 
Lua:
function onUse(cid, item, frompos, item2, topos)
	local outfit = {lookType = 35, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
	local time1 = 60 * 1000 -- Seconds
		if(isPlayer(cid) == TRUE) then
			doSetCreatureOutfit(cid, outfit, time1)
		else
			doPlayerSendCancel(cid, "You have already pulled the lever.")
		end
end

Edited.
Try again.
 
Last edited:
Try it again, I made a small change.
I am just gonna keep editing that post.

Did it work?
Errors?

Lua:
function onUse(cid, item, frompos, item2, topos)
        local outfit = {lookType = 35, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
        local time1 = 60 * 1000 -- Seconds
            if(isPlayer(cid) == TRUE) then
                doSetCreatureOutfit(cid, outfit, time1)
	        doSendPlayerTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have changed into a demon for ".. time1 .." seconds.")
	    else
                doPlayerSendCancel(cid, "You have already pulled the lever.")
	    end
end
 
Last edited:
Back
Top