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

C++ TFS 0.3.6 ~[SOURCE-EDIT] How to use two weapons and two shields simultaneously?

So I put two weapons in my hand and two shields, he doesn't attack with the two weapons and two shields, he only attacks if it's a weapon and defends if it's a shield, 1 in each hand.

Player.cpp
Only one weapon works, not both together ; and shield too
 
Last edited:
So I put two weapons in my hand and two shields, he doesn't attack with the two weapons and two shields, he only attacks if it's a weapon and defends if it's a shield, 1 in each hand.

Player.cpp
Only one weapon works, not both together ; and shield too
just make a on use weapon script, to check if shield slot has attack value if it does, then oldattackvalue + new attack added from shield = execute combat

then do this

"on my server i just did a SHIELD with a SWORD sprite
and a SWORD with a SHIELD sprite "

the shield (with sword sprite) just rename it like the sword and add attack value.
 
@Cardinale i think you kinda missunderstand the @samuel157 request, he want dual wield, which mean's you have 2x weapon (Left Hand, Right Hand) lets say Bright Sword on the left, and Fire Sword on the right, and from now it will hit one time by Brght Sword, then next hit will be from Fire Sword,

no, i want to SOURCE
START LEARNING THEN, TRY DO SMTH ON YOUR OWN, PASTE THE CODE OF YOUR TRIES, ANYTHING.
 
@Cardinale i think you kinda missunderstand the @samuel157 request, he want dual wield, which mean's you have 2x weapon (Left Hand, Right Hand) lets say Bright Sword on the left, and Fire Sword on the right, and from now it will hit one time by Brght Sword, then next hit will be from Fire Sword,


START LEARNING THEN, TRY DO SMTH ON YOUR OWN, PASTE THE CODE OF YOUR TRIES, ANYTHING.
of course i did understand, i just do things simplier, if you read my comments i got dual wield on my server just doing that easy! not touching sources nothing
 
Then how about sharing with everyone else who may want the same thing?
1, go to item otb look for an unused shield and change the sprite displayed for one sword/dagger etc
2, rename that shield to the same name/desc of the sword and add attack value on item.xml
3, make on use weapon script to check if shield slot has attack value
4, execute combat, done dual wield.
 
Back
Top