ČυяŞŀŅğ Posted January 28, 2014 Share Posted January 28, 2014 (edited) i want to add Messages for new players only ! How i could done this ? Like this on enderworld sendPacket(new CreatureSay(1, Say2.PARTY, "SYSTEM", "Write .lang to change language")); Send the msg to all players :/ not only on the new :S Also can I add delay time for exshowscreen msgs? like this activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT, Config.WELCOME_MESSAGE_TIME)); How i can add delay between of those ExShowScreenMessages? i tryed if (activeChar.getNewbie()) but Type mismatch: cannot convert from int to boolean.. I have to change l2pcinstance and this is pain on my ass :/ thank you in advance ^^ Edited January 28, 2014 by ČυяŞŀŅğ Quote Link to comment Share on other sites More sharing options...
0 ČυяŞŀŅğ Posted February 2, 2014 Author Share Posted February 2, 2014 nvm ,I made one html appear after creation.. cannot find other way.. on l2jfreya newbies method removed.. Quote Link to comment Share on other sites More sharing options...
0 `iAndre Posted January 28, 2014 Share Posted January 28, 2014 (edited) Try this one:Add this in enterworld.java if (activeChar. isNewbie()) { activeChar.broadcastMessage(SystemMessageId.WELCOME_NEWBIE_MESSAGE); } And this in SystemMessageId.java public static final SystemMessageId PLEASE_WAIT_A_MOMENT; + public static final SystemMessageId WELCOME_NEWBIE_MESSAGE; + /** + * ID:2022<br> + * Message: Welcome to our server. + */ And this in SystemMessageId.java PLEASE_WAIT_A_MOMENT = new SystemMessageId(2031); +WELCOME_NEWBIE_MESSAGE = new SystemMessageId(2022); //Edit You should also add it in Systemmsg-e with the proper id. Edited January 28, 2014 by `iAndre Quote Link to comment Share on other sites More sharing options...
0 ČυяŞŀŅğ Posted January 28, 2014 Author Share Posted January 28, 2014 The method isNewbie() is undefined for the type L2PcInstance Also is not needed to edit client , or SystemMessageId.java i can use activeChar.sendPacket works like that , just the code cannot Find the " newbie method on l2 pcinstance :/ Btw im using l2jserver / Freya any idea? Quote Link to comment Share on other sites More sharing options...
0 `iAndre Posted January 28, 2014 Share Posted January 28, 2014 (edited) The method isNewbie() is undefined for the type L2PcInstance Also is not needed to edit client , or SystemMessageId.java i can use activeChar.sendPacket works like that , just the code cannot Find the " newbie method on l2 pcinstance :/ Btw im using l2jserver / Freya any idea? Oh, this is code it based on acis. Well, search in your source the word "newbie". When you will find it , search for the correct method. :P It's really simple. //Edit You could also use: activeChar.sendMessage("Your message here."); Edited January 28, 2014 by `iAndre Quote Link to comment Share on other sites More sharing options...
0 ČυяŞŀŅğ Posted January 28, 2014 Author Share Posted January 28, 2014 The problem is Type mismatch: cannot convert from int to boolean xD the Method is getNewbie xD Quote Link to comment Share on other sites More sharing options...
0 ZaNteR Posted January 30, 2014 Share Posted January 30, 2014 If its like a system like message why should he add it to the client at all? Quote Link to comment Share on other sites More sharing options...
0 Devlin Posted February 3, 2014 Share Posted February 3, 2014 getNewbie() method can applied like getNewbie() == 1 Anyway, do I lock? Quote Link to comment Share on other sites More sharing options...
0 ČυяŞŀŅğ Posted February 7, 2014 Author Share Posted February 7, 2014 if (activeChar. getNewbie() == 1 ) { activeChar.sendPacket(new CreatureSay(1, Say2.PARTY, "SYSTEM", "Use ALT+B For Server Informations")); } like this? Quote Link to comment Share on other sites More sharing options...
Question
ČυяŞŀŅğ
i want to add Messages for new players only !
How i could done this ?
Like this on enderworld
Send the msg to all players :/ not only on the new :S
Also can I add delay time for exshowscreen msgs?
like this
How i can add delay between of those ExShowScreenMessages?
i tryed
but Type mismatch: cannot convert from int to boolean.. I have to change l2pcinstance and this is pain on my ass :/
thank you in advance ^^
Edited by ČυяŞŀŅğLink to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.