Skip to content

Faction Monster

Featured Replies

Hello guys can someone tell me if i have faction serv how i can make the mobs have  faction like goods evil...If yes how?? thnx

may I know why you need something like that?that's quite stupid

 

You can create 2 new monster instances by extending the current one called l2monsterinstance.

 

And do it like something;

one type of those will be able to get attacked only by x faction

the other type of those will be able to get attacked only by y faction.

of course you can do it with many other ways if you want to separate monsters,but as I said i think its stupid.

 

The purpose of the post above was to provide you an idea about how to forbid a specific faction to attack in specific type of mobs,if I get it,that's why you want to give faction status to monsters,if that's not your goal,then just ignore my post.

  • Author

 

And do it like something;

one type of those will be able to get attacked only by x faction

the other type of those will be able to get attacked only by y faction.

 

and how i can do this???

You can create 2 new monster instances by extending the current one called l2monsterinstance.

 

I already answered >.>

  • Author

ok got it thnx for help!!! But its easy to make this instance because i dont know more about this java codes can yo uhelp ? ://

Edited by z1r3k

Then you probably should check how l2monsterinstance(and actually what is it -since you've no idea,as you say-) works.

Fanky's very stupid way, shows his lack of OOP, java and l2j knowledge.

 

To do this

  1. Create an enum for its fanction
  2. add a collumn fanction in spawnlist.sql
  3. create a command //spawn_fanction npcId respawn fanctionEnm which will also set spawnlist function
  4. create a field Fanction _func in Npc.java and Spawn.java
  5. On spawn modify spawns and npc instances fanction id
  6. use ur getters to get the info and do the rest

 

If you can't get what Im talking about either hire a developer to do it, or go for the stupid way Fanky posted

  • Author

Fanky's very stupid way, shows his lack of OOP, java and l2j knowledge.

 

To do this

  1. Create an enum for its fanction
  2. add a collumn fanction in spawnlist.sql
  3. create a command //spawn_fanction npcId respawn fanctionEnm which will also set spawnlist function
  4. create a field Fanction _func in Npc.java and Spawn.java
  5. On spawn modify spawns and npc instances fanction id
  6. use ur getters to get the info and do the rest

 

If you can't get what Im talking about either hire a developer to do it, or go for the stupid way Fanky posted

ok thnx :))) i will try

Edited by z1r3k

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.