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

OTClient OTClient - show image during 30 seconds

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
Lua:
function Creature:onGiveIcon(Id)
    local imagePath = "/images/game/shield_icon"

    if imagePath then
        self:setGiveIcon(imagePath)
    end
end

I see this code in one server, when player use spell, it generete a img (shield icon), next to the character's head for 30 seconds and then disappears.
I don't know what the other part of the code is, how can I do that?
I need a code in OTC that will generate an image (shield icon) on the side of the player's head for 5 seconds, after carrying out the action (utana vid spell)
 
Back
Top