Jump to content
  • 0

npc_metamorphosis help


Question

9 answers to this question

Recommended Posts

Posted

 

this

 

 

case NPC_TRANSFORMATION:

    case NPC_METAMORPHOSIS:

        if(bl->type == BL_PC )

        pc_disguise(sd, 1002);

        else{

        if(md && md->skill_idx >= 0) {

            int class_ = mob_random_class (md->db->skill[md->skill_idx].val,0);

            if (skill_lv > 1) //Multiply the rest of mobs. [skotlex]

                mob_summonslave(md,md->db->skill[md->skill_idx].val,skill_lv-1,skill_id);

            if (class_) mob_class_change(md, class_);

        }

        }

 

untested

not working gives error on compile 

 

 

although untested, i always test it on compiler

it doesn't give any error if you put the code correctly :)

double check please

Posted

make a an skill bmp picture and place it in an texture /item folder

 

edit skill tree, edi skill lua files

 

edit src.. specially trunk/src/map/pc.c

 

search for this:

skill_get_inf2(i)&(INF2_NPC_SKILL|INF2_GUILD_SKILL) )

there is 2 line for this script

then remove

INF2_NPC_SKILL
Posted

 

make a an skill bmp picture and place it in an texture /item folder

 

edit skill tree, edi skill lua files

 

edit src.. specially trunk/src/map/pc.c

 

search for this:

skill_get_inf2(i)&(INF2_NPC_SKILL|INF2_GUILD_SKILL) )

there is 2 line for this script

then remove

INF2_NPC_SKILL

Then how to set the monster ID there?

Posted

BUMP Need help i need to know how can i change this codes into a specific monster ID

case NPC_METAMORPHOSIS:

if(md && md->skill_idx >= 0) {

int class_ = mob_random_class (md->db->skill[md->skill_idx].val,0);

if (skill_lv > 1) //Multiply the rest of mobs. [skotlex]

mob_summonslave(md,md->db->skill[md->skill_idx].val,skill_lv-1,skill_id);

if (class_) mob_class_change(md, class_);

}

break;

Posted

sorry forgot to reply your PM
this how to use

 

 

1007,Fabre@NPC_METAMORPHOSIS,idle,193,1,10,2000,5000,no,self,always,0,1008,,,,,,

 

1008 = monster ID

Posted

sorry forgot to reply your PM

this how to use

 

 

1007,Fabre@NPC_METAMORPHOSIS,idle,193,1,10,2000,5000,no,self,always,0,1008,,,,,,

 

1008 = monster ID

sir i will use that NPC_METAMORPHOSIS as custom skill i just need to know how will i put a specific monster id let say when warlock use that skill he/she will transform into a poring

Posted

this

 

 

case NPC_TRANSFORMATION:
    case NPC_METAMORPHOSIS:
        if(bl->type == BL_PC )
        pc_disguise(sd, 1002);
        else{
        if(md && md->skill_idx >= 0) {
            int class_ = mob_random_class (md->db->skill[md->skill_idx].val,0);
            if (skill_lv > 1) //Multiply the rest of mobs. [skotlex]
                mob_summonslave(md,md->db->skill[md->skill_idx].val,skill_lv-1,skill_id);
            if (class_) mob_class_change(md, class_);
        }
        }

 

untested

Posted

this

 

 

case NPC_TRANSFORMATION:

    case NPC_METAMORPHOSIS:

        if(bl->type == BL_PC )

        pc_disguise(sd, 1002);

        else{

        if(md && md->skill_idx >= 0) {

            int class_ = mob_random_class (md->db->skill[md->skill_idx].val,0);

            if (skill_lv > 1) //Multiply the rest of mobs. [skotlex]

                mob_summonslave(md,md->db->skill[md->skill_idx].val,skill_lv-1,skill_id);

            if (class_) mob_class_change(md, class_);

        }

        }

 

untested

not working gives error on compile 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...