테스트

aion-server 4.8

Gitteol
최고관리자 · 1 · 💬 0 클론/새로받기
 4.8 61f661d · 1 commits 새로받기(Pull)
game-server/data/handlers/ai/instance/rakes/ChiefGunnerKoakoaAI.java
package ai.instance.rakes;

import com.aionemu.commons.utils.Rnd;
import com.aionemu.gameserver.ai.AIName;
import com.aionemu.gameserver.model.gameobjects.Npc;
import com.aionemu.gameserver.model.templates.ai.Percentage;
import com.aionemu.gameserver.utils.ThreadPoolManager;

import ai.SummonerAI;

/**
 * @author xTz
 */
@AIName("gunnerkoakoa")
public class ChiefGunnerKoakoaAI extends SummonerAI {

	public ChiefGunnerKoakoaAI(Npc owner) {
		super(owner);
	}

	@Override
	protected void handleIndividualSpawnedSummons(Percentage percent) {
		if (getEffectController().hasAbnormalEffect(18552)) {
			checkAbnormalEffect();
		}
		randomSpawn(Rnd.get(1, 3));
	}

	private void checkAbnormalEffect() {
		ThreadPoolManager.getInstance().schedule(new Runnable() {

			@Override
			public void run() {
				getEffectController().removeEffect(18552);
				// to do remove pause
			}
		}, 21000);
	}

	private void randomSpawn(int i) {
		// to do pause boss
		spawn(281212, 757.39746f, 508.70383f, 1012.30084f, (byte) 0);
		switch (i) {
			case 1:
				spawn(281212, 726.1167f, 503.28836f, 1012.6846f, (byte) 0);
				spawn(281212, 736.4446f, 505.3141f, 1012.1576f, (byte) 0);
				spawn(281212, 746.9261f, 503.50122f, 1012.68335f, (byte) 0);
				spawn(281212, 728.9705f, 492.59402f, 1012.68335f, (byte) 0);
				spawn(281212, 739.9526f, 491.54123f, 1011.692f, (byte) 0);
				spawn(281212, 749.754f, 491.74677f, 1011.8663f, (byte) 0);
				spawn(281212, 756.9996f, 500.01736f, 1011.692f, (byte) 0);
				spawn(281213, 736.9722f, 514.6446f, 1011.8599f, (byte) 0);
				spawn(281213, 747.5162f, 514.51715f, 1011.692f, (byte) 0);
				spawn(281213, 726.8303f, 514.5155f, 1012.6845f, (byte) 0);
				spawn(281213, 727.9019f, 524.578f, 1012.68365f, (byte) 0);
				spawn(281213, 738.52844f, 525.0482f, 1011.692f, (byte) 0);
				spawn(281213, 758.3127f, 520.59143f, 1011.692f, (byte) 0);
				spawn(281213, 748.7474f, 525.84f, 1011.859f, (byte) 0);
				break;
			case 2:
				spawn(281213, 726.1167f, 503.28836f, 1012.6846f, (byte) 0);
				spawn(281213, 736.4446f, 505.3141f, 1012.1576f, (byte) 0);
				spawn(281212, 746.9261f, 503.50122f, 1012.68335f, (byte) 0);
				spawn(281213, 728.9705f, 492.59402f, 1012.68335f, (byte) 0);
				spawn(281213, 739.9526f, 491.54123f, 1011.692f, (byte) 0);
				spawn(281212, 749.754f, 491.74677f, 1011.8663f, (byte) 0);
				spawn(281212, 756.9996f, 500.01736f, 1011.692f, (byte) 0);
				spawn(281212, 736.9722f, 514.6446f, 1011.8599f, (byte) 0);
				spawn(281213, 747.5162f, 514.51715f, 1011.692f, (byte) 0);
				spawn(281212, 726.8303f, 514.5155f, 1012.6845f, (byte) 0);
				spawn(281212, 727.9019f, 524.578f, 1012.68365f, (byte) 0);
				spawn(281212, 738.52844f, 525.0482f, 1011.692f, (byte) 0);
				spawn(281213, 758.3127f, 520.59143f, 1011.692f, (byte) 0);
				spawn(281213, 748.7474f, 525.84f, 1011.859f, (byte) 0);
				break;
			case 3:
				spawn(281212, 726.1167f, 503.28836f, 1012.6846f, (byte) 0);
				spawn(281212, 736.4446f, 505.3141f, 1012.1576f, (byte) 0);
				spawn(281213, 746.9261f, 503.50122f, 1012.68335f, (byte) 0);
				spawn(281212, 728.9705f, 492.59402f, 1012.68335f, (byte) 0);
				spawn(281212, 739.9526f, 491.54123f, 1011.692f, (byte) 0);
				spawn(281213, 749.754f, 491.74677f, 1011.8663f, (byte) 0);
				spawn(281213, 756.9996f, 500.01736f, 1011.692f, (byte) 0);
				spawn(281213, 736.9722f, 514.6446f, 1011.8599f, (byte) 0);
				spawn(281212, 747.5162f, 514.51715f, 1011.692f, (byte) 0);
				spawn(281213, 726.8303f, 514.5155f, 1012.6845f, (byte) 0);
				spawn(281213, 727.9019f, 524.578f, 1012.68365f, (byte) 0);
				spawn(281213, 738.52844f, 525.0482f, 1011.692f, (byte) 0);
				spawn(281212, 758.3127f, 520.59143f, 1011.692f, (byte) 0);
				spawn(281212, 748.7474f, 525.84f, 1011.859f, (byte) 0);
				break;
		}
	}
}

📎 첨부파일

댓글 작성 권한이 없습니다.
🏆 포인트 랭킹 TOP 10
순위 닉네임 포인트
1 no_profile 타키야겐지쪽지보내기 자기소개 아이디로 검색 전체게시물 102,949
2 no_profile 동가리쪽지보내기 자기소개 아이디로 검색 전체게시물 63,733
3 no_profile 라프텔쪽지보내기 자기소개 아이디로 검색 전체게시물 51,771
4 no_profile 불멸의행복쪽지보내기 자기소개 아이디로 검색 전체게시물 36,923
5 서번트쪽지보내기 자기소개 아이디로 검색 전체게시물 35,011
6 no_profile 닥터스쪽지보내기 자기소개 아이디로 검색 전체게시물 29,470
7 no_profile 검은고양이쪽지보내기 자기소개 아이디로 검색 전체게시물 29,077
8 no_profile Revolution쪽지보내기 자기소개 아이디로 검색 전체게시물 28,199
9 no_profile 보거스쪽지보내기 자기소개 아이디로 검색 전체게시물 26,731
10 no_profile 호롤롤로쪽지보내기 자기소개 아이디로 검색 전체게시물 17,020
알림 0