Players can't add GMs to buddylist

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 48
  1. #31
    Account Upgraded | Title Enabled! flav is offline
    MemberRank
    Jul 2008 Join Date
    655Posts

    Re: Players can't add GMs to buddylist

    Quote Originally Posted by PinkGatsby View Post
    Actually it's been proven to be quicker to do

    SELECT * FROM table WHERE column = whatever

    rather than

    SELECT column FROM table WHERE column = whatever

    To check if an entry exists.


    @ Ehab - Your method doesn't win.
    That and the buddies table isn't that big at all.

  2. #32
    Proficient Member nubspacecake is offline
    MemberRank
    Apr 2009 Join Date
    185Posts

    Re: Players can't add GMs to buddylist

    Why don't you define a list of GM names in the world server
    so you can just load the names once, in stead of everytime you buddy someone?

    just my opinion, saves a lot of memory though

  3. #33
    Account Upgraded | Title Enabled! PinkGatsby is offline
    MemberRank
    Mar 2009 Join Date
    AmericaLocation
    434Posts

    Re: Players can't add GMs to buddylist

    Quote Originally Posted by nubspacecake View Post
    Why don't you define a list of GM names in the world server
    so you can just load the names once, in stead of everytime you buddy someone?

    just my opinion, saves a lot of memory though
    Not really.

  4. #34
    Account Upgraded | Title Enabled! flav is offline
    MemberRank
    Jul 2008 Join Date
    655Posts

    Re: Players can't add GMs to buddylist

    Quote Originally Posted by nubspacecake View Post
    Why don't you define a list of GM names in the world server
    so you can just load the names once, in stead of everytime you buddy someone?

    just my opinion, saves a lot of memory though
    Why should this save memory?

  5. #35
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Players can't add GMs to buddylist

    btw my way is the same as flav's .. i just changed the declaration and the text

    yah it's Gamemaster in GMS

  6. #36
    Valued Member Raymondx3 is offline
    MemberRank
    Apr 2009 Join Date
    Nexon America Inc.Location
    134Posts

    Re: Players can't add GMs to buddylist

    Useful. Great for gMS-like servers.

  7. #37
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Players can't add GMs to buddylist

    i added this in both of my v55 and v62 servers

  8. #38
    Valued Member Quаlitys is offline
    MemberRank
    Apr 2009 Join Date
    103Posts

    Re: Players can't add GMs to buddylist

    uNice release!

  9. #39
    ιĐαrk? ANBUItachi is offline
    MemberRank
    Jan 2008 Join Date
    Everywhere.Location
    542Posts

    Re: Players can't add GMs to buddylist

    Would This Work? o.o
    I Changed !player.isGM() to player.gmLevel() > 0
    PHP Code:
                Connection con DatabaseConnection.getConnection();
                try {
                    
    PreparedStatement ps con.prepareStatement("SELECT * FROM characters WHERE gm > 0 AND name = ?");
                    
    ps.setString(1addName);
                    
    ResultSet rs ps.executeQuery();

                    if (
    rs.next() && player.gmLevel() > 0) {
                        
    player.dropMessage(1"GameMaster is not Available as a Buddy.");
                        return;
                    }

                    
    rs.close();
                    
    ps.close();
                } catch (
    SQLException sqlE) {} 

  10. #40
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Players can't add GMs to buddylist

    well you got it in a wrong line
    this line makes GMs able to buddy GMs but prevents players from adding GMs
    if u remove it, no one can add a GM o_o


    correct me if im wrong..

  11. #41
    ιĐαrk? ANBUItachi is offline
    MemberRank
    Jan 2008 Join Date
    Everywhere.Location
    542Posts

    Re: Players can't add GMs to buddylist

    Then how it works with player.gmLevel() ???

  12. #42
    Account Upgraded | Title Enabled! Popozow1012 is offline
    MemberRank
    Jul 2008 Join Date
    Where it's nine in the afternoonLocation
    549Posts

    Re: Players can't add GMs to buddylist

    useless releases out the wazoo lately

  13. #43
    Account Upgraded | Title Enabled! flav is offline
    MemberRank
    Jul 2008 Join Date
    655Posts

    Re: Players can't add GMs to buddylist

    Quote Originally Posted by ANBUItachi View Post
    Then how it works with player.gmLevel() ???
    player.gmLevel() < 1


    Quote Originally Posted by Popozow1012 View Post
    useless releases out the wazoo lately
    Don't use it? It's useful for the GMS like servers, if you don't need it I don't care and it's no reason for me to not release it.

  14. #44
    Account Upgraded | Title Enabled! flav is offline
    MemberRank
    Jul 2008 Join Date
    655Posts

    Re: Players can't add GMs to buddylist

    Quote Originally Posted by Moogra View Post
    Why not just do
    if (otherChar.gmLevel() > 0) {
    return;
    }
    1. You forgot the message that they can't add Gamemaster. D:
    2. I already mentioned that this is useless if "otherChar" is offline.

  15. #45
    Account Upgraded | Title Enabled! flav is offline
    MemberRank
    Jul 2008 Join Date
    655Posts

    Re: Players can't add GMs to buddylist

    Because this is made for the GMS likenes at all, and GMS has this message too.



Page 3 of 4 FirstFirst 1234 LastLast

Advertisement