xXObanXx Posted May 10, 2012 Posted May 10, 2012 Hello MxC! so i want to tell me a code that all players will see the screen message that i will put! everyone knows how to do that?!!! i have freya server last revision!
0 Rizlaaa Posted May 11, 2012 Posted May 11, 2012 on eclipse don't get any error and on build too... but in the game don't show me the screenmessage check please if this code is ok: ExShowScreenMessage vote = (new ExShowScreenMessage("Need " + votesneed + " votes More to Reward all Players.", 10000)); for(L2PcInstance player : L2World.getInstance().getAllPlayers().values()) { if(player == null) continue; sendPacket(vote); } i have any problem on this? It should work .
0 Vkouk Posted May 11, 2012 Posted May 11, 2012 Collection<L2PcInstance> plrs = L2World.getInstance().getAllPlayers().values(); CreatureSay cs = new CreatureSay(1, Say2.ANNOUNCEMENT, "Server:", "lalalala"); for (L2PcInstance p : plrs) { p.sendPacket(cs); } try it
0 xXObanXx Posted May 11, 2012 Author Posted May 11, 2012 man this is for announcement (Say2.ANNOUNCEMENT) not for screen message!!!
0 Rizlaaa Posted May 11, 2012 Posted May 11, 2012 Try to take another system from a server which has already this system. I had this problem 1 time (but C6).
0 `NeverMore Posted May 11, 2012 Posted May 11, 2012 also you can check how ExShowScreenMessage.java works , but do you mean it doenst work ? it doent show anything? i guess this is imposible ...
0 xXObanXx Posted May 11, 2012 Author Posted May 11, 2012 also you can check how ExShowScreenMessage.java works , but do you mean it doenst work ? it doent show anything? i guess this is imposible ... o yeah... it don't show anything...
0 Tryskell Posted May 11, 2012 Posted May 11, 2012 I like to be ignored. Broadcast.toAllOnlinePlayers(new ExShowblabla...);
Question
xXObanXx
Hello MxC! so i want to tell me a code that all players will see the screen message that i will put!
everyone knows how to do that?!!!
i have freya server last revision!
24 answers to this question
Recommended Posts