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.

×
×
  • Create New...