Jump to content
  • 0

[Help] Skills etc...


Question

9 answers to this question

Recommended Posts

  • 0
Posted

How make then you go into example primeval island you can't use bishop heal or other heal and gain auto noblesse?

Thanks for help!!!

make a new zone,with primeval coordinates.

and then,insert here

protected void onEnter(L2Character character)
{
//noble code here
}

 

about heal thingy,

one way is to remove every heal from every class/char when they enter in the zone.

 

be aware,

you have to add them again when they exit,here

protected void onExit(L2Character character)
{
//code for re-adding heal skill(s)
}

 

hope I helped.

  • 0
Posted

you helped, but i don't know how add noble skill and remove heal skill

 

//noble code here

//code for re-adding heal skill(s)

come on :P

 

search in your source for the methods,you shoulda start doin' something alone.

 

it's not that hard,especially if you own a server.

  • 0
Posted

i now how open search, but i don't know where search about these skills, please say where search about auto nobles and no heal skills...

As far I see you dont a shit about java :P no problems,but don't try to open a server with 0 knowledge.

 

read guides,there are a shit load of them everywhere(in forum,in l2j's forum,in google) start practisin' and then open a server..

  • 0
Posted

i now how open search, but i don't know where search about these skills, please say where search about auto nobles and no heal skills...

L2J is 20% java knowledge and 80% project exploration. Unfortunately project exploration can't be learnt, you need curiosity and patience for that.

 

If you know what and where to search, you will be victorious, on any case.

 

Be curious, and use your brain to find existing example of what you want to do. All is already existing on the source. You will find at least one case of what you want to do. If not, your idea is just too much complex and/or you need a core layer you will have to code yourself.

 

Without any Java knowledge, you can begin to understand things between 1 to 3 months. Between 3 and 6 months you got already a good overview of the project.

 

You can't compress the time, there isn't many solutions :

- you take a lot of time on duration (need months)

- you're a bookworm and work on it whenever you got free time (I personally code 10 to 15h per day some days).

  • 0
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 2, 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/

package com.l2jfrozen.gameserver.model.zone.type;

import java.util.concurrent.Future;

import com.l2jfrozen.gameserver.datatables.SkillTable;
import com.l2jfrozen.gameserver.model.L2Character;
import com.l2jfrozen.gameserver.model.L2Skill;
import com.l2jfrozen.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
import com.l2jfrozen.gameserver.model.zone.L2ZoneType;
import com.l2jfrozen.gameserver.thread.ThreadPoolManager;
import com.l2jfrozen.util.random.Rnd;

public class L2PoisonZone extends L2ZoneType
{
protected int _skillId;
private int _chance;
private int _initialDelay;
protected int _skillLvl;
private int _reuse;
private boolean _enabled;
private String _target;
private Future<?> _task;

public L2PoisonZone(int id)
{
	super(id);
	_skillId = 1323;
	_skillLvl = 1;
	_chance = 100;
	_initialDelay = 0;
	_reuse = 30000;
	_enabled = true;
	_target = "pc";
}

@Override
public void setParameter(String name, String value)
{
	if(name.equals("skillId"))
	{
		_skillId = Integer.parseInt(value);
	}
	else if(name.equals("skillLvl"))
	{
		_skillLvl = Integer.parseInt(value);
	}
	else if(name.equals("chance"))
	{
		_chance = Integer.parseInt(value);
	}
	else if(name.equals("initialDelay"))
	{
		_initialDelay = Integer.parseInt(value);
	}
	else if(name.equals("default_enabled"))
	{
		_enabled = Boolean.parseBoolean(value);
	}
	else if(name.equals("target"))
	{
		_target = String.valueOf(value);
	}
	else if(name.equals("reuse"))
	{
		_reuse = Integer.parseInt(value);
	}
	else
	{
		super.setParameter(name, value);
	}
}

@Override
protected void onEnter(L2Character character)
{
	if((character instanceof L2PlayableInstance && _target.equalsIgnoreCase("pc") || character instanceof L2PcInstance && _target.equalsIgnoreCase("pc_only") || character instanceof L2MonsterInstance && _target.equalsIgnoreCase("npc")) && _task == null)
	{
		_task = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new ApplySkill(/*this*/), _initialDelay, _reuse);
	}
}

@Override
protected void onExit(L2Character character)
{
	if(_characterList.isEmpty() && _task != null)
	{
		_task.cancel(true);
		_task = null;
	}
}

public L2Skill getSkill()
{
	return SkillTable.getInstance().getInfo(_skillId, _skillLvl);
}

public String getTargetType()
{
	return _target;
}

public boolean isEnabled()
{
	return _enabled;
}

public int getChance()
{
	return _chance;
}

public void setZoneEnabled(boolean val)
{
	_enabled = val;
}

/*protected Collection getCharacterList()
{
    return _characterList.values();
}*/

class ApplySkill implements Runnable
{
//		private L2PoisonZone _poisonZone;

//		ApplySkill(/*L2PoisonZone zone*/)
//		{
//			_poisonZone = zone;
//		}

	@Override
	public void run()
	{
		if(isEnabled())
		{
			for(L2Character temp : _characterList.values())
			{
				if(temp != null && !temp.isDead())
				{
					if((temp instanceof L2PlayableInstance && getTargetType().equalsIgnoreCase("pc") || temp instanceof L2PcInstance && getTargetType().equalsIgnoreCase("pc_only") || temp instanceof L2MonsterInstance && getTargetType().equalsIgnoreCase("npc")) && Rnd.get(100) < getChance())
					{
						L2Skill skill = null;
						if((skill=getSkill())==null){
							System.out.println("ATTENTION: error on zone with id "+getId());
							System.out.println("Skill "+_skillId+","+_skillLvl+" not present between skills");
						}else
							skill.getEffects(temp, temp,false,false,false);
					}
				}
			}
		}
	}
}

@Override
public void onDieInside(L2Character l2character)
{}

@Override
public void onReviveInside(L2Character l2character)
{}
}

 

