Jump to content

Question

Posted (edited)

well... i compiled an old pack i had working fine, and the svn is not working anymore.. so i took a copy from my friends backup data and tried to open it and i am takin these errors and as he told me he did something but he doesnt remember what so i need some help with this.. i replaced the script files showing the errors and still same errors:

 

Pack info:

-------------------------------------------

L2j gracia final

L2J Server Version:    3287
L2J Datapack Version:  6395

-------------------------------------------

errors:

72. ERROR in \QueenAnt.java (at line 174)
        nurse.useMagic(getRandomBoolean() ? HEAL1.getSkill() : HEAL2.getSkill())
;
                       ^^^^^^^^^^^^^^^^
The method getRandomBoolean() is undefined for the type QueenAnt
----------
73. ERROR in \QueenAnt.java (at line 174)
        nurse.useMagic(getRandomBoolean() ? HEAL1.getSkill() : HEAL2.getSkill())
;
                                            ^^^^^
SkillHolder cannot be resolved to a type
----------
74. ERROR in \QueenAnt.java (at line 174)
        nurse.useMagic(getRandomBoolean() ? HEAL1.getSkill() : HEAL2.getSkill())
;
                                                               ^^^^^
SkillHolder cannot be resolved to a type
----------
75. ERROR in \QueenAnt.java (at line 180)
        if (nurse.getLeader() == _larva)
                                 ^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
76. ERROR in \QueenAnt.java (at line 185)
        if ((nurse.getTarget() != _queen) || notCasting)
                                  ^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
77. ERROR in \QueenAnt.java (at line 187)
        nurse.setTarget(_queen);
                        ^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
78. ERROR in \QueenAnt.java (at line 188)
        nurse.useMagic(HEAL1.getSkill());
                       ^^^^^
SkillHolder cannot be resolved to a type
----------
79. ERROR in \QueenAnt.java (at line 201)
        if (getRandom(3) == 0)
            ^^^^^^^^^
The method getRandom(int) is undefined for the type QueenAnt
----------
80. ERROR in \QueenAnt.java (at line 203)
        if (getRandom(2) == 0)
            ^^^^^^^^^
The method getRandom(int) is undefined for the type QueenAnt
----------
81. ERROR in \QueenAnt.java (at line 215)
        L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_
X, QUEEN_Y, QUEEN_Z, 0, false, 0);
        ^^^^^^^^^^^^^^^^^^^
L2GrandBossInstance cannot be resolved to a type
----------
82. ERROR in \QueenAnt.java (at line 215)
        L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_
X, QUEEN_Y, QUEEN_Z, 0, false, 0);
                                     ^^^^^^^^^^^^^^^^^^^
L2GrandBossInstance cannot be resolved to a type
----------
83. ERROR in \QueenAnt.java (at line 215)
        L2GrandBossInstance queen = (L2GrandBossInstance) addSpawn(QUEEN, QUEEN_
X, QUEEN_Y, QUEEN_Z, 0, false, 0);
                                                          ^^^^^^^^
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type QueenAnt
----------
84. ERROR in \QueenAnt.java (at line 216)
        GrandBossManager.getInstance().setBossStatus(QUEEN, ALIVE);
        ^^^^^^^^^^^^^^^^
GrandBossManager cannot be resolved
----------
85. ERROR in \QueenAnt.java (at line 223)
        public String onSpawn(L2Npc npc)
                              ^^^^^
L2Npc cannot be resolved to a type
----------
86. ERROR in \QueenAnt.java (at line 225)
        final L2MonsterInstance mob = (L2MonsterInstance) npc;
              ^^^^^^^^^^^^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
87. ERROR in \QueenAnt.java (at line 225)
        final L2MonsterInstance mob = (L2MonsterInstance) npc;
                                       ^^^^^^^^^^^^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
88. ERROR in \QueenAnt.java (at line 236)
        _nurses.add(mob);
        ^^^^^^^
L2MonsterInstance cannot be resolved to a type
----------
89. ERROR in \QueenAnt.java (at line 248)
        public String onFactionCall(L2Npc npc, L2Npc caller, L2PcInstance attack
er, boolean isSummon)
                                    ^^^^^
L2Npc cannot be resolved to a type
----------
90. ERROR in \QueenAnt.java (at line 248)
        public String onFactionCall(L2Npc npc, L2Npc caller, L2PcInstance attack
er, boolean isSummon)
                                               ^^^^^
