Перейти к содержанию
Авторизация  
Serega1212

Аи Для Elpy

Рекомендуемые сообщения

package ai;

 

import com.l2jfrozen.commons.util.Rnd;

import com.l2jfrozen.gameserver.ai.Fighter;

import com.l2jfrozen.gameserver.geodata.GeoEngine;

import com.l2jfrozen.gameserver.model.Creature;

import com.l2jfrozen.gameserver.model.instances.NpcInstance;

import com.l2jfrozen.gameserver.utils.Location;

 

public class Elpy extends Fighter

{

public Elpy(NpcInstance actor)

{

super(actor);

}

 

@Override

protected void onEvtAttacked(Creature attacker, int damage)

{

NpcInstance actor = getActor();

if(attacker != null && Rnd.chance(50))

{

Location pos = Location.findPointToStay(actor, 150, 200);

if(GeoEngine.canMoveToCoord(actor.getX(), actor.getY(), actor.getZ(), pos.x, pos.y, pos.z, actor.getGeoIndex()))

{

actor.setRunning();

addTaskMove(pos, false);

}

}

}

 

@Override

public boolean checkAggression(Creature target)

{

return false;

}

 

@Override

protected void onEvtAggression(Creature target, int aggro)

{

 

}

}

 

 

Помогите вроде как пределал под frozen но выдает ошибку при компиле что не так

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Ну ошибку то можно посмотреть?

Buildfile: F:\l2\L2jFrozen_GameServer\build.xml

prepare-local:

prepare-final:

init:

version:

[echo] L2jFrozen Gameserver Revision: 991M

compile:

[javac] Compiling 1468 source files to F:\l2\L2jFrozen_GameServer\build\classes

[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:10: error: duplicate class: ai.Elpy

[javac] public class Elpy extends Fighter

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:3: error: package com.l2jfrozen.commons.util does not exist

[javac] import com.l2jfrozen.commons.util.Rnd;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:4: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.ai.Fighter;

[javac] ^

[javac] symbol: class Fighter

[javac] location: package com.l2jfrozen.gameserver.ai

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:5: error: package com.l2jfrozen.gameserver.geodata does not exist

[javac] import com.l2jfrozen.gameserver.geodata.GeoEngine;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:6: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.model.Creature;

[javac] ^

[javac] symbol: class Creature

[javac] location: package com.l2jfrozen.gameserver.model

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:7: error: package com.l2jfrozen.gameserver.model.instances does not exist

[javac] import com.l2jfrozen.gameserver.model.instances.NpcInstance;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:8: error: package com.l2jfrozen.gameserver.utils does not exist

[javac] import com.l2jfrozen.gameserver.utils.Location;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:10: error: cannot find symbol

[javac] public class Elpy extends Fighter

[javac] ^

[javac] symbol: class Fighter

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:12: error: cannot find symbol

[javac] public Elpy(NpcInstance actor)

[javac] ^

[javac] symbol: class NpcInstance

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:18: error: cannot find symbol

[javac] protected void onEvtAttacked(Creature attacker, int damage)

[javac] ^

[javac] symbol: class Creature

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:33: error: cannot find symbol

[javac] public boolean checkAggression(Creature target)

[javac] ^

[javac] symbol: class Creature

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:39: error: cannot find symbol

[javac] protected void onEvtAggression(Creature target, int aggro)

[javac] ^

[javac] symbol: class Creature

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:3: error: package com.l2jfrozen.commons.util does not exist

[javac] import com.l2jfrozen.commons.util.Rnd;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:4: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.ai.Fighter;

[javac] ^

[javac] symbol: class Fighter

[javac] location: package com.l2jfrozen.gameserver.ai

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:5: error: package com.l2jfrozen.gameserver.geodata does not exist

[javac] import com.l2jfrozen.gameserver.geodata.GeoEngine;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:6: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.model.Creature;

[javac] ^

[javac] symbol: class Creature

[javac] location: package com.l2jfrozen.gameserver.model

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:7: error: package com.l2jfrozen.gameserver.model.instances does not exist

[javac] import com.l2jfrozen.gameserver.model.instances.NpcInstance;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:8: error: package com.l2jfrozen.gameserver.utils does not exist

[javac] import com.l2jfrozen.gameserver.utils.Location;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:20: error: cannot find symbol

[javac] NpcInstance actor = getActor();

[javac] ^

[javac] symbol: class NpcInstance

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:20: error: cannot find symbol

[javac] NpcInstance actor = getActor();

[javac] ^

[javac] symbol: method getActor()

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:21: error: cannot find symbol

[javac] if(attacker != null && Rnd.chance(50))

[javac] ^

[javac] symbol: variable Rnd

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:23: error: cannot find symbol

[javac] Location pos = Location.findPointToStay(actor, 150, 200);

[javac] ^

[javac] symbol: class Location

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:23: error: cannot find symbol

[javac] Location pos = Location.findPointToStay(actor, 150, 200);

[javac] ^

[javac] symbol: variable Location

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:24: error: cannot find symbol

[javac] if(GeoEngine.canMoveToCoord(actor.getX(), actor.getY(), actor.getZ(), pos.x, pos.y, pos.z, actor.getGeoIndex()))

[javac] ^

[javac] symbol: variable GeoEngine

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:17: error: method does not override or implement a method from a supertype

[javac] @Override

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:32: error: method does not override or implement a method from a supertype

[javac] @Override

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:38: error: method does not override or implement a method from a supertype

[javac] @Override

[javac] ^

[javac] 27 errors

[javac] 1 warning

 

BUILD FAILED

F:\l2\L2jFrozen_GameServer\build.xml:65: Compile failed; see the compiler error output for details.

 

Total time: 6 seconds

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Упирается все в то, что половина импортов не существует.

+ Видимо с фениксо-овероподобной основы переписывалось под фрозен. Мало просто импорты поменять

Изменено пользователем BrainEater

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Buildfile: F:\l2\L2jFrozen_GameServer\build.xml

prepare-local:

prepare-final:

init:

version:

[echo] L2jFrozen Gameserver Revision: 991M

compile:

[javac] Compiling 1468 source files to F:\l2\L2jFrozen_GameServer\build\classes

[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:10: error: duplicate class: ai.Elpy

[javac] public class Elpy extends Fighter

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:3: error: package com.l2jfrozen.commons.util does not exist

[javac] import com.l2jfrozen.commons.util.Rnd;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:4: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.ai.Fighter;

[javac] ^

[javac] symbol: class Fighter

[javac] location: package com.l2jfrozen.gameserver.ai

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:5: error: package com.l2jfrozen.gameserver.geodata does not exist

[javac] import com.l2jfrozen.gameserver.geodata.GeoEngine;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:6: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.model.Creature;

[javac] ^

[javac] symbol: class Creature

[javac] location: package com.l2jfrozen.gameserver.model

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:7: error: package com.l2jfrozen.gameserver.model.instances does not exist

[javac] import com.l2jfrozen.gameserver.model.instances.NpcInstance;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:8: error: package com.l2jfrozen.gameserver.utils does not exist

[javac] import com.l2jfrozen.gameserver.utils.Location;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:10: error: cannot find symbol

[javac] public class Elpy extends Fighter

[javac] ^

[javac] symbol: class Fighter

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:12: error: cannot find symbol

[javac] public Elpy(NpcInstance actor)

[javac] ^

[javac] symbol: class NpcInstance

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:18: error: cannot find symbol

[javac] protected void onEvtAttacked(Creature attacker, int damage)

[javac] ^

[javac] symbol: class Creature

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:33: error: cannot find symbol

[javac] public boolean checkAggression(Creature target)

[javac] ^

[javac] symbol: class Creature

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:39: error: cannot find symbol

[javac] protected void onEvtAggression(Creature target, int aggro)

[javac] ^

[javac] symbol: class Creature

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:3: error: package com.l2jfrozen.commons.util does not exist

[javac] import com.l2jfrozen.commons.util.Rnd;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:4: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.ai.Fighter;

[javac] ^

[javac] symbol: class Fighter

[javac] location: package com.l2jfrozen.gameserver.ai

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:5: error: package com.l2jfrozen.gameserver.geodata does not exist

[javac] import com.l2jfrozen.gameserver.geodata.GeoEngine;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:6: error: cannot find symbol

[javac] import com.l2jfrozen.gameserver.model.Creature;

[javac] ^

[javac] symbol: class Creature

[javac] location: package com.l2jfrozen.gameserver.model

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:7: error: package com.l2jfrozen.gameserver.model.instances does not exist

[javac] import com.l2jfrozen.gameserver.model.instances.NpcInstance;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:8: error: package com.l2jfrozen.gameserver.utils does not exist

[javac] import com.l2jfrozen.gameserver.utils.Location;

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:20: error: cannot find symbol

[javac] NpcInstance actor = getActor();

[javac] ^

[javac] symbol: class NpcInstance

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:20: error: cannot find symbol

[javac] NpcInstance actor = getActor();

[javac] ^

[javac] symbol: method getActor()

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:21: error: cannot find symbol

[javac] if(attacker != null && Rnd.chance(50))

[javac] ^

[javac] symbol: variable Rnd

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:23: error: cannot find symbol

[javac] Location pos = Location.findPointToStay(actor, 150, 200);

[javac] ^

[javac] symbol: class Location

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:23: error: cannot find symbol

[javac] Location pos = Location.findPointToStay(actor, 150, 200);

[javac] ^

[javac] symbol: variable Location

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:24: error: cannot find symbol

[javac] if(GeoEngine.canMoveToCoord(actor.getX(), actor.getY(), actor.getZ(), pos.x, pos.y, pos.z, actor.getGeoIndex()))

[javac] ^

[javac] symbol: variable GeoEngine

[javac] location: class Elpy

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:17: error: method does not override or implement a method from a supertype

[javac] @Override

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:32: error: method does not override or implement a method from a supertype

[javac] @Override

[javac] ^

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\Elpy.java:38: error: method does not override or implement a method from a supertype

[javac] @Override

[javac] ^

[javac] 27 errors

[javac] 1 warning

 

BUILD FAILED

F:\l2\L2jFrozen_GameServer\build.xml:65: Compile failed; see the compiler error output for details.

 

Total time: 6 seconds

 

 

Для начала, берем переводчик и переводим.

 

[javac] F:\l2\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ai\special\Elpy.java:10: error: duplicate class

 

А дальше уже дело 2е.

У вас уже есть аналогичный класс, либо удаляйте его либо переименовывайте. Но от переименования может быть мало толку.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×
×
  • Создать...