Jump to content
  • 0

npc_metamorphosis help


Yonko

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

How can i change the monster id of npc_metamorphosis if i use it as a custom skill of a player

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

 

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

Thank you i will try

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

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 

Link to comment
Share on other sites

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.

×
×
  • Create New...