Guitar Freak
_LüA_n☺b_
Hello everyone.
First of all, I posted this question here in "general" Support instead of LUA/XML, because I highly doubt this can be done on LUA/XML.
Also, as the title says, Ill be repping (10 rep power) but only to helpful responses. Here we go.
♠ Compatibility:
Im using TFS 0.3.5pl1 for my proyect, but if you know how to do this only for 0.3.6+ thats ok too, I might change everything to that version if this can only be done to it.
But again, preference is 0.3.5pl1.
♠ Description:
Well, we all probably remember those old Evolution XML servers where we had an item attribute called "increaseMagicPercent", if you havent heard of it, it was an attribute that would increase the total Magic damage dealt of the player using a percentage.
This was usually seen on old 7.6 servers aswell, like when you worn a blue robe you would hit XX% more on everything magic-related (spells, wands, etc).
So anyway, Ive been all over TFS sources and there is nothing like this that my little knowledge on C++ can tell.
The only thing similar is the "magicpointspercent" attribute which modifies by a percentage the magic level, which is not what Im looking for.
I want it so when you wear an item, your total magic damage percent increases, period. So.. how in hell??
Storages is the way to check if the item is worn or not, but then I have no idea of how to modify this "total magic damage" of a player in TFS, Ive checked all functions in doc/sources and almost everything else in sources and after 2 weeks, Im just clueless.
It is possible since Ive seen 8.5 proyects with this.
Maybe my mental block from failed-attemps these past 2 weeks is keeping me from seeing a silly mistake that you guys can spot.
To clear any doubts, Im looking for help or even leeching, on creating this new item attribute OR lua function, that does what I specified up there.
Thanks in advance.
First of all, I posted this question here in "general" Support instead of LUA/XML, because I highly doubt this can be done on LUA/XML.
Also, as the title says, Ill be repping (10 rep power) but only to helpful responses. Here we go.
♠ Compatibility:
Im using TFS 0.3.5pl1 for my proyect, but if you know how to do this only for 0.3.6+ thats ok too, I might change everything to that version if this can only be done to it.
But again, preference is 0.3.5pl1.
♠ Description:
Well, we all probably remember those old Evolution XML servers where we had an item attribute called "increaseMagicPercent", if you havent heard of it, it was an attribute that would increase the total Magic damage dealt of the player using a percentage.
This was usually seen on old 7.6 servers aswell, like when you worn a blue robe you would hit XX% more on everything magic-related (spells, wands, etc).
So anyway, Ive been all over TFS sources and there is nothing like this that my little knowledge on C++ can tell.
The only thing similar is the "magicpointspercent" attribute which modifies by a percentage the magic level, which is not what Im looking for.
I want it so when you wear an item, your total magic damage percent increases, period. So.. how in hell??
Storages is the way to check if the item is worn or not, but then I have no idea of how to modify this "total magic damage" of a player in TFS, Ive checked all functions in doc/sources and almost everything else in sources and after 2 weeks, Im just clueless.
It is possible since Ive seen 8.5 proyects with this.
Maybe my mental block from failed-attemps these past 2 weeks is keeping me from seeing a silly mistake that you guys can spot.
To clear any doubts, Im looking for help or even leeching, on creating this new item attribute OR lua function, that does what I specified up there.
Thanks in advance.
Last edited: