Jump to content

Recommended Posts

Posted

Requested σε pm και ειπα να το κανω share,ισως το θελει καποιος.

Ενα απλο npc που οποιος παιχτης παει διπλα του τον κανει heal αυτοματα χωρις target , τπτ.Επισης οποιος δει τον κωδικα και απορει αν ο κωδικας μπορει να φερει lag , η απαντηση ειναι ΟΧΙ και ο λογος ειναι οτι χιλιαδες tasks τρεχουν την ιδια ωρα.Σκεφτειτε οτι το baium κανει ανα 1-2 δευτερολεπτο actions που χρησιμοποιουν tasks.Αρα δεν υπαρχει προβλημα..

 

Type στο navicat: L2Healer

 

/*
* 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.model.actor.instance;

import java.util.concurrent.ScheduledFuture;

import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.serverpackets.MagicSkillUser;
import net.sf.l2j.gameserver.templates.L2NpcTemplate;

/**
* @author irat
*
*/
public class L2HealerInstance extends L2NpcInstance
{

private ScheduledFuture<?> _aiTask;

public L2HealerInstance(int objectId, L2NpcTemplate template)
{
	super(objectId, template);

	if (_aiTask != null)
            _aiTask.cancel(true);

    _aiTask = ThreadPoolManager.getInstance().scheduleAiAtFixedRate(new Heal(this), 3000, 3000);
}

public void deleteMe()
    {
       if (_aiTask != null)
        {
           _aiTask.cancel(true);
           _aiTask = null;
        }
    }

private class Heal implements Runnable
    {
        private L2HealerInstance _heal;

        protected Heal(L2HealerInstance caster)
        {
            _heal = caster;
        }

        public void run()
        {
        	L2Skill skill = SkillTable.getInstance().getInfo(1218, 1);
          for (L2PcInstance player : getKnownList().getKnownPlayersInRadius(100))
          {
                   if(player == null)
                	   continue;
                  
                 player.sendPacket(new MagicSkillUser(player, player, 1218, 1, skill.getHitTime(),0));
                 player.setCurrentHp(player.getMaxHp());
                 player.setCurrentCp(player.getMaxCp());
                 player.setCurrentMp(player.getMaxMp());
          }
      }
    }
}

 

 

Posted

Ti tha ginei omos ama poli pextes pali oloi mazi sto npc?Epeishs kalo tha itan na valeis kai merika restriction ;)

Posted

Ti tha ginei omos ama poli pextes pali oloi mazi sto npc?Epeishs kalo tha itan na valeis kai merika restriction ;)

restriction μπορει να βαλει ο καθενας πιστευω , απλα αυτο ειναι το βασικο δηλαδη το σημαντικο μερος.
  • 3 weeks later...
  • 2 weeks later...

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

    • TELEGRAM SEO TRAINING (Bot Ranking in Search) I teach a complete system for ranking Telegram bots at the top of search results by keywords and countries. The method works for services, shops, crypto projects, and any type of Telegram bot. You can also direct the traffic to your groups, channels, websites, or sales funnels. ⸻  Countries I work with USA, Israel, Russia, India, Turkey, China, Ukraine, Uzbekistan. If you need another country — message me, we’ll find a solution. ⸻ ️ Results First search results appear in 2–3 days. ⸻  What’s included in the training • how the Telegram search algorithm works and key ranking factors • keyword research for your country and niche • bot optimization: description, settings, greeting text • fixing and maintaining positions • specific promotion nuances for different countries ⸻  What you will receive • a complete system for ranking bots in search • understanding how to work with keywords, traffic, and positions • a skill you can use to promote your own projects or earn from clients ⸻  Who this training is for • beginners with zero experience — I explain everything from scratch • those who don’t have a bot — I provide a ready one for practice • anyone who wants to learn promotion and earn from this service ⸻  Why learn from me • doing Telegram SEO since 2021 • over 1000 successful orders • my own panel SMMTG.PRO and private databases • experience working with markets of Russia, Uzbekistan, Ukraine, Israel, USA, Turkey, China, India, Vietnam, Europe, and more ⸻  For pricing — message me t.me/smmtg_link
    • Hey everyone, I was wondering if anyone knows where the client loads all the .dat files. Is there some kind of manifest or list you can specify which dat files the client loads?
    • 🔥 Welcome to Lineage 2 Haruna x3 – True Classic Interlude Experience 🔥 At Haruna x3, we’re bringing back the true essence of Interlude – slow, meaningful progression where every level matters, every item has value, and PvP is real. We’re not about fast servers, pay-to-win advantages, or fake populations. Our goal is simple: create a fair, stable, and long-term server where players can enjoy real competition, strategic clan warfare, and the thrill of open-world PvP. 💎 What Makes Haruna x3 Special? x3 Rates – Perfect for steady, rewarding progression Classic Interlude Mechanics – Relive the nostalgia of Interlude Stable & Lag-Free Gameplay – Optimized for thousands of players online Fair & Balanced – No pay-to-win, every victory is earned PvP & Clan Warfare Focused – Every battle counts 🌟 Quality of Life Features to Enhance Your Experience We keep the classic feel while adding features that make the game more convenient and enjoyable, including: Shift + Click to view monster droplists Free item mail and buy/sell via Adena Daily login rewards & Stream Rewards ALT+K Skill Panel & Alt+Click buffs removal Offline shop system Captcha for security Donate Coins currency (cannot be traded, dropped, or destroyed) Classic P110 client – no custom interface 🏰 Our Philosophy We believe Lineage 2 is about the journey, not just the destination. Haruna x3 is designed for months and years of growth, not weeks. We provide a community-driven environment where honest gameplay, fair competition, and strategic teamwork are at the forefront. 🌍 Join Our Community Whether you’re a veteran of Interlude or a returning player seeking a true classic experience, Haruna x3 offers a place to fight, trade, and grow alongside dedicated players. Step into the world of Haruna x3 – where every decision matters, every fight counts, and every victory is yours to earn. Discord: https://discord.gg/7DDC9Dsxnh Website : www.l2haruna.com
    • No, the real purpose is cheating and custom  development for games.  I'm building a custom AI moderator specially for checking illegal activity and flag current topica.
  • 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