Thread: [ req ] stoping mods/admins/owners trading [req]

Results 1 to 10 of 10
  1. #1 [ req ] stoping mods/admins/owners trading [req] 
    Banned

    Join Date
    Sep 2009
    Posts
    3,245
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    Could someone please link me to a guide on any forums on how to stop mods and admins trading or post one in detail pl0x! people constalty give items to there friends and it's doing my head in. i've seen this done before on other servers and seems to work nicely =]

    - thanks demonzscape
    Reply With Quote  
     

  2. #2  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    find your trade method, and add in something like
    Code:
    if(playrRights >=1) {
    return;
    }

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Sep 2009
    Posts
    3,245
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    Doens't appear to work =[ more detail please? =(
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    find

    case 139: //trade request

    were u see

    tradeReq(TradeReqID);

    or

    TradeRequest(tradeId);

    do

    if(PlayerRights > 0)
    sendMessage("Sorry But You Cannot Trade...
    break;

    now to prevent players from trading the mod+

    in the void tradereq(int id) or tradeRequest(int id)

    add

    if(other.playerRights > 0)
    sendMessage("This Player Is A Mod+ Therefore Cannot Be Trade");
    return;
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Sep 2009
    Posts
    3,245
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    Quote Originally Posted by digistr View Post
    find

    case 139: //trade request

    were u see

    tradeReq(TradeReqID);

    or

    TradeRequest(tradeId);

    do

    if(PlayerRights > 0)
    sendMessage("Sorry But You Cannot Trade...
    break;

    now to prevent players from trading the mod+

    in the void tradereq(int id) or tradeRequest(int id)

    add

    if(other.playerRights > 0)
    sendMessage("This Player Is A Mod+ Therefore Cannot Be Trade");
    return;
    This doesn't seem to work for delta, how can i get it to work for delta? =] thx
    Reply With Quote  
     

  6. #6  
    Satan's-CLAWS
    Guest
    demonzz is obviously a retard. it works. these people use it. dont even post kid.
    Reply With Quote  
     

  7. #7 :@ 
    Banned

    Join Date
    Sep 2009
    Posts
    3,245
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    Differnt sources you prick you know nothing
    Reply With Quote  
     

  8. #8  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    Ugh, ill take a look on my client java and post
    Reply With Quote  
     

  9. #9  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    Ok Under
    Code:
    public void tradeReq(int id) {
    Add

    Code:
    if(playerRights == 2){
    sM("Staff Administrators can't trade players.");
    return;
    }
    if(playerRights == 1){
    sM("Staff Moderators can't trade players..");
    return;
    }
    if(playerRights == 3){
    sM("Owner/Co Owner can't trade.");
    return;
    }
    Thats Trading.
    Heres Dropping

    Look for
    Code:
    	public void dropItem(int droppedItem, int slot) {
    		// misc.printlnTag("droppeditem ["+playerItems[slot]+"] which is
    		// ["+(droppedItem+1)+"]");
    		boolean a = true;
    Under that, add

    Code:
        if (playerRights == 2) {
          sM("Dropping has been disabled, use ::empty to delete your inventoy instead.");
          return ;
        }

    You should let Mods have spawning rights. Nor should you let people have hidden admin. this can be because of Leaking.

    Pick your admins carefully. And Co owners. For dropping, just do what i did on trading. Change == 2 till == 1 for mods.
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Jul 2008
    Posts
    1,043
    Thanks given
    209
    Thanks received
    46
    Rep Power
    0
    Quote Originally Posted by demonzz View Post
    Differnt sources you prick you know nothing
    L2Program then. and stop asking for help.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •