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
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
Last edited: