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

need help with monster look type

3AsFoR

New Member
Joined
Jan 18, 2015
Messages
41
Reaction score
0
Location
Egypt
i need monster script that monster change his look to 6 items and change look between them random
any help please !!!
 
Firstly I don't think this is the right place to ask questions
Secondly it would help to know what distro you are using
Unless theres a way to do it in XML I would imagine what you want is a creaturescript so put:
Lua:
      <script>
        <event name="changelook"/>
    </script>
in your monster
then in creaturescripts.xml:
Code:
    <event type="think" name="changelook" script="changelook.lua" />
then in changelook.lua:
Lua:
function onThink(cid, target)
    local chance = math.random(6)
    local looks = {2220,2168,8432,1434,3200,3842}
    for i=1,6 do
        if chance = i then
            doSetItemOutfit(cid, looks[i], 2000)
        end
    end
    return true
end
this should do what you want
 
Yes you are right, this line comes from dark_apprentice.xml:
Code:
        <defense name="outfit" interval="2000" chance="5" target="1" monster="green frog" duration="3000" />
 
Yes you are right, this line comes from dark_apprentice.xml:
Code:
        <defense name="outfit" interval="2000" chance="5" target="1" monster="green frog" duration="3000" />
But you can also link a script to the monster file.
 
Back
Top