mehah / otclient

An alternative tibia client for otserv written in C++20 and Lua, made with a modular system that uses lua scripts for ingame interface and functionality, making otclient flexible and easy to customize
Other
269 stars 209 forks source link

fix: packet addCreatureIcon issues : #971 #972

Closed kokekanon closed 4 days ago

kokekanon commented 5 days ago

Description

miss for here image

Only fix packets , no feature

Behavior

Actual

Packet Error

Expected

Do this and that happens

Fixes

971

Type of change

How Has This Been Tested

tfs 13.10

local spawn = GlobalEvent("spawnStartup")
function spawn.onStartup()
        local m = Game.createMonster("Demon", {x = 95, y = 121, z = 7}, true, true)
        m:setSpecialIcon(5,0)
        m:setIcon(CREATURE_ICON_PIGEON,0)
        m:setIcon(CREATURE_ICON_QUESTION,1)
end
spawn:register()

canary 13.40

local spawn = GlobalEvent("spawnStartup")
function spawn.onStartup()
        local m = Game.createMonster("Demon",Position(32335, 32189, 7), true, true)

        m:setIcon("magma-bubble",0,4)
        m:setIcon("goshnars-hatred-damage",1,7)
end
spawn:register()

Test Configuration:

Checklist

sonarcloud[bot] commented 5 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud