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

Intrepid, he doesn't ask you to change of chronicle, he asks you for a code implementation.

 

Don't sell a cow when he tries to get milk. None like GF, not my fault.

 

If he wants exactly the implementation of L2JFrozen, and until you want to code for him a better implementation, he's stuck with L2JFrozen's (+ according his "dev" level, as he doesn't even know Search tool, the best is still basics).

 

With weapon condition, you edit all items on L2J. Talk about NPCs in XML after that, lol. If you want to edit ONLY bows, that's 93 items to edit. ONLY BOWS.

 

◦Cobra◦ solution is normally enough for what he needs, and probably looking similar as L2JFrozen got it. It misses the list of classId.

 

@klevakos, my answer was really simple. If you don't manage to understand it, try until you understand. "ctrl + H" on Eclipse is the main answer. That's the basics about exploring a project such as L2J, and searching "features" like you try to do.

 

Im not tying to force him for anything, its a fact tho that those interlude packs are poorly executed and if you want to learn you should not even look into them. Still the best and most gameplay friendly implementation is the conditions thats why i told him to do just that, ofcourse theres plenty of ways to do it, but still.

  • 0
Posted

I know you're in love with shitlude >.<

 

UseItem.java

 

  if (activeChar.getClassId().getId() == 91)

        {

            if (item.getItemType() == L2WeaponType.BOW)

          {

          activeChar.sendMessage("bla bla bla bla");

            return false;

            }

        }

 

if u are archer, and change to class with ID 91 then you can't Unequip =D

 

needs isEquiped ? check

  • 0
Posted

 

 

UseItem.java

 

  if (activeChar.getClassId().getId() == 91)

        {

            if (item.getItemType() == L2WeaponType.BOW)

          {

          activeChar.sendMessage("bla bla bla bla");

            return false;

            }

        }

 

 

 

 

thanks dude and smthng else may i add a config file?

  • 0
Posted

 

 

 

thanks dude and smthng else may i add a config file?

 

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

  • 0
Posted

Just saying, people would bypass that by simply not doing the 3rd class quest.

 

It's an example, don't you want me to code for them the whole server? they're free to add all the classes or whatever they want.

 

by the way, there are the 3rd class, don't you know the classes from lineage? my bad I didn't see "not" word.

  • 0
Posted

It's an example, don't you want me to code for them the whole server? they're free to add all the classes or whatever they want.

 

by the way, there are the 3rd class, don't you know the classes from lineage?

As I mentioned in my previous post, I'm just saying.

 

And I said "by simply NOT doing", I know that these are 3rd class quests.

  • 0
Posted

As I mentioned in my previous post, I'm just saying.

 

And I said "by simply NOT doing", I know that these are 3rd class quests.

 

Next time when you're just "saying", think about it twice.

 

I've added 3rd classes, how can you bypass them by changing the 3rd class? "As I mentioned in my previous post" you don't know the 3rd classes.

 

If you add the 2nd classes too, it's fully working.

  • 0
Posted

Next time when you're just "saying", think about it twice.

 

I've added 3rd classes, how can you bypass them by changing the 3rd class? "As I mentioned in my previous post" you don't know the 3rd classes.

 

If you add the 2nd classes too, it's fully working.

Are you mad or something?

 

I don't know the 3rd classes?

 

It seems that you don't know how to read buddy.

 

I said that someone can bypass it by simply NOT doing the 3rd class quest, meaning that the player would stay at 2nd class quest.

 

Oh dear.

  • 0
Posted

It seems that you don't know how to read buddy.

 

You're right. I didn't see "not".

 

lots of nonesense code, btw u put phoinixKnight check what if Im paladin

 

You should probably eat a d1ck.

 

they're free to add all the classes or whatever they want.

 

If you add the 2nd classes too, it's fully working.

  • 0
Posted

You're right. I didn't see "not".

Cool.

 

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

Guest
This topic is now closed to further replies.



  • Posts

    • It's a 5 days ago project. I initially started with the idea from C4, 4 months ago, you can see my stuff in the first posts of this thread. I experimented with scene loads while learning Odin and experimenting with graphics programming. Elfo got inspired by the idea and thought of implementing the full client, smth I didn't wanna do. I personally didn't look for inspiration on anything, just having fun with a new language. And elfo did the rest on his own. How about you act like an adult and acknowledge something good that's in front of you and respect the grind that Elfo pushed out since mot of vibe coders quit after a month or run out of money to invest into it. All the vibe wow slop and this recent one will get abandoned in a bit, you'll see. Also @Northy you sound like such a childish text book narcissist. Go touch some grass outside, you're not winning anything here. Have a good life 
    • ⭐ Fast support & replacement warranty guaranteed. All fresh links in stock with automated delivery!
    • Will open: 23 September 2026 | 20:00 GMT+2 Are you ready for a unique, hard-farm High Five journey? Join L2DragonLand where you can learn every skill in the game and build the ultimate character! Progress through custom farming zones and endless progression possibilities.   Server Features: XP Rate: 500x SP Rate: 2x   Drop / Spoil: 20x   Hard Farm Gameplay Safe Enchant: +600   Max Enchant: +600   Max Attribute: Level 7 Multiskill System: Learn every single skill in the game.   Custom Content: Zone Progression: Farm and progress through custom zones Item Upgrade System: Upgrade your gear step-by-step Custom Weapons & Armor: Packed with massive % P.Atk, M.Atk, P/M.Def, HP/CP stats Unique Visuals: Every item has unique custom stats and visual effects Additional Features Custom Buffer in Main Towns Custom Buff Learn NPC Global Gatekeeper Automated In-Game Events Lottery System Fast Boss Respawns: Crucial raid bosses respawn every 10 seconds Olympiad Every Two Weeks   Website: http://l2dragonland.eu/   Discord: https://discord.gg/geVGy8Xcpv   L2DragonLands
    • you can lie as much as you want. idea from git.   Open source h5 game engine on rust : https://github.com/nascimentolh/CanastraEngine
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..