Login Welcome Message :D

Junior Spellweaver
Joined
Feb 8, 2009
Messages
128
Reaction score
0
Find in - net.sf.odinms.net.channel.handler.PlayerLoggedinHandler.java
PHP:
player.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition()));

Add under it :
PHP:
        if (player.getMapId() == 0)
            c.getSession().write(MaplePacketCreator.sendHint("YOUR SERVER WELCOME MESSAGE !"));

I know this is pretty easy , and may has been released .

I just noticed many ppl didnt know.

------------------------------------------------------------------

EDIT :

For VALHALLA user :

Find :
PHP:
player.checkBerserk();
ADD under it :
PHP:
        player.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition()));
        if (player.getMapId() == 0)
            c.getSession().write(MaplePacketCreator.sendHint("YOUR SERVER WELCOME MESSAGE !"));
 
You might also add it under
PHP:
if (player.getMap().getId() == 1 || player.getMap().getId() == 2) {
            c.getSession().write(MaplePacketCreator.showApple());
        }
is that right?
Correct me if im wrong :):


Edit, Also this is my way
PHP:
if (player.getMap().getId() == 0){
            c.getSession().write(MaplePacketCreator.sendHint("YOUR SERVER WELCOME MESSAGE !"));  
   }
 
I can't find player.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition())); on thepackll. ;o. Or it doesn't work on the pack ll?
 
I can't find player.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition())); on thepackll. ;o. Or it doesn't work on the pack ll?

Use the Valhalla tut , thepack is based on valhalla ;D

EDIT :

I just explain what this do , when you enter map 0 (After creating a new char or so)

It shows the Message over your Head.

HF
 
Well Good Job, But is my way correct?
PHP:
if (player.getMap().getId() == 0){
            c.getSession().write(MaplePacketCreator.sendHint("YOUR SERVER WELCOME MESSAGE !"));  
   }
 
Well Good Job, But is my way correct?
PHP:
if (player.getMap().getId() == 0){
            c.getSession().write(MaplePacketCreator.sendHint("YOUR SERVER WELCOME MESSAGE !"));  
   }

You could make it shorter and drop the getid ,and replace the getmap function with the getmapid function .
But yours should work too :):
 
Back