스킬 딜줄이기 소스
@포효검황 {
set @sd, mysd();
set @id, myid();
callfunc "MANA_DELAY", 600, 0, @sd;
set @damage, get_hp(@sd);
set @me_x, get_x(@id);
set @me_y, get_y(@id);
set @x1, @me_x-7;
set @x2, @me_x+7;
set @y1, @me_y-6;
set @y2, @me_y+6;
if (@x1 < 0) { set @x1, 0; }
if (@x2 > get_mapwidth(@sd) -1) { set @x2, get_mapwidth(@sd) -1; }
if (@y1 < 0) { set @y1, 0; }
if (@y2 > get_mapheight(@sd)-1) { set @y2, get_mapheight(@sd) -1; }
if($finalattack) { set @damage, @damage*2; }
if($damageup) { set @damage, @damage*2; }
for(set @i, @x1; @i <= @x2; set @i, @i+1)
{
for(set @j, @y1; @j<=@y2; set @j, @j+1)
{
set @target_id, obj_getxy(@i, @j);
if (@target_id > 0 && @target_id != @id)
{
set @chk_x, callfunc("maxtomincalc", @me_x, @i);
set @chk_y, callfunc("maxtomincalc", @me_y, @j);
if ( @chk_x >= @chk_y ) { set @ret, @chk_x; }
else { set @ret, @chk_y; }
if (istype(@target_id) == 1)
{
set @target_sd, id2sd(@target_id);
damage @id, @target_id, @damage*2, 0;
message @target_sd, 3, get_name(@sd) + "님께서 포효검황를 가했습니다.";
}
else if (istype(@target_id) == 2)
{
damage @id, @target_id, @damage*3/2, 0;
}
}
}
}

달퐁 님의 최근 댓글
ㄳㄳ 2018 07.17 ㅋ 2018 07.15 ㄳㄳ 2018 07.12