• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Animal Doll

swordman

Member
Joined
Jun 5, 2011
Messages
394
Reaction score
7
Hello Otlanders,


-Does anyone know how to make an animal doll that can only be used every 30 sec to change the monster outfit?

or does anyone know how to make an animal doll like the addon doll saying. !addon citizen.
But now when u say !animal orc. U get the orc outfit into ur outfits

Repp+
 
Animal doll:
PHP:
local waittime = 2 --Default (30 seconds)
local exhaust = createConditionObject(CONDITION_EXHAUST)
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

Someone know how to make it so the doll can be used every 30 sec.
and than it turn u just into a monster.
not like 1.demon 2.skeleton 3.fire devil.

it have to be random
 
Hello Otlanders,


-Does anyone know how to make an animal doll that can only be used every 30 sec to change the monster outfit?

or does anyone know how to make an animal doll like the addon doll saying. !addon citizen.
But now when u say !animal orc. U get the orc outfit into ur outfits

Repp+

Add the orc looktype as a new outfit instead?
 
LUA:
local config = {
item = 2160,--ItemID Needed
itemA = 1,--Amount of items you need!
itemR = 1,--Remove item?
itemRA = 1,--Remove item amount
itemNeed = 1,--Set to = 0 and you wont need an item to use this script!
outfit = 302--Looktype (outfit ID)
}
function onSay(cid, words, param, channel)
	if(getPlayerItemCount(cid, config.item) > config.itemA or config.itemNeed == 0) then
		doCreatureChangeOutfit(cid, config.outfit)
		if(itemR == 1) then
			doPlayerRemoveItem(cid, config.item, config.itemRA)
		end
	else
		doPlayerSendCancel(cid, "You must have an animal doll to use this!")
	end
	return true
end
Made up a small simple script, not tested.. feel free to mod it for however you like
 
@up: But it only change outfit, when player logg, he quit the outfit...
What he wants is the outfit to be added to the list of outfits of the player...
So go to outfits.xml, add a condition to orc outfit to have a storage to use...
Then with talkaction add storage...
You have the outfit added ;)
 
Back
Top