potinho
Advanced OT User
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:
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:
Put bellow fishing skill other 3 "skills" (storage value), something like this:
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