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

TFS 0.X Show ammunation attack on look

potinho

Advanced OT User
Joined
Oct 11, 2009
Messages
1,403
Solutions
17
Reaction score
151
Location
Brazil
Hello guys,

To make the information clearer to the player, I would like the ATK of the ammunition (bolt, arrow, etc.) to be shown when looking at the item, could you help me do this?

I want to do like assassin stars
1700566456893.png

1700566510496.png

Follow my engine base:



I tried to use solution from this topic, but no work.


I also tried to change
C++:
 else if(it.weaponType != WEAPON_AMMO && it.weaponType != WEAPON_WAND)
to
C++:
else if(it.weaponType == WEAPON_AMMO && it.weaponType != WEAPON_WAND)
, in this way i can see ammo atk, but the rest of items have lost their atk description.
Post automatically merged:

Now i changed
C++:
else if(it.weaponType != WEAPON_AMMO && it.weaponType != WEAPON_WAND)
to
C++:
else if(it.weaponType != WEAPON_WAND)

Everything seems to work, i need to worry about anything to use like this? Any visible bug?
 
Last edited:
Back
Top