EdenEternal Posted April 25, 2010 Share Posted April 25, 2010 hello maxcheaters! i have question,it's possible to disable trade only for GM-s? Link to comment Share on other sites More sharing options...
0 eKo Posted April 25, 2010 Share Posted April 25, 2010 SHOULD be possible whit a small java script including gm acess. Link to comment Share on other sites More sharing options...
0 EdenEternal Posted April 25, 2010 Author Share Posted April 25, 2010 some1 knows how to do this? Link to comment Share on other sites More sharing options...
0 CriticalError Posted April 25, 2010 Share 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 Link to comment Share on other sites More sharing options...
0 Yakamoto Posted April 25, 2010 Share 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 Link to comment Share on other sites More sharing options...
0 CriticalError Posted April 25, 2010 Share 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 Link to comment Share on other sites More sharing options...
0 ˚کe®κ Posted April 25, 2010 Share 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; } Link to comment Share on other sites More sharing options...
0 mogo Posted April 26, 2010 Share 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. Link to comment Share on other sites More sharing options...
0 EdenEternal Posted April 26, 2010 Author Share 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? Link to comment Share on other sites More sharing options...
0 Matim Posted April 26, 2010 Share Posted April 26, 2010 TradeRequest.java Link to comment Share on other sites More sharing options...
0 josefcz Posted April 28, 2010 Share Posted April 28, 2010 TradeRequest.java and config acces lvl for gm Link to comment Share on other sites More sharing options...
0 EdenEternal Posted April 29, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
0 xAddytzu Posted April 29, 2010 Share 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; Link to comment Share on other sites More sharing options...
0 EdenEternal Posted April 29, 2010 Author Share 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] ^ Link to comment Share on other sites More sharing options...
0 Thelasthero Posted April 29, 2010 Share 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()) Link to comment Share on other sites More sharing options...
0 EdenEternal Posted April 29, 2010 Author Share Posted April 29, 2010 try: if(player.isGM() || target.isGM()) no it's not working :( Link to comment Share on other sites More sharing options...
Question
EdenEternal
hello maxcheaters! i have question,it's possible to disable trade only for GM-s?
Link to comment
Share on other sites
26 answers to this question
Recommended Posts