L2Npc cannot be resolved to a type
----------
91. ERROR in \QueenAnt.java (at line 248)
        public String onFactionCall(L2Npc npc, L2Npc caller, L2PcInstance attack
er, boolean isSummon)
                                                             ^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
92. ERROR in \QueenAnt.java (at line 255)
        if (!npc.isCastingNow() && (npc.getAI().getIntention() != CtrlIntention.
AI_INTENTION_CAST))
                                                                  ^^^^^^^^^^^^^
CtrlIntention cannot be resolved to a variable
----------
93. ERROR in \QueenAnt.java (at line 260)
        ((L2Attackable) npc).useMagic(HEAL1.getSkill());
          ^^^^^^^^^^^^
L2Attackable cannot be resolved to a type
----------
94. ERROR in \QueenAnt.java (at line 260)
        ((L2Attackable) npc).useMagic(HEAL1.getSkill());
                                      ^^^^^
SkillHolder cannot be resolved to a type
----------
95. ERROR in \QueenAnt.java (at line 267)
        public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean
isSummon)
                                        ^^^^^
L2Npc cannot be resolved to a type
----------
96. ERROR in \QueenAnt.java (at line 267)
        public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean
isSummon)
                                                   ^^^^^^^^^^^^
L2PcInstance cannot be resolved to a type
----------
97. ERROR in \QueenAnt.java (at line 275)
        final L2Playable character;
              ^^^^^^^^^^
L2Playable cannot be resolved to a type
----------
98. ERROR in \QueenAnt.java (at line 292)
        if (!Config.RAID_DISABLE_CURSE && ((character.getLevel() - npc.getLevel(
)) > 8))
             ^^^^^^
Config cannot be resolved to a variable
----------
99. ERROR in \QueenAnt.java (at line 294)
        L2Skill curse = null;
        ^^^^^^^
L2Skill cannot be resolved to a type
----------
100. ERROR in \QueenAnt.java (at line 324)
        public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
                             ^^^^^
L2Npc cannot be resolved to a type
----------
100 problems (100 errors)AbstractNpcAI cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2Npc cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
L2Npc cannot be resolved to a type
L2PcInstance cannot be resolved to a type
The import ai.npc cannot be resolved
The import com.l2jserver.Config cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
The import com.l2jserver.gameserver cannot be resolved
SkillHolder cannot be resolved to a type
SkillHolder cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2BossZone cannot be resolved to a type
SkillHolder cannot be resolved to a type
SkillHolder cannot be resolved to a type
QuestEventType cannot be resolved to a variable
QuestEventType cannot be resolved to a variable
QuestEventType cannot be resolved to a variable
The method addFactionCallId(int) is undefined for the type ai.individual.QueenAn
t
L2BossZone cannot be resolved to a type
GrandBossManager cannot be resolved
StatsSet cannot be resolved to a type
GrandBossManager cannot be resolved
GrandBossManager cannot be resolved
The method startQuestTimer(java.lang.String, long, null, null) is undefined for
the type ai.individual.QueenAnt
L2GrandBossInstance cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type ai.individual.QueenAnt
GrandBossManager cannot be resolved
L2BossZone cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type ai.individual.QueenAnt
GrandBossManager cannot be resolved
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2BossZone cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2BossZone cannot be resolved to a type
L2BossZone cannot be resolved to a type
GrandBossManager cannot be resolved
The method startQuestTimer(java.lang.String, int, null, null, boolean) is undefi
ned for the type ai.individual.QueenAnt
PlaySound cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
CtrlIntention cannot be resolved to a variable
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
The method getRandomBoolean() is undefined for the type ai.individual.QueenAnt
SkillHolder cannot be resolved to a type
SkillHolder cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
SkillHolder cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2GrandBossInstance cannot be resolved to a type
L2GrandBossInstance cannot be resolved to a type
The method addSpawn(int, int, int, int, int, boolean, int) is undefined for the
type ai.individual.QueenAnt
GrandBossManager cannot be resolved
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
CtrlIntention cannot be resolved to a variable
L2Attackable cannot be resolved to a type
SkillHolder cannot be resolved to a type
L2Playable cannot be resolved to a type
Config cannot be resolved to a variable
L2Skill cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
SkillTable cannot be resolved
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
SkillTable cannot be resolved
MagicSkillUse cannot be resolved to a type
L2Attackable cannot be resolved to a type
PlaySound cannot be resolved to a type
GrandBossManager cannot be resolved
Config cannot be resolved to a variable
Config cannot be resolved to a variable
Config cannot be resolved to a variable
The method startQuestTimer(java.lang.String, long, null, null) is undefined for
the type ai.individual.QueenAnt
The method cancelQuestTimer(java.lang.String, null, null) is undefined for the t
ype ai.individual.QueenAnt
StatsSet cannot be resolved to a type
GrandBossManager cannot be resolved
GrandBossManager cannot be resolved
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
The method getRandom(int) is undefined for the type ai.individual.QueenAnt
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
L2MonsterInstance cannot be resolved to a type
Failed executing script: C:\Users\SudoAnonymous\Desktop\l2 gracia servers\L2j wa
tchdogs pack\GameServer\data\scripts\ai\individual\QueenAnt.java. See QueenAnt.j
ava.error.log for details.

