Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

 

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???

  • 0
Posted (edited)

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
  • 0
Posted

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

  • 0
Posted (edited)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...