Do you have any idea where I can do this? so that only WEAPON_SWORD receives this attribute of 2 atks?Server as default get only dmg from first weapon it finds. You need to edit sources. Should be in player class some method getting the atk from eq. Then you would need to edit it to force server to calculate damage from both hands.
What code are you using? Paste a link.Hello, can someone help me? I already have permissions to use two sword in my server. But, the damage does not multiply by 2. How can I mutiplicate the damage if the player uses 2 swords in slots at left and right?
I only edited player.cpp authorizing the use two weapons ... in the case, weapons the type sword ... but, the attack is not multiplied by 2.What code are you using? Paste a link.
/** * The Forgotten Server - a free and open-source MMORPG server emulator * - Pastebin.comthere are many open tibia servers and everyone has its own player.cpp file
Provide us the exact version youre working on, then we would be able to help you
The dual wield doesn't works in 1.3 :/Just implement "dual wield". It's an attribute which you can use to each weapon separately.
Seems like its possible to do, but will require full access to sources, since writing test methods on forum and waiting for response will be extremely inefficient work.
I would start in doAttacking method where
Item* tool = getWeapon();
const Weapon* weapon = g_weapons->getWeapon(tool);
it takes the single weapon
and then:
weapon->useWeapon(this, tool, attackedCreature);
It executes the attack (described method is in weapon class)
There would be need some new function in player class that would take both weapons and then new weapon-function that would calculate damage from them.
imo you need to do it by yourself or make request/job, giving someone full access to edit,debug and tests sources.