Jump to content
  • 0

Weapon Destrict for some Classes


Question

Posted

Hello all i need some help .. actually i need a code to dissallow some classes like tank to wear bow :/ one example that i found is this from l2jfrozen "#Disable Bow for classes: write here classes id

#that you dnt want allow to use BOW. Class id examples,

#you can find others into char_templates database table

#

# classId className

# 88 Duelist

# 89 DreadNought

# 90 Phoenix Knight

# 91 Hell Knight

# 92 Sagittarius

# 93 Adventurer

# 94 Archmage

# 95 Soultaker

# 96 Arcana Lord

# 97 Cardinal

# 98 Hierophant

# 99 Eva Templar

# 100 Sword Muse

# 101 Wind Rider

# 102 Moonlight Sentinel

# 103 Mystic Muse

# 104 Elemental Master

# 105 Eva Saint

# 106 Shillien Templar

# 107 Spectral Dancer

# 108 Ghost Hunter

# 109 Ghost Sentinel

# 110 Storm Screamer

# 111 Spectral Master

# 112 Shillen Saint

# 113 Titan

# 114 Grand Khauatari

# 115 Dominator

# 116 Doomcryer

# 117 Fortune Seeker

# 118 Maestro

#

# e.g. DisableBowForClasses=107,110

DisableBowForClasses ="

 

but this is only the configs file i need code

Recommended Posts

  • 0
Posted

Cool.

 

Thanks for taking the time to code that though. (also I hope that I didn't offend you in any way.)

 

I'm sorry about that, I'm not afraid to admit it. It happens to not read everything when someone is under stress.

 

 

+      public void unEquipItemInBodySlot(int slot)

 

when im adding this shows me error .

 

-      private void unEquipItemInBodySlot(int slot)

+      public void unEquipItemInBodySlot(int slot)

  • 0
Posted

I'm sorry about that, I'm not afraid to admit it. It happens to not read everything when someone is under stress.

It's all good mate.

 

Yeah, it happens.

  • 0
Posted

I'm sorry about that, I'm not afraid to admit it. It happens to not read everything when someone is under stress.

 

-      private void unEquipItemInBodySlot(int slot)

+      public void unEquipItemInBodySlot(int slot)

 

ok i fix it :)

 

 

now i will check if is ok in game :)

  • 0
Posted

ok i fix it :)

 

 

now i will check if is ok in game :)

 

the code he gave you is a pure garbage

  • 0
Posted

this is bugged man, u have to make check if it is already equiped

 

You meant that if he wear the bow before the subclass? that is the bug you are telling?

 

Also you still a kiddo that flaming all (code's) and you just non post any solution(cuz you don't know how's the hard coded things are made so pee your mouth please) and as a pet you are just disappear. (ofc you cant do that psycho)

  • 0
Posted

You meant that if he wear the bow before the subclass? that is the bug you are telling?

 

Also you still a kiddo that flaming all (code's) and you just non post any solution(cuz you don't know how's the hard coded things are made so pee your mouth please) and as a pet you are just disappear. (ofc you cant do that psycho)

 

well if u mean the unequip-equip thingy hardcoded then... no comments

 

as for the solution, a isEquiped is enough

 

Btw why you rage? ur code was bugged Even my haters aka intrepid can confirm this :) gl

 

edit: UseItem toggles equip/unequip

  • 0
Posted

well if u mean the unequip-equip thingy hardcoded then... no comments

 

as for the solution, a isEquiped is enough

 

Btw why you rage? ur code was bugged

 

i don't speak about the 2 lines i gave... but about your behavior, just relax pedo.... there we are to help. if you don't like it just (fae skata).

 

isEquiped leeched from old l2j forum? please pet just don't speak about java to me and typos. freak

 

 

  • 0
Posted

well if u mean the unequip-equip thingy hardcoded then... no comments

 

as for the solution, a isEquiped is enough

 

Btw why you rage? ur code was bugged Even my haters aka intrepid can confirm this :) gl

 

edit: UseItem toggles equip/unequip

By the way, it's isEquipped. (double p)

  • 0
Posted

It's the right way, you got no clue about it. ;DD

 

Keep talking.

 

the correct way is cobra's with the isEquipped check

  • 0
Posted

You don't need it.

 

man please stop talking, I told you that you need a damn isEquiped cause useItem unequips items too, so if it is already equiped by a subclass what happens ? he has it equiped but he cant disarm it !

  • 0
Posted

man please stop talking, I told you that you need a damn isEquiped cause useItem unequips items too, so if it is already equiped by a subclass what happens ? he has it equiped but he cant disarm it !

Subclass NPCs in most servers (I assume he will do the same) disarm the weapon anyway so you wouldn't need that.

  • 0
Posted

man please stop talking, I told you that you need a damn isEquiped cause useItem unequips items too, so if it is already equiped by a subclass what happens ? he has it equiped but he cant disarm it !

 

Take a look at my code noobish, check the l2pcinstance, it's for subclasses.

  • 0
Posted

Take a look at my code noobish, check the l2pcinstance, it's for subclasses.

 

I was refering to cobra's code where my statement raged him

