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

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

    • Hi I would like to buy your panel, please reach me out from discord: doncarlo thanks in advance 🙂
    • Hi,   I am looking for experienced L2J developer who can handle Java work – systems, shops, buffer, custom features and client-side edits. Paid work. If you are interested, contact me: Discord: doncarlo
    • Hi all, I am looking for very experienced L2J developer to join and help with my Lineage 2 Interlude project (server launching soon). What I need: Build and manage shop system (manager shops) Buffer service, GM shop, custom services Good understanding of server-side (L2J) and also client-side edits Clean, stable and professional work (no random fixes) Important: Must have real experience with L2J / Interlude Must understand how to properly structure systems, not just copy-paste This is paid work, I respect your time and effort. If you are serious and experienced, contact me on Discord: doncarlo Thanks.    
    • Hey, I went through your NimeraCP and honestly, it looks really solid. Instantly bought for my server! Compared to most L2 panels, this is on a completely different level — the UI is clean, modern, and doesn’t feel like some 15-year-old system. I really like how everything is in one place — shop, referrals, rewards, roll & lucky wheel. The automation and real-time features (If you ask Splicho nicely, hahaha) are a big win too, since most panels are missing that. Overall though, great job. It feels like a next-gen panel, not just another copy. Definitely has the potential to be one of the top solutions in the L2 scene.
    • Helloo i was wonder if in interlude there is a way to increase font ui size ?  becouse sometimes when i put the game in full screen all the bars buff inventory etc are very  small  and i dont see very good .. , some one know if i can edit something in system?
  • 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..