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

Random Monster's Doll Rep++

hucko

Special Order
Joined
May 6, 2011
Messages
79
Reaction score
1
sorry for my bad English , :(

I'm Looking for Random monster's doll

this doll if i use it then i will get a random monster look type for just one time <_<


i mean i will use it for just one time and it will vanish :ninja: like Vip Medal .

Can i find someone help me ?

with tutorial please .. How i will put it > tibia 8.60
 
Lua:
local time = 60000 -- set here time in miniseconds (60000 means one minute 60*1000, or set -1 to make it infinite)
local ids = {35, 2, 133, 36} -- put there ids of your outfits

function onUse(cid, item, frompos, item2, topos)
local outfit = {lookType = ids[math.random(#ids)]}
	return doSetCreatureOutfit(cid, outfit, time)
end
 
sorry for my bad English , :(

I'm Looking for Random monster's doll

this doll if i use it then i will get a random monster look type for just one time <_<


i mean i will use it for just one time and it will vanish :ninja: like Vip Medal .

Can i find someone help me ?

with tutorial please .. How i will put it > tibia 8.60

Heres outfit changer, but with unlimited times!
I saw andu done one thats limited! Heres unlimited changer.

Code:
 -- ~
local effects = {1, 2, 3, 4, 5, 6, 7}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
        for i = 1, #effects do
                doSendMagicEffect(getCreaturePosition(cid), effects[i])
        end
        doCreatureChangeOutfit(cid, {lookType = math.random(2, 134), lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0})
        doSendAnimatedText(getPlayerPosition(cid),"Changed!", math.random(01,255))
return TRUE
end
 
thx and i Rep++ u but any tutorial for that ? how i can put this Code ? Data/Action ..... < example
 
Use The one I use work fine :p

Put this in actions/scripts name it monster.lua
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


Put this on action.xml :)
PHP:
<action itemid="xxxx" script="monster.lua"/>


You need to change The "xxxx" to the item id u want the monster doll be :p



Rep if work ^^
 
Last edited:
HELP ME ( REP++ )!!!!!!! PLEASE :( > I write outfit id ( don't works) >
local outfits = {411 , 486 , 485 , 451 , 460 , 485 , 486 , 489 , 361 , 377 , 378 , 108 , 139 , 146 , 154 , 202 , 203 , 262 , 34 , 45 , 55 , 63 , 73 , 62 }
local waittime = 2 --Default (30 seconds)
local exhaust = createConditionObject(CONDITION_EXHAUST)
local outfits = {411 , 486 , 485 , 451 , 460 , 485 , 486 , 489 , 361 , 377 , 378 , 108 , 139 , 146 , 154 , 202 , 203 , 262 , 34 , 45 , 55 , 63 , 73 , 62 }
local outfit =
{
lookType = 411,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0
}
local outfit0 =
{
lookType = 411,
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
doCreatureSay(cid, "Change!", TALKTYPE_ORANGE_1)
doSetCreatureOutfit(cid, outfit, -1)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end
 
Last edited:
Back
Top