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.


  • Posts

    • Information Selling a premium Lineage 2 High Five (L2J) project with active development, available by subscription. Includes Git support and access to compiled or full source code. Ideal for serious server owners seeking stability and performance, uniqueness and well-done features.   General Project Specifications: JDK Version: 23 -> 24 Chronicle: HighFive Structure: Core & Datapack merged into a single project Database: MariaDB Database Driver: HicariCP GIT Website: gitlab.com   Features include (but are not limited to):   1. Tournament Single & Party (Check Youtube Video) 2. Faction (Check Youtube Video) 3. Event Engine (Check Youtube Video) 4. Sell Buff System (Check Youtube Video) 5. Start UP System (Check Youtube Video) 6. User Panel 7. Visual - Dress me System 8. Donate Store 9. Automatic Farm System (Check Youtube Video) 10. Captcha (Anti-BOT) (Check Youtube Video) 11. Auction (Check Youtube Video) 12. Vote (API) 13. Admin Real Time Balance (Check Youtube Video) 14. Achievements (Check Youtube Video) 15. Daily Mission (Check Youtube Video) 16. A.I. Bot (Check Youtube Video) 17. Rebirth 18. Daily Reward  19. Skill Tree - Ability System 20. Craft System 21. Twitch Automatic Reward (Check Youtube Video) 22. Quiz Game (Check Youtube Video) 23. Automatic Item Enchant (Check Youtube Video) 24. Secondary Auth Using Google Authenticator (Check Youtube Video) 25. Gm Shop - Gatekeeper - Scheme Buffer   How to get Access (Payment Subscription): To get Access you either pay monthly subscription to GIT for source or Compiled. Project is currently active and has at least 1-2 commit / day.  Clients in both Compiled & Source subscription can request features or any addon in already existing mods inside discord.   Price per Month (Source) in GIT: 250 Eur Price per Month (Compiled) in GIT: 100 Eur   Contact: To get Access or ask further information join discord  https://discord.gg/gKAsAhJNuq      
    • We're officially closing the current season today. While we focus on refining the Essence project, our resources will temporarily shift toward supporting the Classic server.
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...