Feature True dual wielding for TFS 1.x

Call Me Taffy

Call Me Maybe
Joined
Aug 9, 2009
Messages
649
Reaction score
114
Wow this has some nice versatility.
Because of the way its done, you "could" have one handed crossbows...

Gonna save this for later.
You can now?

<item id="2455" article="a" name="crossbow">
<attribute key="weight" value="4000" />
<attribute key="weaponType" value="distance" />
<attribute key="slotType" value="two-handed" /> -- or value "one-handed"
<attribute key="ammoType" value="bolt" />
<attribute key="range" value="5" />
</item>
 

Elwthz

Member
Joined
Jun 5, 2015
Messages
72
Reaction score
5
Thank you so much, 100% working now :)
 
Last edited:

popitox

Excellent OT User
Joined
Jul 8, 2008
Messages
42
Reaction score
5
same question how i do to apply the patch?
 

newhera

New Member
Joined
May 26, 2011
Messages
1
Reaction score
0
same question how i do to apply the patch?
1. You need to move "patch.exe" and the .patch archive to your Source root.
2. Then open CMD with Admin permission
3. Move into directories to your source root, using cd command.
4. Execute this command:
patch.exe -p1 --binary -i PATCHARCHIVE.patch
In this case
patch.exe -p1 --binary -i dual-wielding.patch

Basically, you need to move to your source dir into prompt, and execute the command. Find by myself :g
 

Verrine

Member
Joined
Mar 2, 2016
Messages
121
Reaction score
7
What error you getting? i just did it and compiled fine.
Code:
CMakeFiles/tfs.dir/src/player.cpp.o: In function `Player::getWeapon(bool) const':
player.cpp:(.text+0x2460): undefined reference to `Player::isDualWielding() const'
CMakeFiles/tfs.dir/src/player.cpp.o: In function `Player::getAttackSpeed() const':
player.cpp:(.text+0x82d4): undefined reference to `Player::isDualWielding() const'
CMakeFiles/tfs.dir/src/weapons.cpp.o: In function `Weapon::playerWeaponCheck(Player*, Creature*, unsigned char) const':
weapons.cpp:(.text+0x167a): undefined reference to `Player::isDualWielding() const'
CMakeFiles/tfs.dir/src/weapons.cpp.o: In function `Weapon::onUsedWeapon(Player*, Item*, Tile*) const':
weapons.cpp:(.text+0x1c5d): undefined reference to `Player::isDualWielding() const'
collect2: error: ld returned 1 exit status
 

Ochman

Premium User
Premium User
Joined
Feb 27, 2016
Messages
195
Reaction score
123
Paste here code from those errors (double-click them).
 

bonfim25

New Member
Joined
Jan 17, 2011
Messages
17
Reaction score
1
Location
Brazil
one-handed weapon and shield, skill level up first fight and shield and not leveling sword, axe and club skill ,sorry for bad English!
 

Itutorial

Advanced OT User
Joined
Dec 23, 2014
Messages
1,434
Reaction score
316
ERRORS:
Code:
1>..\src\combat.cpp(502): warning C4189: 'targetPlayer': local variable is initialized but not referenced
1>  commands.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasetasks.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  events.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>  guild.cpp
1>  house.cpp
1>  housetile.cpp
1>  inbox.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  iomarket.cpp
1>  item.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  mounts.cpp
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outfit.cpp
1>  outputmessage.cpp
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>  protocolgamebase.cpp
1>..\src\player.cpp(2558): error C2039: 'ALLOW_DUAL_WIELDING': is not a member of 'ConfigManager'
1>  c:\users\main\desktop\compile\tfs 1.2 10.90 + cast\src\configmanager.h(26): note: see declaration of 'ConfigManager'
1>..\src\player.cpp(2558): error C2065: 'ALLOW_DUAL_WIELDING': undeclared identifier
1>..\src\player.cpp(2603): error C2039: 'ALLOW_DUAL_WIELDING': is not a member of 'ConfigManager'
1>  c:\users\main\desktop\compile\tfs 1.2 10.90 + cast\src\configmanager.h(26): note: see declaration of 'ConfigManager'
1>..\src\player.cpp(2603): error C2065: 'ALLOW_DUAL_WIELDING': undeclared identifier
1>  protocolspectator.cpp
1>  protocollogin.cpp
1>..\src\protocolspectator.cpp(364): warning C4100: 'broadcast': unreferenced formal parameter
1>..\src\protocollogin.cpp(47): warning C4100: 'version': unreferenced formal parameter
1>  protocolold.cpp
 

Itutorial

Advanced OT User
Joined
Dec 23, 2014
Messages
1,434
Reaction score
316
Hmm cant duel wield seems problem is deeper then I thought.
 
Top