[Release]Warp all GM's[UPDATED]

Page 2 of 2 FirstFirst 12
Results 26 to 45 of 45
  1. #26
    Infraction Banned Jvlaple is offline
    Member +Rank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release]Warp all GM's

    OMFG, change mch to mc dipshit -_-

  2. #27
    Sorcerer Supreme Mgssidley is offline
    Member +Rank
    Apr 2008 Join Date
    443Posts

    Re: [Release]Warp all GM's

    Great idea that I would have never thought of :O Thanks

  3. #28
    Sorcerer Supreme GMLooney is offline
    Member +Rank
    Mar 2008 Join Date
    New YorkLocation
    298Posts

    Re: [Release]Warp all GM's

    Quote Originally Posted by Jvlaple View Post
    OMFG, change mch to mc dipshit -_-
    Woah, what the hell? I changed it gosh, you're acting like I'm always here...

  4. #29
    Infraction Banned viinnh is offline
    Grand MasterRank
    Sep 2008 Join Date
    AustraliaLocation
    1,189Posts

    Re: [Release]Warp all GM's[UPDATED]

    nice release

  5. #30
    Infraction Banned Jvlaple is offline
    Member +Rank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release]Warp all GM's

    Quote Originally Posted by GMLooney View Post
    Woah, what the hell? I changed it gosh, you're acting like I'm always here...
    Not talking to you, i'm talking to the noobs with that mch error in NB

  6. #31
    Sorcerer Supreme Alyan is offline
    Member +Rank
    Dec 2008 Join Date
    With Megan Fox. (:Location
    421Posts

    Re: [Release]Warp all GM's[UPDATED]

    Heyyy,

    Nice Release!
    Will this work if my GM Levels go through 1-5?

  7. #32
    Infraction Banned Jvlaple is offline
    Member +Rank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release]Warp all GM's[UPDATED]

    LOL, we're not your slaves, change it yourself

  8. #33
    Member bbishh is offline
    MemberRank
    Jun 2008 Join Date
    http://www.galaxyms.com/Location
    72Posts

    Re: [Release]Warp all GM's[UPDATED]

    Nice are you GM lonely in LightMS?

  9. #34
    Newbie red7711 is offline
    MemberRank
    Apr 2008 Join Date
    24Posts

    Re: [Release]Warp all GM's[UPDATED]

    Code:
                 } else if (splitted[0].equals("!warpgms")) {
                     for (ChannelServer cservs : ChannelServer.getAllInstances()) {
                         for (MapleCharacter mch : cservs.getPlayerStorage().getAllCharacters()) {
                             if (mch.isGM()) {
                                                         mch.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition()));
                                                        mch.getClient().getSession().write(MaplePacketCreator.serverNotice(6, "You have been warped to " + player.getMap()+ "by" + player + "."));
                             }
                         }
                     }
    should work!

  10. #35
    Member TookTook123 is offline
    MemberRank
    Aug 2008 Join Date
    89Posts

    Re: [Release]Warp all GM's

    Quote Originally Posted by Jvlaple View Post
    Fucking hell, stop spoonfeeding this noob and let him fix it himself...

    To looney: I fixed up your code:

    Code:
                } else if (splitted[0].equals("!warpgms")) {
                     for (ChannelServer cservs : ChannelServer.getAllInstances()) {
                         for (MapleCharacter mch : cservs.getPlayerStorage().getAllCharacters()) {
                             if (mch.isGM()) {
                            if (c.getClient() != mch.getClient()) {
                                  String ip = ChannelServer.getInstance(c.getChannel()).getIP(c.getChannel());
                                  String[] sock = ip.split();
                                  ChannelServer.getInstance(mch.getClient().getChannel()).removePlayer(mch);
         		        try {
    			    MaplePacket packet = MaplePacketCreator.getChannelChange(
    				InetAddress.getByName(socket[0]), Integer.parseInt(socket[1]));
    			     c.getSession().write(packet);
    			     // c.getSession().close();
    		        } catch (Exception e) {
    			    throw new RuntimeException(e);
    		        }
                            mch.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition()));
                            mc.dropMessage("You have been warped to " + c.getPlayer().getMap().getMapName() + " by " + c.getPlayer().getName());
                             }
                         }
                     }
    Just made it so it forces them to CC if they aren't inyour channel

    To everyone else : Change mch to mc -_-
    if you'll change mch to mc it will send the message to you're self..
    hmm, just use servernotice..

    edit : didnt saw red post.. P;

  11. #36
    Member UberSango is offline
    MemberRank
    Dec 2008 Join Date
    76Posts

    Re: [Release]Warp all GM's[UPDATED]

    Quote Originally Posted by bbishh View Post
    Nice are you GM lonely in LightMS?
    No?He isnt

  12. #37
    Infraction Banned MrMysterious is offline
    Grand MasterRank
    Dec 2008 Join Date
    In a treeLocation
    752Posts

    Re: [Release]Warp all GM's[UPDATED]

    Quote Originally Posted by red7711 View Post
    Code:
                 } else if (splitted[0].equals("!warpgms")) {
                     for (ChannelServer cservs : ChannelServer.getAllInstances()) {
                         for (MapleCharacter mch : cservs.getPlayerStorage().getAllCharacters()) {
                             if (mch.isGM()) {
                                                         mch.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition()));
                                                        mch.getClient().getSession().write(MaplePacketCreator.serverNotice(6, "You have been warped to " + player.getMap()+ "by" + player + "."));
                             }
                         }
                     }
    should work!
    Wrong. Won't change channels

    @ loony
    if (c.getClient() != mch.getClient()) {
    wtf is that ?

  13. #38
    Sorcerer Supreme Leaf Story is offline
    Member +Rank
    Sep 2008 Join Date
    LeafStoryLocation
    479Posts

    Re: [Release]Warp all GM's[UPDATED]

    hurray for gm meetings

  14. #39
    Grand Master maplesaif is offline
    Grand MasterRank
    Jun 2008 Join Date
    Uae-DubaiLocation
    539Posts

    Re: [Release]Warp all GM's[UPDATED]

    WooW Nice Ty I Find it long time~

  15. #40
    Sorcerer Supreme GMLooney is offline
    Member +Rank
    Mar 2008 Join Date
    New YorkLocation
    298Posts

    Re: [Release]Warp all GM's[UPDATED]

    Quote Originally Posted by MrMysterious View Post
    Wrong. Won't change channels

    @ loony
    if (c.getClient() != mch.getClient()) {
    wtf is that ?
    It means if their client type isn't equal to mine then do what comes afer {...

    Quote Originally Posted by UberSango View Post
    No?He isnt
    Who the hell? My SN on RZ is GMLOONEY not Lonley, WTH?

    Quote Originally Posted by TookTook123 View Post
    if you'll change mch to mc it will send the message to you're self..
    hmm, just use servernotice..

    edit : didnt saw red post.. P;
    You're totally off, MCH is used to send the messages to the players who ARE GM's. if you use MC it sends the notice to yourself, and if you use a server notice everyone see's it <-- that's not efficient it clearly stands for "Hacking Time!"

    Quote Originally Posted by red7711 View Post
    Code:
                 } else if (splitted[0].equals("!warpgms")) {
                     for (ChannelServer cservs : ChannelServer.getAllInstances()) {
                         for (MapleCharacter mch : cservs.getPlayerStorage().getAllCharacters()) {
                             if (mch.isGM()) {
                                                         mch.changeMap(player.getMap(), player.getMap().findClosestSpawnpoint(player.getPosition()));
                                                        mch.getClient().getSession().write(MaplePacketCreator.serverNotice(6, "You have been warped to " + player.getMap()+ "by" + player + "."));
                             }
                         }
                     }
    should work!
    And you changed what?

  16. #41
    Infraction Banned MrMysterious is offline
    Grand MasterRank
    Dec 2008 Join Date
    In a treeLocation
    752Posts

    Re: [Release]Warp all GM's[UPDATED]

    Quote Originally Posted by GMLooney View Post
    It means if their client type isn't equal to mine then do what comes afer {...
    I'm not stupid, read the code properly. You most likely defined 'c' as MapleClient since you did this further down the code
    PHP Code:
    c.getSession().write(packet); 
    But why the hell is it c.getClient()

  17. #42
    Grand Master lmaoXitsXqtard is offline
    Grand MasterRank
    Sep 2008 Join Date
    In the SkyLocation
    562Posts

    Re: [Release]Warp all GM's[UPDATED]

    i think you should also try and make a !warpmap or some sort im just suggesting something

  18. #43
    Grand Master Regurgitate is offline
    Grand MasterRank
    Apr 2008 Join Date
    1,113Posts

    Re: [Release]Warp all GM's

    Quote Originally Posted by adog353 View Post
    Try removing !fakechar
    Thats fail, other people have other repacks.

  19. #44
    Sorcerer Supreme GMLooney is offline
    Member +Rank
    Mar 2008 Join Date
    New YorkLocation
    298Posts

    Re: [Release]Warp all GM's

    Quote Originally Posted by Regurgitate View Post
    Thats fail, other people have other repacks.
    No offense but you fail as I've already helped that kid.

    Quote Originally Posted by MrMysterious View Post
    I'm not stupid, read the code properly. You most likely defined 'c' as MapleClient since you did this further down the code
    PHP Code:
    c.getSession().write(packet); 
    But why the hell is it c.getClient()
    That was used to check if the channel port was the same.

  20. #45
    Infraction Banned MrMysterious is offline
    Grand MasterRank
    Dec 2008 Join Date
    In a treeLocation
    752Posts

    Re: [Release]Warp all GM's[UPDATED]

    T____T You obviously don't get it so don't worry.



Page 2 of 2 FirstFirst 12

Advertisement