Accountant Posted January 1, 2017 Posted January 1, 2017 Hey guys,i need help to change the image on my command .status (shows target stats). I cannot find where i can change the image on source but i cannot find the html file either.
0 'Baggos' Posted January 1, 2017 Posted January 1, 2017 On 1/1/2017 at 12:17 PM, Accountant said: Hey guys,i need help to change the image on my command .status (shows target stats). I cannot find where i can change the image on source but i cannot find the html file either.Is in your source.. voicedcommandhandler. Go there and you will see your command.
0 Accountant Posted January 1, 2017 Author Posted January 1, 2017 It's not there,probably made a mistake or two when compiling before.I can only see a statscmd.java but commands there is stat and stats.Btw ty for fast reply.
0 Reborn12 Posted January 1, 2017 Posted January 1, 2017 (edited) paste your code here is hardcoded html as i can see on a svn frozen must be in those lines NpcHtmlMessage adminReply = new NpcHtmlMessage(5); L2PcInstance targetp = (L2PcInstance) activeChar.getTarget(); TextBuilder replyMSG = new TextBuilder("<html><body><center>"); replyMSG.append("<br><br><font color=\"00FF00\">=========>>" + targetp.getName() + "<<=========</font><br>"); replyMSG.append("<font color=\"FF0000\">Level: " + targetp.getLevel() + "</font><br>"); must be like this NpcHtmlMessage adminReply = new NpcHtmlMessage(5); L2PcInstance targetp = (L2PcInstance) activeChar.getTarget(); TextBuilder replyMSG = new TextBuilder("<html><title>Status</title><body><center><img src=l2font-e.mini_logo-e width=180 height=80></center><center><br>"); replyMSG.append("<br><br><font color=\"00FF00\">=========>>" + targetp.getName() + "<<=========</font><br>"); replyMSG.append("<font color=\"FF0000\">Level: " + targetp.getLevel() + "</font><br>"); Edited January 1, 2017 by Reborn12
0 Accountant Posted January 1, 2017 Author Posted January 1, 2017 My problem solved.Thnx guys for fast support,you can lock.
Question
Accountant
Hey guys,i need help to change the image on my command .status (shows target stats). I cannot find where i can change the image on source but i cannot find the html file either.
5 answers to this question
Recommended Posts