some help with this? -.- i think all ai scripts are destroyed.. (90% of errors are posted as cannot be resolved to a type)

Edited by MouzasSierra117

6 answers to this question

Recommended Posts

  • 0
Posted

Wrong imports, verfiy other scripts imports to get the correct writing (looks like only QueenAnt is bugged). If it's on more scripts, then you screwed somewhere (either compilation time hs been corrputed or packages are different).

  • 0
Posted (edited)

Wrong imports, verfiy other scripts imports to get the correct writing (looks like only QueenAnt is bugged). If it's on more scripts, then you screwed somewhere (either compilation time hs been corrputed or packages are different).

 

so all these errors comming from qa boss files? do you have any svn for final gracia?

Edited by MouzasSierra117
  • 0
Posted

Scripts didn't change that much since that time, and yup from what you posted it's only QueenAnt.

i fixed most and i am taking this error with Valakas this time... the errors were almost 100 o.O' now i left them on 5.. some help? and some solutions i can try?

Loading Server Scripts
----------
1. WARNING in \Valakas.java (at line 1256)
        {
                        if (timer != null)
                                timer.cancel();
                        return;
                }
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
2. WARNING in \Valakas.java (at line 1275)
        startQuestTimer("1003", 500, npc, null, true);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
3. WARNING in \Valakas.java (at line 1292)
        startQuestTimer("1003", 500, npc, null, true);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
3 problems (3 warnings)----------
1. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEffects.java (at line 479)
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
2. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEffects.java (at line 545)
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
3. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEffects.java (at line 581)
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dead code
----------
----------
4. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\admincommandhandlers\AdminEventEngine.java (at line 107)
        BufferedReader inbr = new BufferedReader(new InputStreamReader(in));
                       ^^^^
Resource leak: 'inbr' is never closed
----------
----------
5. WARNING in C:\Users\Sudo Anonymous\Desktop\L2j watchdogs pack\GameServer\data\scripts\handlers\itemhandlers\SummonItems.java (at line 127)
        return;
        ^^^^^^^
Dead code
----------
5 problems (5 warnings)Loading Handlers...

i am taking them as wornings but it gives them in the end as dead codes... how can i fix these.. lol i am mad..

  • 0
Posted (edited)

You can remove them, since it's a dead code. Or you removed some lines which made it dead code, that means you messed a bit.

Edited by SweeTs
  • 0
Posted (edited)

You can remove them, since it's a dead code. Or you removed some lines which made it dead code, that means you messed a bit.

if i remove them i wont have problems with item handlers and admincommand handlers? i didnt remove any lines of it. its doing this since i copied the pack from my backup drive.. i took the files of a compiled version and it does it still. can you find me the correct codes to replace them and upload them plz? i will be thkfull for it! i need these

