EdenEternal Posted April 25, 2010 Posted April 25, 2010 hello maxcheaters! i have question,it's possible to disable trade only for GM-s?
0 eKo Posted April 25, 2010 Posted April 25, 2010 SHOULD be possible whit a small java script including gm acess.
0 CriticalError Posted April 25, 2010 Posted April 25, 2010 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 Yakamoto Posted April 25, 2010 Posted April 25, 2010 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 CriticalError Posted April 25, 2010 Posted April 25, 2010 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 ˚کe®κ Posted April 25, 2010 Posted April 25, 2010 add this in clientpackets.TradeRequest.java if(player.isGM()) { player.sendMessage("You cant Trade Item") player.sendPacket(ActionFailed.STATIC_PACKET); return; }
0 mogo Posted April 26, 2010 Posted April 26, 2010 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 EdenEternal Posted April 26, 2010 Author Posted April 26, 2010 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?
0 EdenEternal Posted April 29, 2010 Author Posted April 29, 2010 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
0 xAddytzu Posted April 29, 2010 Posted April 29, 2010 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 EdenEternal Posted April 29, 2010 Author Posted April 29, 2010 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 Thelasthero Posted April 29, 2010 Posted April 29, 2010 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())
0 EdenEternal Posted April 29, 2010 Author Posted April 29, 2010 try: if(player.isGM() || target.isGM()) no it's not working :(
Question
EdenEternal
hello maxcheaters! i have question,it's possible to disable trade only for GM-s?
26 answers to this question
Recommended Posts