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

See how DisableBowForClasses is processed on Config.java, then see how internal variable/list is used, then...

 

ctrl+h is your friend.

 

 

 

Can you explain it a little more :/ i didn't understand .

  • 0
Posted

 

 

Can you explain it a little more :/ i didn't understand .

 

ehm why not implement the proper condition instead of messing around with such codes? You could just sync it from l2j...

  • 0
Posted

ehm why not implement the proper condition instead of messing around with such codes? You could just sync it from l2j...

im newbie and i dont know very much things can u give me some explains
  • 0
Posted

  im testing l2jhellas

 

Nuff said you should not use it, you'll be a newbie even after decades if you use such packs. But anyway its pretty shitty copy paste land so it should not be hard to sync anything into it, just search on l2j timeline for the weapon condition core and dp side changesets.

  • 0
Posted

Nuff said you should not use it, you'll be a newbie even after decades if you use such packs. But anyway its pretty shitty copy paste land so it should not be hard to sync anything into it, just search on l2j timeline for the weapon condition core and dp side changesets.

  which pack you suggest .  i just checked this pack to see what specs has . i didn't like it too.

 

  • 0
Posted

  which pack you suggest .  i just checked this pack to see what specs has . i didn't like it too.

 

 

None of the shitlude packs, they are badly coded piece of junk, all of them period. L2j high5 or l2jfree gracia final.

  • 0
Posted

None of the shitlude packs, they are badly coded piece of junk, all of them period. L2j high5 or l2jfree gracia final.

 

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;

            }

        }

  • 0
Posted

 

It's freaking retarded to do that, they can't wear certain items. It's better to make a passive skill for each class, decreasing accuracy and stuff whne you wear x weapon or armor.

  • 0
Posted

It's freaking retarded to do that, they can't wear certain items. It's better to make a passive skill for each class, decreasing accuracy and stuff whne you wear x weapon or armor.

 

Its better to have conditions on skill usage like it should be and let everyone wear whatever they want. Dont get stuck in interlude.

  • 0
Posted

Its better to have conditions on skill usage like it should be and let everyone wear whatever they want. Dont get stuck in interlude.

 

Well, they shouldn't add stuff like, to let each class to wear whatever they want. But it's freaking retarded to make that happen in java, what he asked for. It's crappy, also you have to use EnterWorld too, to unequip the current items. So it's a mess.

  • 0
Posted

Well, they shouldn't add stuff like, to let each class to wear whatever they want. But it's freaking retarded to make that happen in java, what he asked for. It's crappy, also you have to use EnterWorld too, to unequip the current items. So it's a mess.

 

I know thats why i said to implement the fully retail like weapon restriction conditions from l2j.

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

Guest
This topic is now closed to further replies.



  • Posts

    • Hello,iv got fafurion running localy just for fun and seems that files dont have geodata couse i can hit through walls so are mobs.Anyone can tell me how to activate geodata or where to insert geodata files?
    • L2Extend_Server_by_Guytis_Rev_201.rar Trojan:Script/Sabsik.FLA!ml   LOL
    • Good luck with your g/o 😃
    • You're talking complete nonsense. The source code of SphereAPI, which handles all requests, is closed and has never been published anywhere.     That return $this doesn't affect anything, PHP just ignores it. Why are you showing it?     Yes, of course I want that, and I’m asking you — go ahead and hack it, I’d even be thankful. The most you can probably do is launch a DDoS attack, but that’s not hacking. The IP you see is just a public one, used by default to handle requests. There are many other IPs involved, which aren’t disclosed for privacy reasons. So, when should I expect your hacker attack? If you fail, it means you talked big for nothing. I hope you're not all talk and can actually back up your words. UPD: To make your task easier, I have disabled limits on incorrect and failed requests, so your site/IP won't get blocked.
    • Lineage2Dex Interlude+ x50 Server launches TODAY!       The wait is over – the Lineage2Dex Interlude+ x50 Server launches TODAY! Grand Opening - April 26 at 19:00 (UTC+3) Over 10,000 registered accounts are ready to dive in! Beta with massive activity over, thx all who participate on it! It's time to begin your real Jorney! 👉 Read full roadmap 👉 Full server description 👉 Download and registration The server will be split into 3 stages, each featuring multiple content episodes. Stage 1: April 26 – May 18 Welcome to the Classic Interlude Phase. This stage is built with minimal custom content, focused on delivering that pure Interlude experience. It’s perfect for both new players unfamiliar with our project and veterans who enjoy a traditional start. Expect a smooth and nostalgic journey with familiar mechanics. Stage 2: May 19 – June 22 Time to expand the world! As most Interlude content gets completed, we gradually introduce new elements. Hellbound will open first, followed by weekly content updates. Midway through this stage, the Isle of Prayer will become available — a new zone featuring Dynasty Gear and fresh challenges. Stage 3: From June 23 Welcome to full content access! Some location become to High-level location, offering great reward! Once this phase concludes, a full merge with Union server will take place — and yes, all your characters and items will carry over safely. We wish everyone a smooth start, fair play, and tons of fun on the new x50 server! See you in-game!
  • Topics

×
×
  • Create New...