Jump to content
  • 0

[Question] Disable Trade for GM-s


EdenEternal

Question

Recommended Posts

  • 0

well friend in my server have this.. but don't think is that.. I remember before have this function in my old server.. here is code

 

# Trade Chat.
# Available Options: ON (global), OFF, GM, LIMITED (region)
# Default: LIMITED
TradeChat = LIMITED

Link to comment
Share on other sites

  • 0

well friend in my server have this.. but don't think is that.. I remember before have this function in my old server.. here is code

 

# Trade Chat.
# Available Options: ON (global), OFF, GM, LIMITED (region)
# Default: LIMITED
TradeChat = LIMITED

He don't mean the trade chat he mean the trade for items etc ;P
Link to comment
Share on other sites

  • 0

He don't mean the trade chat he mean the trade for items etc ;P

I know GodPower I told him before in my config just have this, in my old pack have a config with this code GM Can trade items just put false and done but this pack have now don't found that
Link to comment
Share on other sites

  • 0

It's better to do it like this

if(player.isGm() || target.isGm())

this should also prevent regular players from requesting a trade with gm.

where add this code?

Link to comment
Share on other sites

  • 0

It's Working! i can't give normal players trade.but they can give me trade! how to fix?

if(player.isGm() || target.isGm())

this is not works

of course it works

 

if(player.isGm() || target.isGm())

return;

Link to comment
Share on other sites

  • 0

i have this error when compiling

 

    [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\clientpackets\Trade
Request.java:88: cannot find symbol
    [javac] symbol  : method isGm()
    [javac] location: class net.sf.l2j.gameserver.model.L2Object
    [javac]     if(player.isGM() || target.isGm())
    [javac]                               ^

Link to comment
Share on other sites

  • 0

i have this error when compiling

 

    [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\clientpackets\Trade
Request.java:88: cannot find symbol
    [javac] symbol  : method isGm()
    [javac] location: class net.sf.l2j.gameserver.model.L2Object
    [javac]     if(player.isGM() || target.isGm())
    [javac]                               ^

try: if(player.isGM() || target.isGM())

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...