PROGRAMMATOR, не получается, помоги разобраться
Код:
----------
1. ERROR in \DemonicItems.java (at line 30)
CursedWeapon.endOfLife();
^^^^^^^^^^^^^^^^^^^^^^^^
Cannot make a static reference to the non-static method endOfLife() from the typ
e CursedWeapon
----------
1 problem (1 error)Cannot make a static reference to the non-static method endOf
Life() from the type com.l2open.gameserver.model.CursedWeapon
Код:
----------
1. ERROR in \DemonicItems.java (at line 30)
CursedWeapon.getInstance().endOfLife();
^^^^^^^^^^^
The method getInstance() is undefined for the type CursedWeapon
----------
1 problem (1 error)The method getInstance() is undefined for the type com.l2open
.gameserver.model.CursedWeapon
Lavs, там только шанс выпадения и id итема