summaryrefslogblamecommitdiff
path: root/npc/magic/study.txt
blob: b47cbbf10049bc90edbeddf23a6daf6f40eb75b8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                         



                                                                                                


               
// TMW2 script
// Author: Jesusalva <admin@tmw2.org>
//
// Magic Script: TMW2_STUDY
//
// Skill to study a target monster
// Will report the monster exact current stats, and is part of research

function	script	SK_study	{
	.@mobGD=getarg(0);
	if (getunittype(.@mobGD) != UNITTYPE_MOB) {
		dispbottom l("This skill can only be used on monsters!");
	}
	.@mobID=getunitdata(.@mobGD, UDT_CLASS);
	dispbottom l("%s - %d/%d HP, %d/%d MP",
				 getmonsterinfo(.@mobID, MOB_NAME),
				 getunitdata(.@mobGD, UDT_HP), getunitdata(.@mobGD, UDT_MAXHP),
				 getunitdata(.@mobGD, UDT_SP), getunitdata(.@mobGD, UDT_MAXSP));
	return;
}