Jump to content
  • 0

setunitdata doesn't change normal mob to boss?


Question

Posted

Hi, 
I tested with this script:
 

prontera,156,186,4	script	stest	857,{
	monster "prontera",156,187,"Dummy",1002,1,"stest::OnMyMobDead";
	.@GID = $@mobid[0];
	getunitdata .@GID,.@mobData;

	debugmes "Mode: " + .@mobData[UMOB_MODE]; // 131
	setunitdata .@GID,UMOB_MODE,(.@mobData[UMOB_MODE] | MD_STATUS_IMMUNE | MD_DETECTOR | MD_KNOCKBACK_IMMUNE);

	getunitdata .@GID,.@mobData;
	debugmes "New Mode: " + .@mobData[UMOB_MODE];
	end;
OnMyMobDead:
	end;
}

I have used weapon insert Abyss Knight Card but damage does not increase. Is this a bug?
Thanks.

1 answer to this question

Recommended Posts

  • 0
Posted
4140,Knight_Of_Abyss_Card,Abysmal Knight Card,6,20,,10,,,,,,,,2,,,,,{ bonus2 bAddClass,Class_Boss,25; },{},{}
* Class (c)
	Class_Normal, Class_Boss, Class_Guardian, Class_All
	case SP_ADDCLASS: // bonus2 bAddClass,c,x;
		PC_BONUS_CHK_CLASS(type2,SP_ADDCLASS);
		if(!sd->state.lr_flag || sd->state.lr_flag == 3)
			sd->right_weapon.addclass[type2]+=val;
		else if(sd->state.lr_flag == 1)
			sd->left_weapon.addclass[type2]+=val;
		else if(sd->state.lr_flag == 2)
			sd->arrow_addclass[type2]+=val;
		break;

answer is no ... since rathena changed the monster mode, there are no field for setunitdata to modify a monster into Class_Boss mode
unless ... well ... make an issue in rathena github

  • Like 1

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