Jump to content
  • 0

Question

Posted

plz mporei kapios na me kanei 1 java core olokliromeno kai na me pei pou ton vazw klp akrivos plz an ginete. o code na lei oti otan enas pektis pataei change subclass kai ine se combat na min ginete na alaksei. perimenw gyes..plz ine anagi

5 answers to this question

Recommended Posts

  • 0
Posted

hmm, giati den bazeis ton "Subclass master" se ena meros p na mhn exei mob? h na katebaseis enan "subclass master" p na mhn mporeis na tou miliseis otan eisai se combat? h ean ksereis na ftiakseis ena script sta "quests/custom" p na mhn mporeis na miliseis ston npc otan eisai se combat?

  • 0
Posted

hmm, giati den bazeis ton "Subclass master" se ena meros p na mhn exei mob? h na katebaseis enan "subclass master" p na mhn mporeis na tou miliseis otan eisai se combat? h ean ksereis na ftiakseis ena script sta "quests/custom" p na mhn mporeis na miliseis ston npc otan eisai se combat?

gi auto se lew thelo to code re file eleos..apla kante mou to code min rotate giati...ine 1 bug . opou kai na ine fernoun mobs apo ketra gia paradigma mexri goddard..gi auto sas lew
  • 0
Posted

koita to attackstance de 8a ton afinei kai otan 8a ton hit kapoios allos gt mpainei se attack mode.

Pigaine sto L2VillageMasterInstance

import javolution.text.TextBuilder;
import net.sf.l2j.Config;
import net.sf.l2j.gameserver.Olympiad;
import net.sf.l2j.gameserver.datatables.CharTemplateTable;
import net.sf.l2j.gameserver.datatables.ClanTable;
import net.sf.l2j.gameserver.datatables.SkillTreeTable;
import net.sf.l2j.gameserver.instancemanager.CastleManager;
import net.sf.l2j.gameserver.instancemanager.SiegeManager;
import net.sf.l2j.gameserver.model.L2Clan;
import net.sf.l2j.gameserver.model.L2ClanMember;
import net.sf.l2j.gameserver.model.L2PledgeSkillLearn;
import net.sf.l2j.gameserver.model.L2Clan.SubPledge;
import net.sf.l2j.gameserver.model.base.ClassId;
import net.sf.l2j.gameserver.model.base.ClassType;
import net.sf.l2j.gameserver.model.base.PlayerClass;
import net.sf.l2j.gameserver.model.base.Race;
import net.sf.l2j.gameserver.model.base.SubClass;
import net.sf.l2j.gameserver.model.entity.Castle;
import net.sf.l2j.gameserver.model.quest.QuestState;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.serverpackets.AcquireSkillList;
import net.sf.l2j.gameserver.serverpackets.ActionFailed;
import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage;
import net.sf.l2j.gameserver.serverpackets.SystemMessage;
import net.sf.l2j.gameserver.serverpackets.UserInfo;
+import net.sf.l2j.gameserver.taskmanager.AttackStanceTaskManager;
import net.sf.l2j.gameserver.templates.L2NpcTemplate;
import net.sf.l2j.gameserver.util.Util;

 

             case 4: // Add Subclass - Action (Subclass 4 x[x])
                   boolean allowAddition = true;
                   /*
                    * If the character is less than level 75 on any of their previously chosen
                    * classes then disallow them to change to their most recently added sub-class choice.
                    */
                   if (player.getLevel() < 75)
                   {
                       player.sendMessage("You may not add a new sub class before you are level 75 on your previous class.");
                       allowAddition = false;
                   }