i maked then you enter gain auto nobless but how make example you can't use Greater Battle Heal? Thanks for help!

Guest
This topic is now closed to further replies.


  • Posts

    • https://www.4shared.com/s/fyGGySJVvfa  
    • SOCNET STORE — is a unique place where you can find everything you need for your work on the Internet!   We offer the following range of products and services: Verified accounts with blue tick marks and confirmed documents in Instagram, Facebook, Twitter (X), LinkedIn; Gift cards and premium subscriptions for your services (Instagram Meta, Facebook Meta, Discord Nitro, Telegram Premium, YouTube Premium, Spotify Premium, ChatGPT, Netflix Premium, LinkedIn Premium, Twitter Premium, etc.); Telegram bot for purchasing Telegram Stars with a minimum markup with automatic delivery; Replenishment of your advertising accounts (in TikTok ADS, Facebook ADS, Google ADS, Bing ADS) + linking a bank card; Payment for any other service or subscription with a markup from 5 to 25% (depending on the cost of the subscription) Available payment methods: via PayPal, any cryptocurrency (+Binance Pay), Telegram Stars, Cash App, or any bank card.    Our online store  SOCNET.STORE  Our Telegram Stars Bot  SOCNET.CC  Our SMM-Panel for social media promotion  SOCNET.PRO  Telegram store  SOCNET.SHOP    News:  ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server  Contacts and support:  ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: solomonbog@socnet.store We have been operating for a long time and have gathered a huge list of reviews about our work! Our large list of positive and honest reviews is presented on our website!   VERIFIED ACCOUNTS    Verified old Instagram Meta account (2010-2020) with an active blue checkmark | Subscription has already been paid for 1 month in advance, account confirmed by documents: from $70 Verified old Facebook Meta account (2010-2023) with an active blue checkmark | Subscription has already been paid for 1 month in advance, account confirmed by documents: from $70 Verified Linkedin account (2010-2024) with an active checkmark and confirmed documents | Checkmark does not require renewal: from $80 Verified old Twitter (X) account (2010-2022) with an active blue checkmark | GEO: Tier 1-3 (your choice) | Subscription has already been paid for 1 month in advance: from $16    TELEGRAM STARS    Telegram Stars | 1 star from $0.0175 | Discounts for bulk orders | Delivery within 1-2 minutes automatically    GIFT SERVICES & PREMIUM SUBSCRIPTIONS  DISCORD NITRO Discord Nitro Classic (Basic) GIFT | 1/12 MONTHS | NO LOGIN OR PASSWORD NEEDED | Full subscription guarantee | Price from: $3.15 Discord Nitro FULL | 1/12 MONTHS | NO LOGIN OR PASSWORD NEEDED | Full subscription guarantee | Price from: $6.8 SPOTIFY PREMIUM Individual Spotify Premium plan for 1 month ON YOUR ACCOUNT | Available worldwide | Price from: $2.49 Family Spotify Premium plan for 1 month ON YOUR ACCOUNT | Works in any country | Price from: $3.75 Personal YouTube Premium Music on your account | 1 month | Ad-free YouTube | Price from: $3.75 Family YouTube Premium Music on your account | 1 month | Ad-free YouTube | Price from: $4.35 TELEGRAM PREMIUM Telegram Premium subscription for 1 month on your account | Authorization required (via TDATA or phone number) | Price from: $6 Telegram Premium subscription for 3 months on your account | No account authorization required | Guaranteed for full period | Price from: $17 Telegram Premium subscription for 6 months on your account | No account authorization required | Guaranteed for full period | Price from: $22 Telegram Premium subscription for 12 months on your account | No account authorization required | Guaranteed for full period | Price from: $37 GOOGLE VOICE • Google Voice Accounts (GMAIL US NEW) | Age/Year: Random 2024 | Phone Verified: Yes | Price from: $13 TWITTER(X) PREMIUM • Twitter Premium X subscription on your Twitter account for 1 month/1 year (your choice). Authorization in your Twitter account is required. Price from: $13 per month • Twitter X Premium Plus subscription with GROK AI on your Twitter account for 1 month/1 year (your choice). Authorization in your Twitter account is required. Price from: $55 NETFLIX PREMIUM • Netflix Premium subscription for 1 month on your personal account for any country, renewable after expiration | Price from: $10 CANVA PRO • CANVA PRO subscription for 1 month via invitation to your email | Price from: $1 CHATGPT 5 • Shared ChatGPT 5 Plus account FOR 2/5 USERS | Price from: $5 / $10 • Group ChatGPT 5 Plus subscription on your own email address for 1 month | Price from: $5 • Personal ChatGPT 5 Plus account FOR 1 USER or CHAT GPT PLUS subscription on your own account | Price from: $18 • ChatGPT 5 PRO account with UNLIMITED REQUESTS | Dedicated personal account FOR 1 USER ONLY or ON YOUR ACCOUNT | Works in any country or region | Price from: $220 Payment for any other subscription and replenishment of advertising accounts: Additional 5–20% to the cost of the subscription on the site or to the replenishment amount depending on the total purchase amount.   Attention: This text block does not represent our full product range; for more details, please visit the relevant links below! If you have any questions, our support team is always ready to help!       Our online store  SOCNET.STORE  Our Telegram Stars Bot  SOCNET.CC  Our SMM-Panel for social media promotion  SOCNET.PRO  Telegram store  SOCNET.SHOP    News:  ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server  Contacts and support:  ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: solomonbog@socnet.store We have been operating for a long time and have gathered a huge list of reviews about our work! Our large list of positive and honest reviews is presented on our website!  10% – 20% Discount or $1 BONUS for your registration  If you’d like to receive a $1 BONUS for your registration OR a DISCOUNT of 10% – 20% on your first purchase, simply leave a comment: "SEND ME MY BONUS, MY USERNAME IS..." You can also use the ready promo code across all our stores: "SOCNET" (15% discount!)  We invite you to COOPERATE and EARN with us  Want to sell your product or service in our stores and earn money? Want to become our partner or propose a mutually beneficial collaboration? You can contact us through the CONTACTS listed in this thread. Frequently Asked Questions and Refund Policy If you have any questions or issues, our fast customer support is always ready to respond to your requests! Refunds for services that do not fully meet the stated requirements or quality will only be issued if a guarantee and duration are explicitly mentioned in the product description. In all other cases, refunds will not be fully processed! By purchasing such services, you automatically agree to our refund policy for non-provided services. We currently accept CRYPTOMUS, Payeer, NotPayments, Perfect Money, Russian and Ukrainian bank cards, AliPay, BinancePay, CryptoBot, credit cards, and PayPal. The $1 registration bonus can only be used for purchases and only once after your first registration in any SOCNET project. We value every customer and provide replacements in case of invalid accounts through our contact methods! p.s.: Purchase bonuses can be used across any SOCNET projects: web store or Telegram bots.
  • 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