• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ need help with some "get" functions in C++ (TFS 1.2)

reisbro

Member
Joined
May 15, 2017
Messages
94
Solutions
1
Reaction score
7
EDIT: Forgot to explain the "get" functions I want lol. Every time a new item is created it has random stats, it doesn't matter if it is via /i command, monster drops, quests, trade or etc... So would it be possible to get the origin square of the item (the chest if it is a quest, the monster if it is a drop, the player if it is via trade) and send the magic effect?

I am creating my own random attribute system that will basically include every kind of attributes like elemental damage, elemental protection, attack, range, speed and etc.
I already managed to implement the attribute chances on drop and etc via item.cpp and such. However it would be a real pain in the ass if the player had to "look" at every drop to see if one of them has random attributes...
So my question is, is it possible to send an effect at the dead creature's position if the creature contains a modified item? Just so the player knows that there is a modified equipment inside...

How can I send this effect via source codes?
I was thinking about LUA too, maybe checking if the content description of the dead creature contains keywords such as superior, rare, epic, masterwork or legendary which are the names the items get based on their power.. I am currently writing lua to see if it works, but if you know how to do it in C++ please tell me :D
 
Last edited:
Back
Top