Guest
This topic is now closed to further replies.



  • Posts

    • Trust and Honesty   We don’t need to brag - what matters is that you actually feel the service works the way it should. No surprises, no stress. With Vibe SMS, you can focus on your tasks knowing everything runs smoothly. Like having a friend by your side calm, reliable, and without unnecessary words.   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
    • The old Trances packs were built using Java 7, which is outdated. Our server is running on the latest Java version, fully up-to-date for 2025
    • Experience L2Gold like never before – available ONLY on Saturdays & Sundays! Custom Armors: Dynasty, Apella Custom Weapons: L2Gold Weapons Custom Jewelry: L2Gold Jewelry Custom Teleport System & AIO Buffer Custom Zones, NPCs & Raidbosses This is not just another private server – it’s a limited-time battleground for the ultimate L2 experience! Play only on weekends Website: https://l2kandra.online/ Info & Contact: https://www.facebook.com/profile.php?id=61578869175323  
    • 突发新闻! Twitter Premium(推特高级版) 现以优惠价发售!立即尝试 — 限时优惠! ➡ Twitter Premium X 订阅(适用于您的推特账户),可选 1 个月 / 1 年(任选)。需要登录授权您的推特账户。价格:每月 $7–13(每年 $75) ➡ Twitter X Premium Plus 订阅 + GROK AI 助手(适用于您的推特账户),可选 1 个月 / 1 年(任选)。需要登录授权您的推特账户。价格:每月 $48–55(每年 $480) ➡ 2010–2023 年老推特账号,带蓝色认证标志(Tier 1/2/3 国家)| 提供完整访问权限(含登录名、密码和令牌)| 价格:起价 $9 ➡ 2010–2023 年老推特 NFT 账号,带蓝色认证标志(Tier 1/2/3 国家)| 提供完整访问权限(含登录名、密码和令牌)| 价格:起价 $9 ➡ 2010–2023 年老推特账号,带蓝色认证标志 + 真实粉丝(100–20000,可自选)| Tier 1/2/3 国家 | 提供完整访问权限(含登录名、密码和令牌)| 支持补充:30+ 天 | 价格:起价 $9.5 ➡ 2010–2023 年老推特账号,带广告管理器(ADS Manager)和蓝色认证标志,并绑定信用卡 | 区域:Tier 1 国家 | 提供完整访问权限(含登录名、密码和令牌)| 价格:起价 $35 您可以在我们的网站商店或通过 Telegram 机器人购买! ➡ 数字商品商店(网站):前往 ➡ 商店 Telegram 机器人:前往 ➡ Telegram Stars 购买机器人:前往 ➡ SMM 面板:前往 – 推广您的社交媒体账户。 我们为您呈现最新的优惠与特别活动,用于购买我们平台的商品和服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)在十月于我们的网站或机器人中购物!首次购买还可使用优惠码 SOCNET(15% 折扣) 2. 注册后在我们网站的论坛主题中按以下格式留言,即可获得 $1 商店余额或 10–20% 折扣:"SEND ME BONUS, MY USERNAME IS..." 3. 首次试用 SMM 面板即可获得 $1:只需在网站支持中心提交标题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道与 Telegram Stars 购买机器人每周举行 Telegram Stars 抽奖活动! 新闻资讯: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
    • Breaking News! Twitter Premium now available at a discounted price! Try it right now — limited-time offer! ➡ Twitter Premium X subscription for your Twitter account for 1 month / 1 year (your choice). Requires login authorization to your Twitter account. Price from: $7–13 per 1 month ($75 per 12 months) ➡ Twitter X Premium Plus subscription and GROK AI assistant for your Twitter account for 1 month / 1 year (your choice). Requires login authorization to your Twitter account. Price from: $48–55 per 1 month ($480 per 12 months) ➡ Old Twitter Accounts 2010–2023 with BLUE Regular Tick (Tier 1/2/3 countries) | Full access with Login, Password, and Token included! | Price from: $9 ➡ Old Twitter NFT Accounts 2010–2023 with BLUE Tick (Tier 1/2/3 countries) | Full access with Login, Password, and Token included! | Price from: $9 ➡ Old Twitter Accounts 2010–2023 with BLUE Regular Tick and real followers: 100–20000 (followers of your choice) | Tier 1/2/3 countries | Full access with Login, Password, and Token included | Refill: 30+ days | Price from: $9.5 ➡ Old Twitter Accounts 2010–2023 with ADS Manager and BLUE Regular Tick linked with Credit Card | GEO: Tier 1 countries | Full access with Login, Password, and Token included | Price from: $35 Shop in our online store or through our Telegram bot! ➡ Digital goods store (Website): Go ➡ Store Telegram bot: Go ➡ Telegram bot for purchasing Telegram Stars: Go ➡ SMM Panel: Go – promote your social media accounts. We would like to present you with the latest list of promotions and special offers for purchasing products and services from our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website or Bot) in October! You can also use the first-time promo code SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — just post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket with the title “Get Trial Bonus” on our website (Support). 4. Weekly giveaways of Telegram Stars in our Telegram channel and our Telegram bot for Star purchases! News: ➡ Telegram channel: https://t.me/accsforyou_shop✅ ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord server: https://discord.gg/y9AStFFsrh✅ Contacts and Support: ➡ Telegram: https://t.me/socnet_support✅ ➡ WhatsApp: https://wa.me/79051904467✅ ➡ Discord: socnet_support ✅ ➡ ✉ Email: solomonbog@socnet.store ✅
  • Topics

×
×
  • 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