inherit GMONSTER;
void create()
{
set("level",200);
::create();
seteuid(getuid(this_object()));
set_living_name("replica");
set("id",({"replica"}));
set("unit","位");
set("hp_src",1000000);
set("hp_max",1000000);
set("hp",2000000);
// 設定上,屬於非主動攻擊怪
set("no_sleep",1);
set("no_confine",1);
set("no_ice",1);
set_verbs(({"攻向","打向"}));
set("no_exp_if_no_die",1);
set("no_die",1);
set("member",100);
enable_commands();
}
int special_fun(object me,object tar)
{
string pri_guild,msg,msg2;
int times1,times2,counts;
if(!me || !tar) return 1;
pri_guild=me->query("pri_guild");
counts=me->query("counts");
switch(pri_guild)
{
case "fighter": msg="狂怒斧斬"; times1=10;
msg2="狂暴之吼"; times2=-1; break;
case "knight": msg="騎風槍殺"; times1=10;
msg2="槍矛投擲"; times2=-1; break;
case "blader": msg="紫雷斬"; times1=10;
msg2="飛龍訣"; times2=-1; break;
case "slasher": msg="四時劍法"; times1=10;
msg2="舞鳳訣"; times2=-1; break;
case "fister": random(2)==1 ? msg="火雲掌" : msg="寒冰掌"; times1=10;
random(2)==1 ? msg2="轟天大雷擊" : msg2="破甲尖風七旋指";
times2=-1; break;
case "mage": msg="暴風雪"; times1=-1;
msg2="殞石術"; times2=-1; break;
case "clerical": msg="光系法術"; times1=10;
msg="破魔滅卻"; times2=-1; break;
case "thief": msg="背刺"; times1=10;
msg2="淒風送葬"; times2=-1; break;
}
if(random(3)==1)
me->shut(msg2,counts,9999,"all",tar,1+random(3));
else
me->shut(msg1,counts,9999,"dam",tar,times1);
return 1;
}