Jump to content
  • 0

Requesting Custom Skill High Priest Auto Attack System


Question

6 answers to this question

Recommended Posts

  • 0
Posted
55 minutes ago, itsmeyoe said:

First Level (1/4) - 3 Acolytes Second

Level (2/4) - 3 High Priests

Third Level (3/4) - 3 Sniper Fourth

Level (4/4) - 3 Lord Knights

	case AM_CANNIBALIZE:
		{
			int summons[5] = { MOBID_G_MANDRAGORA, MOBID_G_HYDRA, MOBID_G_FLORA, MOBID_G_PARASITE, MOBID_G_GEOGRAPHER };
			int class_ = skill_id==AM_SPHEREMINE?MOBID_MARINE_SPHERE:summons[skill_lv-1];
			enum mob_ai ai = (skill_id == AM_SPHEREMINE) ? AI_SPHERE : AI_FLORA;
			struct mob_data *md;

			// Correct info, don't change any of this! [celest]
			md = mob_once_spawn_sub(src, src->m, x, y, status_get_name(src), class_, "", SZ_SMALL, ai);
			if (md) {
				md->master_id = src->id;
				md->special_state.ai = ai;
				if( md->deletetimer != INVALID_TIMER )
					delete_timer(md->deletetimer, mob_timer_delete);
				md->deletetimer = add_timer (gettick() + skill_get_time(skill_id,skill_lv), mob_timer_delete, md->bl.id, 0);
				mob_spawn (md); //Now it is ready for spawning.
			}
		}
		break;

Just Find all AM_CANNIBALIZE Duplicate it and change the ID # of summon

  • 0
Posted

same concern @Naruto i have already perfect the skill my current problem now is how to replicate the skill

found out that there is 3 files in SRC that has AM_CANNIBALIZE i have already done doing replication

but seems the skill is not working same as the AM CANNIBALIZE AND AM_SPHEREMINE

 

On 8/1/2019 at 3:15 PM, DaemonSpade said:

same concern @Naruto i have already perfect the skill my current problem now is how to replicate the skill

found out that there is 3 files in SRC that has AM_CANNIBALIZE i have already done doing replication

but seems the skill is not working same as the AM CANNIBALIZE AND AM_SPHEREMINE

 

Because i dont want to loose the AM_CANNIBALIZE in the process....

do you have references regarding the locations where to find the code related to those skills @Bringer

 

  • 0
Posted

theres an easier way to do that and its by using the same command as '@'summon 

	md = mob->once_spawn_sub(&sd->bl, sd->bl.m, -1, -1, "--ja--", mob_id, "", SZ_SMALL, AI_NONE);
		mob->spawn(md);

btw you wanna change the AI_NONE to whatever your interested in, 

replace mob_id with its id, and ... idk just try playing with this instead 

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