+                   if(AttackStanceTaskManager.getInstance().getAttackStanceTask(player))
+		    {
+			player.sendPacket(ActionFailed.STATIC_PACKET);
+			return;
+		    }

                   if (Olympiad.getInstance().isRegisteredInComp(player)
                       || player.getOlympiadGameId() > 0)
                   {
                                                    player.sendPacket(newSystemMessage(  SystemMessageId.YOU_HAVE_ALREADY_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_AN_EVENT));
                      return;
                   }

 


             case 5: // Change Class - Action
                   /*
                    * If the character is less than level 75 on any of their previously chosen
                    * classes then disallow them to change to their most recently added sub-class choice.
                    *
                    * Note: paramOne = classIndex
                    */

+                   if(AttackStanceTaskManager.getInstance().getAttackStanceTask(player))
+		    {
+			player.sendPacket(ActionFailed.STATIC_PACKET);
+			return;
+		    }

                   if (Olympiad.getInstance().isRegisteredInComp(player)
                       || player.getOlympiadGameId() > 0)
                   {
                       player.sendPacket(new SystemMessage(
                                                           SystemMessageId.YOU_HAVE_ALREADY_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_AN_EVENT));
                       return;
                   }

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Hello, I'm looking for classic client for l2 gold or l2 gold weapons for classic 166 version
    • Good afternoon   ⚡CAN'T GO TO THE ONLINE STORE? OPEN THE SITE VIA VPN OR TOR BROWSER⚡ ⚡PREMIUM QUALITY ACCOUNTS, INSTANT DELIVERY, FREE CONSULTATIONS, RELIABLE WORK⚡   ✔ Ready accounts ✔   BUSINESS ACCOUNTS ☟ Blackcatcard Business LV, Volet com (AdvCash) Business EU, Xapo Bank Business EU, Finom Business, PayPal Business, Payset Business, Stripe Business, Payoneer Business EU, Wise Business UK/EU, Revolut Business EU/UK, N26 Business DE, Wallester Business EU, Mistertango Business LV   BANKS, NATIONAL BANKS ☟ Ceska Sporitelna, KASIKORNBANK, BBVA, CommerzBank, Santander, Kaspi Bank, AlfaBank, Raiffeisen, mBank, Paribas, Bereke Bank, Freedom Bank   PAYMENT SYSTEMS ☟ Bunq on emulator (DE, NL, FR, ES, IE ibans), Revolut on emulator (UK/EU), ICard, BlackCatCard, Vivid DE, Bankera, Bitsa, Wise EU/UK, N26 DE on emulator, Skrill, Neteller, Trasta, Wirex, Lama, Paysera, 4x4 io, Weststein, Paysafecard, Paysend, Genome, Conotoxia, Mybrocard, Payz Silver, Pockit UK, NagaPay, Volet com, SpectroCoin, SwissMoney, Yuh, Lydia / Sumeria, Ka.App, Wittix, Western Union, MyGuava   CRYPTOEXCHANGE ☟ Poloniex, Bitmart, Kraken, WhiteBit, Quppy, Nexo, Gate, OKX, Paybis, Paxful, Huobi (HTX), xcoins com, Bit2Me, Bybit LVL 2, KuCoin, Binance LVL 2, Mexc, Latoken   Contact via telegram - in the first post of the topic!
    • Sell "Amoral" Classic Armor and Weapon.   Custom "Amoral" Draconic Set YouTube Custom "Amoral" Imperial Set YouTube Custom "Amoral" Dark Crystal Robe YouTube Custom "Amoral" Classic S-Grade Weapon YouTube My Contacts Telegram  
    • Greetings to all! I offer a scope for client modification. What services do I provide: 1) Transfer of any Weapon, Armor, Accessories, from any chronicles to yours. 2) Creating exclusive add-ons. 3) Repainting of Armor, Weapons аnd Accessories. 4) Packing the icons you need and other things. 5) Creating NPCs with and without effects. 6) Create Monsters and Raid bosses, with effects and sounds. 7) HTLM NPC design. Creating Buttons and other things for your project. And much more If you have any questions, write in  Telegram. You can find some of the works here  YouTube
  • Topics

×
×
  • Create New...