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

TFS 0.X [OTCv8] Add new skill on skill tab reading storage value

potinho

Advanced OT User
Joined
Oct 11, 2009
Messages
1,403
Solutions
17
Reaction score
151
Location
Brazil
Hello everyone, everything good? I have a critical hit chance, critical extra damage and dodge system per level on my server (all per storage). I would like to place this information in the skills bar, just below the fishing skill. I believe I will need to use extendOpcode, could anyone help me? Im using OTX 2 as engine and OTCv8 as client.
Put bellow fishing skill other 3 "skills" (storage value), something like this:

1700674833833.png

Critical Extra damage (Storage 794650): storage_value/100
Critical Hit chance (Storage 794750): storage_value/100
Dodge (Storage 48902): storage_value/100

I guess i will only get those storage values by opcodes, right?

i already created creaturescript on server side, registered onLogin, but im stucked now:

Lua:
function onExtendedOpcode(cid, opcode, buffer)
    local criticalChance = getPlayerStorageValue(cid, 794750)
    doSendPlayerExtendedOpcode(61, criticalChance)
    return true
end
 
Back
Top