Togu
Advanced OT User
I need to check if a player is wielding two weapons (I'm using a dual wielding system) in OTClient but I didn't find any lua function like getPlayerWeapon.
Any tips?
I want to change the attack speed value if player is wielding 2 weapons.
Edit:
Now I need to know how to check if some item in hand slot has attack attribute
Any tips?
Lua:
function onBaseSkillChange(localPlayer, id, baseLevel)
setSkillBase('skillId'..id, localPlayer:getSkillLevel(id), baseLevel)
setSkillValue('attackspeed', ((localPlayer:getSkillBaseLevel(4) - 8)/2 + 100) .. "%")
end
I want to change the attack speed value if player is wielding 2 weapons.
Edit:
Now I need to know how to check if some item in hand slot has attack attribute
Last edited: