Jump to content
  • 0

Other Messages For New Players?


Question

Posted (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 by ČυяŞŀŅğ

8 answers to this question

Recommended Posts

  • 0
Posted (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 by `iAndre
  • 0
Posted
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?

  • 0
Posted (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 by `iAndre

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...