Jump to content
  • 0

Other Messages For New Players?


ČυяŞŀŅğ

Question

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 by ČυяŞŀŅğ
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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 by `iAndre
Link to comment
Share on other sites

  • 0
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?

Link to comment
Share on other sites

  • 0
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 by `iAndre
Link to comment
Share on other sites

  • 0

        if (activeChar. getNewbie() == 1 )
        {
            activeChar.sendPacket(new CreatureSay(1, Say2.PARTY, "SYSTEM", "Use ALT+B For Server Informations"));
        }

 like this?

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock