Jump to content
  • 0

Star Gladiator Opposition (SG_HATE) on any mob


Question

Posted

Hello community!

I want to remove the SG_HATE - Star Gladiator Oppositions restriction by mob, so you can choose any mob to make an Opposition for on any of 3 skill levels.

The default is:

3d18a1e9a93ec709353c05daa68b8ae3.png

I wanna remove the HP and Size Restriction, so the players can choose 3 MVP's to make an Opposition for, as well as the Emperium, for example.

 

My actual skill.cpp SG_HATE is:

	case SG_HATE:
		if (sd) {
			clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
			if (!pc_set_hate_mob(sd, skill_lv-1, bl))
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
		}
		break;

Any clue to how I can do that? Thank you guys! ?

1 answer to this question

Recommended Posts

  • 0
Posted

Got it guys:

 

pc.cpp

	class_ = status_get_class(bl);
	if (!pcdb_checkid(class_)) {
		unsigned int max_hp = status_get_max_hp(bl);
		if ((pos == 1 && max_hp < 6000) || (pos == 2 && max_hp < 20000))
			return false;
		if (pos != status_get_size(bl))
			return false; //Wrong size

Replaced with:

	class_ = status_get_class(bl);
	if (!pcdb_checkid(class_)) {
		unsigned int max_hp = status_get_max_hp(bl);
		if ((pos == 1 && max_hp < 6000) || (pos == 2 && max_hp < 20000))
			return false;
//		if (pos != status_get_size(bl))
//			return false; //Wrong size
	}

 

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