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.



×
×
  • Create New...