Page 1 of 1

Quick question about mobs race.

Posted: Fri May 06, 2011 11:21 am
by Chuliganas
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.

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 12:08 pm
by VlLight
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;

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 10:28 pm
by Chuliganas
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. :roll: 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

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 10:51 pm
by VlLight
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

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 11:11 pm
by Chuliganas
found this -

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> 
And some similar below this... but it says not done... so it can't be working... :roll:
How else a race could be described?

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 11:15 pm
by Chuliganas
VlLight 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
http://img861.imageshack.us/img861/1773/shot00001j.jpg

Not in my case... :roll:

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 11:21 pm
by MELERIX
Chuliganas wrote:http://img861.imageshack.us/img861/1773/shot00001j.jpg

Not in my case... :roll:
you are using a old L2J version then.

upgrade your server properly.

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 11:29 pm
by Chuliganas
Damn, just downloaded this version couple of weeks ago from this same forum, where it was listed as one of last stable versions... :?

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 11:32 pm
by VlLight
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;                    } 

Re: Quick question about mobs race.

Posted: Fri May 06, 2011 11:45 pm
by VlLight
Look into npcskills table. You'll find this skill

Re: Quick question about mobs race.

Posted: Sat May 07, 2011 12:05 am
by Chuliganas
found it. works like i want. thanks for being patient with a stupid me :oops: