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

Lucera Ошибка

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

Поставил аугумент скрипт.

Вылазит ошибка.

В чем проблема?

Вот ошибка

 

[WARN 17:32:08]: C:\Lucera\serv\game\data\scripts\custom\920_Augment\__init__.py

 

Traceback (innermost last):

File "__init__.py", line 52, in onAdvEvent

File "__init__.py", line 29, in augmentItem

TypeError: ru.catssoftware.gameserver.model.L2Augmentation(): expected 2-3 args;

got 4

 

at org.python.core.Py.TypeError(Py.java:156)

at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.ja

va:188)

at org.python.core.PyReflectedFunction.throwArgCountError(PyReflectedFun

ction.java:249)

at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.ja

va:326)

at org.python.core.PyReflectedConstructor.__call__(PyReflectedConstructo

r.java:173)

at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java:73)

at org.python.core.PyJavaClass.__call__(PyJavaClass.java:883)

at org.python.core.PyObject.__call__(PyObject.java:544)

at org.python.pycode.serializable._pyx1359465146142.augmentItem$2(__init

__.py:29)

at org.python.pycode.serializable._pyx1359465146142.call_function(__init

__.py)

at org.python.core.PyTableCode.call(PyTableCode.java:217)

at org.python.core.PyTableCode.call(PyTableCode.java:437)

at org.python.core.PyFunction.__call__(PyFunction.java:189)

at org.python.core.PyObject.__call__(PyObject.java:476)

at org.python.pycode.serializable._pyx1359465146142.onAdvEvent$6(__init_

_.py:52)

at org.python.pycode.serializable._pyx1359465146142.call_function(__init

__.py)

at org.python.core.PyTableCode.call(PyTableCode.java:217)

at org.python.core.PyTableCode.call(PyTableCode.java:437)

at org.python.core.PyTableCode.call(PyTableCode.java:333)

at org.python.core.PyFunction.__call__(PyFunction.java:195)

at org.python.core.PyMethod.__call__(PyMethod.java:102)

at org.python.core.PyObject.__call__(PyObject.java:476)

at org.python.core.PyObject._jcallexc(PyObject.java:2854)

at org.python.core.PyObject._jcall(PyObject.java:2886)

at org.python.proxies.main$Quest$20.onAdvEvent(Unknown Source)

at ru.catssoftware.gameserver.model.quest.Quest.notifyEvent(Quest.java:4

65)

at ru.catssoftware.gameserver.model.actor.instance.L2PcInstance.processQ

uestEvent(L2PcInstance.java:1451)

at ru.catssoftware.gameserver.network.clientpackets.RequestBypassToServe

r.runImpl(RequestBypassToServer.java:219)

at ru.catssoftware.gameserver.network.clientpackets.L2GameClientPacket.r

un(L2GameClientPacket.java:67)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source

)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

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


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

1. ERROR in \AugmentShop.java (at line 3)

import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance;

^^^

The import net cannot be resolved

----------

2. ERROR in \AugmentShop.java (at line 4)

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

^^^

The import net cannot be resolved

----------

3. ERROR in \AugmentShop.java (at line 5)

import net.sf.l2j.gameserver.model.quest.Quest;

^^^

The import net cannot be resolved

----------

4. ERROR in \AugmentShop.java (at line 6)

import net.sf.l2j.gameserver.model.quest.QuestState;

^^^

The import net cannot be resolved

----------

5. ERROR in \AugmentShop.java (at line 7)

import net.sf.l2j.gameserver.model.Inventory;

^^^

The import net cannot be resolved

----------

6. ERROR in \AugmentShop.java (at line 10)

import net.sf.l2j.L2DatabaseFactory;

^^^

The import net cannot be resolved

----------

7. ERROR in \AugmentShop.java (at line 12)

import net.sf.l2j.gameserver.model.L2ItemInstance;

^^^

The import net cannot be resolved

----------

8. ERROR in \AugmentShop.java (at line 19)

public class AugmentShop extends Quest

^^^^^

Quest cannot be resolved to a type

----------

9. ERROR in \AugmentShop.java (at line 28)

super(questId, name, descr);

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The constructor Object(int, String, String) is undefined

----------

10. ERROR in \AugmentShop.java (at line 29)

addFirstTalkId(NPC);

^^^^^^^^^^^^^^

The method addFirstTalkId(int) is undefined for the type AugmentShop

----------

11. ERROR in \AugmentShop.java (at line 30)