Edited by MouzasSierra117

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • GoldRush launches tomorrow! July 18 16:00 GMT+3 Europe / International Register your account in the website, connect wallet and be ready to dominate!
    • 🏰 L2EXALTA LEGACY — Interlude x45 📅 Grand Opening: 31/07/2026 — 21:30 (GMT+3) 🌐 Website: https://l2exalta.org/ 💬 Discord: https://discord.gg/zNTCZD4AcT 📌 Wiki: https://l2exalta.org/en/wiki.html#progression   ⚙️ MAIN INFO Chronicle : Interlude Rates : x45 Adena : x50 Spoil : x1 Drop : x5 Safe Enchant : +3 Files : L2OFF   💰 ECONOMY EX Coin : dynamic market currency, mined from monsters, Raid Bosses and Grand Bosses value fluctuates over time Exalta Vouchers : premium currency used for store, donations and EX Coin exchange Exchange : convert EX Coin into Exalta Vouchers Investment options : choose safer or riskier market strategies with EX Coin   ⚔️ PROGRESSION & GEAR Exalta Armors : signature top-tier gear line Forge System : upgrade weapons, armor and jewels with risk/reward mechanics Raid Boss progression tied to materials and prestige   🤖 AUTOFARM Access : Auto Hunting button, bottom-right UI Duration : controlled via tickets or in-game currency Route Mode : record custom farm routes Support Mode : healer/support builds auto-follow, heal and assist party Smart targeting logic with class-specific behavior (mage/archer/melee/support) Captcha designed not to interrupt legitimate AutoFarm sessions   🧪 BUFFER Exalta Buffer NPC/interface Scheme Buffer : save multiple buff loadouts Class presets for mage, fighter, support, PvP   🛠️ SMART GADGETS / QOL Autoloot filter Drop value tracker Boss timer tools Farm stats tracker Auto-consume system In-game server assistant   🗺️ DUNGEON FINDER / PVE Party matching with roles (Tank / Healer / DPS) Ready-check before teleport Monastery of Silence custom PvE zone Party-based reward structure   🎟️ DAILY PROGRESS / EXALTA PASS Daily and weekly tasks (farm, PvP, boss, check-in) Premium Pass track with extra rewards Monastery Daily Quest Reward boards for claiming progress   🏠 HOUSING & EXPEDITIONS Player residences with service NPCs Exalta Spirit Expeditions to themed territories Rewards vary by territory Owner-only access   🏆 PVP / TOURNAMENT Scheduled Tournament system Ranking points from wins/participation Spectator Mode for watching live matches PvP Statues for top-ranked players Anti-feed protections   🛡️ CLAN CONTENT Clan Civil War battlefield event Clan Dungeon Raid content DPS Meter for contribution tracking Support Credit system Classic siege/clan politics preserved   🏪 AUCTION / SHOPS Auction House with seller fee Black Market Dealer (limited-time special offers) Custom shops and multisells Confirmation prompts on purchases/sales   💳 DONATIONS / VIP Donation rewards linked to Exalta Vouchers VIP tiers with comfort/cosmetic bonuses Premium store Gift/promo codes for events   🎥 STREAMER / COMMUNITY Streamer Panel with visible stream links Viewer rewards system Streamer Points for cosmetics/vouchers In-game voice chat (global/party/clan/alliance/command)   🔒 FAIR PLAY Strong Anti-Bot protection Reward protection tied to valid client state Captcha on suspicious activity Staff investigation tools No bots, packet tools or modified clients allowed   👑 GRANDBOSS SPAWNS Orfen : 1 day + 1h random Core : 1 day + 1h random Queen Ant : 1 day 6h + 1h random Zaken : 2 days 12h + 1h random Baium : 5 days + 1h random Antharas : 8 days + 1h random Valakas : 11 days + 1h random   🏅 OLYMPIAD Runs Thursday, Friday, Saturday Heroes change monthly Balanced and fair matchmaking
    • yup basically another one just in case https://drive.google.com/file/d/1UtccbD9e50x3WEnQBab2PTZnBHwpcGYM/view?usp=sharing LineageWarrior.FMagic (CollideActors = True; > False) LineageWarrior.FOrc (CollideActors = True; > False) LineageWarrior.FShaman (CollideActors = True; > False) LineageWarrior.MDarkElf (CollideActors = True; > False) LineageWarrior.MDwarf (CollideActors = True; > False) LineageWarrior.MElf (CollideActors = True; > False) LineageWarrior.MFighter (CollideActors = True; > False) LineageWarrior.MMagic (CollideActors = True; > False) LineageWarrior.MOrc (CollideActors = True; > False) LineageWarrior.MShaman (CollideActors = True; > False) LineageWarrior.FDwarf (CollideActors = True; > False) LineageWarrior.FElf (CollideActors = True; > False) LineageWarrior.FFighter (CollideActors = True; > False)
    • @l2naylondev Requiring a player to log in just for the sake of logging  seems exploitable. Someone could log in only to claim the reward and immediately leave, or repeatedly change their ip. So i guess  are there are additional protections in place ? such as locking the reward by account, character , and ip. It would also be useful to add a playtime requirement. For example, after logging in, the player would need to remain active for at least x playtime  before getting the reward or other parameters configurable by the xml.  I suggest improving the system before selling it. 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..