Jump to content
  • 0

[Question] Disable Trade for GM-s


Question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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
  • 0
Posted

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
  • 0
Posted

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.

  • 0
Posted

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;

  • 0
Posted

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]                               ^

  • 0
Posted

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())

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock