Ugleethyn Posted December 2, 2018 Posted December 2, 2018 Hey guys ! I did augument weapons tradeabable its okay. My problem is that it don't show augumentions etc How can i add any msg like : Draconic Bow -Focus Agument : Duel Might Passive For example
0 HyperBlown Posted December 2, 2018 Posted December 2, 2018 you could make a system, that when the player add the item on the window, it sends a PM to the person with the Link system. As if you linked the item to him.
0 Ugleethyn Posted December 2, 2018 Author Posted December 2, 2018 I am speaking about interlude client :D so just an msg will be okay i guess
0 xxdem Posted December 2, 2018 Posted December 2, 2018 (edited) 5 minutes ago, DukeAwesome said: I am speaking about interlude client :D so just an msg will be okay i guess http://prntscr.com/lps3ua its possible, something like this for interlude Edited December 2, 2018 by xxdem
0 Ugleethyn Posted December 2, 2018 Author Posted December 2, 2018 Yeah! But i don't know how to do it xD
0 melron Posted December 2, 2018 Posted December 2, 2018 (edited) it requires client modification to get all those stats. you can add a check while adding items to the trade list and if its augmented and have skill, send the skill name as a message Edited December 2, 2018 by melron
0 xxdem Posted December 2, 2018 Posted December 2, 2018 (edited) it doesn't need client modifications this is the code I am using to generate the image above public String[] getPreview(final L2ItemInstance item) { if (item == null) return null; final String[] statsStr = new String[_stats.length]; for (int i = 0; i < _stats.length; i++) statsStr = " ->" + _stats.getAlias() + " +" + String.format("%.2f", _values * _stats.getAugmentMul()); return statsStr; } place it on L2Augmentation.java the getAlias method of the Stats class is custom, create it and modify each enum for a better stat representation text to the player or just use toString() it will work just as well Edited December 2, 2018 by xxdem 2
0 Ugleethyn Posted December 2, 2018 Author Posted December 2, 2018 3 minutes ago, melron said: it requires client modification to get all those stats. you can add a check while adding items to the trade list and if its augmented and have skill, send the skill name as a message Its a solution too.. :D By the way can you log at skype i want to ask you there (just for better and faster communication :P )
0 Ugleethyn Posted December 2, 2018 Author Posted December 2, 2018 Just now, xxdem said: it doesn't need client modifications this is the code I am using to generate the image above public String[] getPreview(final L2ItemInstance item) { if (item == null) return null; final String[] statsStr = new String[_stats.length]; for (int i = 0; i < _stats.length; i++) statsStr = " ->" + _stats.getAlias() + " +" + String.format("%.2f", _values * _stats.getAugmentMul()); return statsStr; } place it on L2Augmentation.java the getAlias method of the Stats class is custom, create it and modify each enum for a better stat representation text to the player or just use toString() which will be kinda uggly i will try it ofc! Thx mate
0 xxdem Posted December 2, 2018 Posted December 2, 2018 (edited) get rid of _stats.getAugmentMul()) its custom multiplier because I have boosted augments on my server Edited December 2, 2018 by xxdem
0 melron Posted December 2, 2018 Posted December 2, 2018 (edited) 1 hour ago, xxdem said: it doesn't need client modifications this is the code I am using to generate the image above public String[] getPreview(final L2ItemInstance item) { if (item == null) return null; final String[] statsStr = new String[_stats.length]; for (int i = 0; i < _stats.length; i++) statsStr = " ->" + _stats.getAlias() + " +" + String.format("%.2f", _values * _stats.getAugmentMul()); return statsStr; } place it on L2Augmentation.java the getAlias method of the Stats class is custom, create it and modify each enum for a better stat representation text to the player or just use toString() it will work just as well Well i dont know what im doing wrong here (im talking about the values) also it cuts higher values too... maybe i made i mistake in my methods ( i didnt use your code cause i got different sources ). but yeah its working without client modification .thanks for mentioned that p.s its 2 images in 1 Edited December 2, 2018 by melron
0 melron Posted December 2, 2018 Posted December 2, 2018 10 minutes ago, Kara` said: What you mean it cuts higher values? 42.5 will be 37.4 for example
0 Kara Posted December 2, 2018 Posted December 2, 2018 1 minute ago, melron said: 42.5 will be 37.4 for example Show me your code in pastebin e.t.c
0 melron Posted December 2, 2018 Posted December 2, 2018 5 minutes ago, Kara` said: Show me your code in pastebin e.t.c https://pastebin.com/GWamP2fY 1
Question
Ugleethyn
Hey guys !
I did augument weapons tradeabable its okay.
My problem is that it don't show augumentions etc
How can i add any msg like :
Draconic Bow -Focus Agument : Duel Might Passive
For example
25 answers to this question
Recommended Posts