addStartNpc(NPC);

^^^^^^^^^^^

The method addStartNpc(int) is undefined for the type AugmentShop

----------

12. ERROR in \AugmentShop.java (at line 31)

addTalkId(NPC);

^^^^^^^^^

The method addTalkId(int) is undefined for the type AugmentShop

----------

13. ERROR in \AugmentShop.java (at line 35)

public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance p

layer)

^^^^^^^^^^^^^

L2NpcInstance cannot be resolved to a type

----------

14. ERROR in \AugmentShop.java (at line 35)

public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance p

layer)

^^^^^^^^^^^^

L2PcInstance cannot be resolved to a type

----------

15. ERROR in \AugmentShop.java (at line 65)

public String onFirstTalk(L2NpcInstance npc, L2PcInstance player)

^^^^^^^^^^^^^

L2NpcInstance cannot be resolved to a type

----------

16. ERROR in \AugmentShop.java (at line 65)

public String onFirstTalk(L2NpcInstance npc, L2PcInstance player)

^^^^^^^^^^^^

L2PcInstance cannot be resolved to a type

----------

17. ERROR in \AugmentShop.java (at line 68)

QuestState qs = player.getQuestState(qn);

^^^^^^^^^^

QuestState cannot be resolved to a type

----------

18. ERROR in \AugmentShop.java (at line 81)

private static void updateAugment(L2PcInstance player, int attributes, i

nt skill, int level)

^^^^^^^^^^^^

L2PcInstance cannot be resolved to a type

----------

19. ERROR in \AugmentShop.java (at line 83)

L2ItemInstance item = player.getInventory().getPaperdollItem(Inventory.P

APERDOLL_RHAND);

^^^^^^^^^^^^^^

L2ItemInstance cannot be resolved to a type

----------

20. ERROR in \AugmentShop.java (at line 83)

L2ItemInstance item = player.getInventory().getPaperdollItem(Inventory.P

APERDOLL_RHAND);

^^^^^^^^^

Inventory cannot be resolved

----------

21. ERROR in \AugmentShop.java (at line 84)

if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) ==

null)

^^^^^^^^^

Inventory cannot be resolved

----------

22. ERROR in \AugmentShop.java (at line 91)

if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).is

Augmented())

^^^^^^^^^

Inventory cannot be resolved

----------

23. ERROR in \AugmentShop.java (at line 107)

con = L2DatabaseFactory.getInstance().getConnection();

^^^^^^^^^^^^^^^^^

L2DatabaseFactory cannot be resolved

----------

24. ERROR in \AugmentShop.java (at line 122)

_log.log(Level.SEVERE, "Could not augment item: "+item.getObjectId()+" "

, e);

^^^^

_log cannot be resolved

----------

24 problems (24 errors)Quest cannot be resolved to a type

The import net cannot be resolved

The import net cannot be resolved

The import net cannot be resolved

The import net cannot be resolved

The import net cannot be resolved

The import net cannot be resolved

The import net cannot be resolved

L2NpcInstance cannot be resolved to a type

L2PcInstance cannot be resolved to a type

L2NpcInstance cannot be resolved to a type

L2PcInstance cannot be resolved to a type

L2PcInstance cannot be resolved to a type

The constructor java.lang.Object(int, java.lang.String, java.lang.String) is und

efined

The method addFirstTalkId(int) is undefined for the type custom.AugmentShop.Augm

entShop

The method addStartNpc(int) is undefined for the type custom.AugmentShop.Augment

Shop

The method addTalkId(int) is undefined for the type custom.AugmentShop.AugmentSh

op

QuestState cannot be resolved to a type

L2ItemInstance cannot be resolved to a type

Inventory cannot be resolved

Inventory cannot be resolved

Inventory cannot be resolved

L2DatabaseFactory cannot be resolved

_log cannot be resolved

[WARN 18:47:45]: Failed executing script: C:\Lucera\serv\game\data\scripts\custo

m\AugmentShop\AugmentShop.java. See AugmentShop.java.error.log for details.

 

 

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

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


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

тут же все понятным языком написано, а если не понятно то google.translate в помощь...

Ну в 1 коде у тебя 52 и 29 строках ошибка. что

TypeError: ru.catssoftware.gameserver.model.L2Augmentation(): expected 2-3 args;

got 4

L2Augmentation поддерживает 2-3 атрумента, а получил 4.

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


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

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

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

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

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

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

Войти

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

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

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

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

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