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

Doll change your aparence to a creature[Action]

strial mage

Nightfall
Joined
Apr 17, 2009
Messages
17
Reaction score
0
Location
Thais
I need a scripts of this: you use the doll with the second buttons and he change your look for a creature looktype, ejample:

you get the item in a quest and you click and he change your look for a orc warlord later you click again and you change to a orc rider and etc,etc.

thanks a lot ^_^
 
OMG, i have done to warlord and rider ^^
but i'll try to all monsters


Just test to know if works...

Code:
function onUse(cid, item, frompos, itemEx, toPosition)
if getPlayerStorageValue(cid,9988) ~= 1 then
	doCreatureChangeOutfit(cid, 2)
	setPlayerStorageValue(cid,9988,1)
		elseif getPlayerStorageValue(cid,9988) == 1 then
			doCreatureChangeOutfit(cid, 4)
			setPlayerStorageValue(cid,9988,2)
		return TRUE
end
return TRUE
end


I need the list of Creature IDs... without this i can't do anything =\
 
Last edited:
Code:
local outfits = {5, 6, 7, 8, 9, 15, 18, 23, 24, 25, 29, 33, 37, 40, 48, 50, 53, 54, 57, 58, 59, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 76, 78, 93, 96, 97, 98, 100, 126, 127, 193,
				 194, 195, 196, 203, 214, 215, 216, 229, 232, 235, 237, 246, 249, 253, 254, 255, 259, 260, 264, 281, 282, 287, 296, 297, 298, 300, 301}
local outfit =
	{
		lookType = 2,
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
local outfit0 =
	{
		lookType = 2,
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
    if getPlayerStorageValue(cid,1921) == i then
         outfit.lookType = outfits[i]
             doCreatureSay(cid, "Change!", TALKTYPE_ORANGE_1)
                 doSetCreatureOutfit(cid, outfit, -1)
            setPlayerStorageValue(cid,1921,i+1)
break
     end
        end
     end
        end
 
Back
Top