Quick question about mobs race.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 80
- Joined: Fri May 06, 2011 11:17 am
Quick question about mobs race.
Hi. I'm trying to build a few new mobs in my server, and bumped into a little problem - Where do you describe mobs race? If I want it to be undead, or let's say angel race, and to be able attack with might of heaven, or banish seraph, etc?
Thanks in advance.
Thanks in advance.
- VlLight
- L2j Veteran
- Posts: 577
- Joined: Fri Dec 14, 2007 11:58 am
- Location: Russia
Re: Quick question about mobs race.
Defines by level of 4416 skill.
Code: Select all
case 1: race = L2NpcTemplate.Race.UNDEAD; break; case 2: race = L2NpcTemplate.Race.MAGICCREATURE; break; case 3: race = L2NpcTemplate.Race.BEAST; break; case 4: race = L2NpcTemplate.Race.ANIMAL; break; case 5: race = L2NpcTemplate.Race.PLANT; break; case 6: race = L2NpcTemplate.Race.HUMANOID; break; case 7: race = L2NpcTemplate.Race.SPIRIT; break; case 8: race = L2NpcTemplate.Race.ANGEL; break; case 9: race = L2NpcTemplate.Race.DEMON; break; case 10: race = L2NpcTemplate.Race.DRAGON; break; case 11: race = L2NpcTemplate.Race.GIANT; break; case 12: race = L2NpcTemplate.Race.BUG; break; case 13: race = L2NpcTemplate.Race.FAIRIE; break; case 14: race = L2NpcTemplate.Race.HUMAN; break; case 15: race = L2NpcTemplate.Race.ELVE; break; case 16: race = L2NpcTemplate.Race.DARKELVE; break; case 17: race = L2NpcTemplate.Race.ORC; break; case 18: race = L2NpcTemplate.Race.DWARVE; break; case 19: race = L2NpcTemplate.Race.OTHER; break; case 20: race = L2NpcTemplate.Race.NONLIVING; break; case 21: race = L2NpcTemplate.Race.SIEGEWEAPON; break; case 22: race = L2NpcTemplate.Race.DEFENDINGARMY; break; case 23: race = L2NpcTemplate.Race.MERCENARIE; break; case 24: race = L2NpcTemplate.Race.UNKNOWN; break; case 25: race = L2NpcTemplate.Race.KAMAEL;
-
- Posts: 80
- Joined: Fri May 06, 2011 11:17 am
Re: Quick question about mobs race.
Looks like I'm using older version than yours...
4416 skill in my list defines races p def modifiers... and I've checked some undead mobs - they have no race related skills.
There are no section in database to define race, no skill, So I'm wondering how that was done.
P.S. I've tried to add a 4416 skill to a NPC, it doesn't show up in a skill list...
P.S.S. I'm using Freya compilation, not sure how to check review... Found this tho - version = 7911

4416 skill in my list defines races p def modifiers... and I've checked some undead mobs - they have no race related skills.

P.S. I've tried to add a 4416 skill to a NPC, it doesn't show up in a skill list...
P.S.S. I'm using Freya compilation, not sure how to check review... Found this tho - version = 7911
- VlLight
- L2j Veteran
- Posts: 577
- Joined: Fri Dec 14, 2007 11:58 am
- Location: Russia
Re: Quick question about mobs race.
pfff.. I had quoted part of the core.
For example: 20136 - Death Knight. Is he undead? I think - yes. Does he 4416 - 1 skill? Yes
For example: 20136 - Death Knight. Is he undead? I think - yes. Does he 4416 - 1 skill? Yes
-
- Posts: 80
- Joined: Fri May 06, 2011 11:17 am
Re: Quick question about mobs race.
found this -
And some similar below this... but it says not done... so it can't be working...
How else a race could be described?
Code: Select all
<skill id="4290" levels="1" name="Race"> <!-- Freya retail confirmed --> <!-- Race Undead --> <set name="target" val="TARGET_NONE" /> <set name="skillType" val="NOTDONE" /> <set name="operateType" val="OP_PASSIVE" /> </skill>

How else a race could be described?
-
- Posts: 80
- Joined: Fri May 06, 2011 11:17 am
Re: Quick question about mobs race.
http://img861.imageshack.us/img861/1773/shot00001j.jpgVlLight wrote:pfff.. I had quoted part of the core.
For example: 20136 - Death Knight. Is he undead? I think - yes. Does he 4416 - 1 skill? Yes
Not in my case...

- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
Re: Quick question about mobs race.
you are using a old L2J version then.
upgrade your server properly.
-
- Posts: 80
- Joined: Fri May 06, 2011 11:17 am
Re: Quick question about mobs race.
Damn, just downloaded this version couple of weeks ago from this same forum, where it was listed as one of last stable versions... 

- VlLight
- L2j Veteran
- Posts: 577
- Joined: Fri Dec 14, 2007 11:58 am
- Location: Russia
Re: Quick question about mobs race.
This skill have not added to skill list. Used only for set race
Code: Select all
if (npcDat.race == null && skillId == 4416) { npcDat.setRace(level); continue; }
- VlLight
- L2j Veteran
- Posts: 577
- Joined: Fri Dec 14, 2007 11:58 am
- Location: Russia
Re: Quick question about mobs race.
Look into npcskills table. You'll find this skill
-
- Posts: 80
- Joined: Fri May 06, 2011 11:17 am
Re: Quick question about mobs race.
found it. works like i want. thanks for being patient with a stupid me 
