Jump to content

Recommended Posts

  • 3 years later...
Posted (edited)

help plz

 

rev 390

 

    [javac] C:\Users\alex\eclipse-workspace\aCis\a\aCis_gameserver\java\net\sf\l2j\gameserver\scripting\scripts\custom\BarakielNobless.java:20: error: cannot find symbol
    [javac]             for (Player members: player.getParty().getPartyMembers()) {
    [javac]                                                   ^
    [javac]   symbol:   method getPartyMembers()
    [javac]   location: class Party
    [javac] C:\Users\alex\eclipse-workspace\aCis\a\aCis_gameserver\java\net\sf\l2j\gameserver\scripting\scripts\custom\BarakielNobless.java:21: error: cannot find symbol
    [javac]                 if (!members.isInsideRadius(npc, 2000, false, false)) {
    [javac]                             ^
    [javac]   symbol:   method isInsideRadius(Npc,int,boolean,boolean)
    [javac]   location: variable members of type Player
    [javac] 2 errors

Edited by nonikisl
Posted (edited)

heeelpp((
 

package net.sf.l2j.gameserver.scripting.scripts.custom;

import net.sf.l2j.gameserver.model.actor.Npc;
import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.scripting.Quest;

public class BarakielNobless extends Quest {
    public BarakielNobless() {
        super(-1, "custom");

        addKillId(25325);
    }

    public String onKill(Npc npc, Player player, boolean isPet) {
        if (player.getParty() != null) {
            for (Player members: player.getParty().getPartyMember()) {
                (!members.isInsideRadius(npc, 2000, false, false)) {
                	members.sendMessage("You Was On Wrong Place");
                    continue;
                }
                if (!members.isNoble()) {
                	members.setNoble(true, true);
                    members.getInventory().addItem("Noblesse Tiara", 7694, 1, members, null);
                    members.sendMessage("You Are Noblesse now.");
                } else {
                	members.sendMessage("You already Noblesse.");
                }

                members.broadcastUserInfo();
            }
        }

        return null;
    }

    public static void main(String args[]) {
        new BarakielNobless();
    }
}

 

Edited by nonikisl
Posted
6 minutes ago, nonikisl said:

heeelpp((
 


package net.sf.l2j.gameserver.scripting.scripts.custom;

import net.sf.l2j.gameserver.model.actor.Npc;
import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.scripting.Quest;

public class BarakielNobless extends Quest {
    public BarakielNobless() {
        super(-1, "custom");

        addKillId(25325);
    }

    public String onKill(Npc npc, Player player, boolean isPet) {
        if (player.getParty() != null) {
            for (Player members: player.getParty().getPartyMember()) {
                if (!members.Position(npc, 2000, false, false)) {
                	members.sendMessage("You Was On Wrong Place");
                    continue;
                }
                if (!members.isNoble()) {
                	members.setNoble(true, true);
                    members.getInventory().addItem("Noblesse Tiara", 7694, 1, members, null);
                    members.sendMessage("You Are Noblesse now.");
                } else {
                	members.sendMessage("You already Noblesse.");
                }

                members.broadcastUserInfo();
            }
        }

        return null;
    }

    public static void main(String args[]) {
        new BarakielNobless();
    }
}

 

what kind of help do you want?

Posted (edited)
8 minutes ago, Zake said:

какую помощь ты хочешь?

can't fix methods 390rev

    [javac] C:\Users\alex\eclipse-workspace\aCisX\a\aCis_gameserver\java\net\sf\l2j\gameserver\scripting\scripts\custom\BarakielNobless.java:16: error: cannot find symbol
    [javac]             for (Player members: player.getParty().getPartyMember()) {
    [javac]                                                   ^
    [javac]   symbol:   method getPartyMember()
    [javac]   location: class Party
    [javac] C:\Users\alex\eclipse-workspace\aCisX\a\aCis_gameserver\java\net\sf\l2j\gameserver\scripting\scripts\custom\BarakielNobless.java:17: error: cannot find symbol
    [javac]                 if (!members.isInsideRadius(npc, 2000, false, false)) {
    [javac]                             ^
    [javac]   symbol:   method isInsideRadius(Npc,int,boolean,boolean)
    [javac]   location: variable members of type Player
    [javac] 2 errorss

Edited by nonikisl
Posted
5 minutes ago, nonikisl said:

can't fix methods 390rev

    [javac] C:\Users\alex\eclipse-workspace\aCisX\a\aCis_gameserver\java\net\sf\l2j\gameserver\scripting\scripts\custom\BarakielNobless.java:16: error: cannot find symbol
    [javac]             for (Player members: player.getParty().getPartyMember()) {
    [javac]                                                   ^
    [javac]   symbol:   method getPartyMember()
    [javac]   location: class Party
    [javac] C:\Users\alex\eclipse-workspace\aCisX\a\aCis_gameserver\java\net\sf\l2j\gameserver\scripting\scripts\custom\BarakielNobless.java:17: error: cannot find symbol
    [javac]                 if (!members.isInsideRadius(npc, 2000, false, false)) {
    [javac]                             ^
    [javac]   symbol:   method isInsideRadius(Npc,int,boolean,boolean)
    [javac]   location: variable members of type Player
    [javac] 2 errorss

A "cannot find symbol" error means that the code you're trying to put refers to something that your compiler doesn't understand. In this case, probably getParty() or getPartyMember() method may be missing. If you're using eclipse it's easy to spot a possible name-change or rework of this method, if though you're not familiar, you should check acis changeset.

Posted
3 minutes ago, Zake said:

Ошибка «не удается найти символ» означает, что код, который вы пытаетесь вставить, ссылается на то, чего не понимает ваш компилятор. В этом случае, вероятно, метод getParty () или getPartyMember () может отсутствовать. Если вы используете eclipse, легко заметить возможное изменение имени или переделку этого метода, но если вы не знакомы, вам следует проверить набор изменений acis.

can you fix it? I will be very grateful

Posted
6 minutes ago, nonikisl said:

can you fix it? I will be very grateful

in acis 382 it should be player.getParty().getMembers()

i don't have 390 so i can't give you any further help. Although there is a possible NPE at this part of code, there should be a null check for the killer's party.

Posted
1 minute ago, Zake said:

в acis 382 это должен быть player.getParty (). getMembers ()

У меня нет 390, поэтому я не могу дать вам дальнейшую помощь. Хотя в этой части кода есть возможный NPE, для стороны убийцы должна быть нулевая проверка.

https://mmo-dev.info/resources/acis-390-last-update.1732/ (not advertising
)

Posted
1 hour ago, nonikisl said:

I'm not downloading this sorry, i already told you which part to modify, if you have any issues just post them. Although i don't think that you're allowed to use such sources, even if you are i kinda suggest you to go back to 382 or try the latest one.

  • 2 weeks later...
Posted
/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
* You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.l2j.gameserver.scripting.scripts.custom;

import net.sf.l2j.gameserver.model.actor.Creature;
import net.sf.l2j.gameserver.model.actor.Npc;
import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.scripting.Quest;

public class BarakielNobless extends Quest
{
	public static void main(String args[])
	{
		new BarakielNobless();
	}

	public BarakielNobless()
	{
		super(-1, "custom");

		addKillId(25325);
	}

	@Override
	public String onKill(Npc npc, Creature killer)
	{
		if (killer.getParty() != null)
		{
			for (Player members : killer.getParty().getMembers())
			{
				if (!members.isIn3DRadius(npc, 2000))
				{
					members.sendMessage("You were too far away from Barakiel. You've missed the chance of becoming Noblesse!");
					continue;
				}
				if (members.isNoble())
				{
					members.sendMessage("You are already Noblesse!");
					continue;
				
				}
				if (!members.isNoble())
				{
					members.setNoble(true, true);
					members.getInventory().addItem("Noblesse Tiara", 7694, 1, members, null);
					members.sendMessage("Congratulations! All party members have obtained Noblesse Status");
					members.broadcastUserInfo();
				}
			}
		}
		return null;
	}
}

For rev. 393

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

    • That domainn tho :_D
    • Perfect way to experience L2 without the brutal official grind. The progression here is so much smoother and faster, you get to the fun PvP and epic raids way quicker. The custom stuff keeps it fresh too. Definitely worth diving into!
    • L2-Getwork server highly customized with high-stats https://l2server.eu/ https://discord.gg/SsVhm7R Rates: L2 High Five fully customized Getwork Style with High Stats and Enchant ExP/Sp: 75x (custom) Drop/Spoil: 1x (custom) Safe: 500 Max: 50 000   Enchant System: Normal Scrolls: 93% - fail - decrease enchant by 20 Blessed Scrolls: 96% - fail - decrease enchant by 10   Armor Max Enchant D-Grade: +1000 Max Enchant C-Grade: +2000 Max Enchant B-Grade: +3000 Max Enchant A-Grade: +4000 Max Enchant S-Grade: +5000   Weapons Max Enchant D-Grade: +5000 Max Enchant C-Grade: +10000 Max Enchant B-Grade: +15000 Max Enchant A-Grade: +20000 Max Enchant S-Grade: +25000 - 50000   Fir Tree Branch (Weapon): +100 into Weapons (max 50 000) Fir Tree Branch (Armor): +15 into Armor (max 5000) Road to Dvc Cloak Enchant: +1 into cloak (max +1000) Masks of Spirit/Demon Horns Enchants: +1 into Masks (max +10) Each accessories has different max enchant and chances Daily Missions (.missions) Collections (ALT + B) Gambling System(.gamble) - each pack cost different amount Gamble Points, different items How to get gambling points? - by killing Raid Bosses/Events or Completing Daily Missions. Clan Bonus VIP Bonuses (maximum level 10) Battlepass (maximum level 100) - by killing monsters Rebirth (starting in Parnassus) Everything in ALT+B Master's Buffs - 100 Small Glass Box (1 buff) Farm Zones: Custom Farm Zones: Ruin of Agony (Exp Zone) Underground Coliseum (Safe Exp Zone) DVC,Brigand,Frost are similiar farm zones with same monsters Dvc Brigand Stronghold Frost Lake Parnassus - TOP ZONE some of our features: .gamble,collections,battlepass,talent tree, rebirth        
    • https://www.mediafire.com/file/l905r1sd84hnovf/FileEdit.rar/file
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock