Jump to content

Question

Posted

Otan kapios kani enan newchar ston server exi stis bares tou (shortcut) to attack(f1),to pick up(f4),to sit/stand(f11),k to newbe guide(f12)

3Xw2G.png

 

ego tora thelo na balo k ena skill sto bar 1 shortcut 6 (f6) pos ginete na to kano afto?

2CO4N.png

 

((dld thelo opios kani new char ston server opos exi to attack sto f1 na balo k ego sto f6 ena skill))

nomizo oti to eksigisa kalitera :)

ty!

10 answers to this question

Recommended Posts

  • 0
Posted

Παιζει να καταλαβες τι εγραψες?

kai ego den katalaba alla malon zitai stous new char na exoun ena custom skill opios ftiaxni new char kai na efxanizete stin bara.ontopic afto exi sxesi me java file pou thelis na kanis
  • 0
Posted

CharacterCreate.java

 

Ψαξε και δες πως δουλευουν τα shortcuts , θα βρεις κατι τετοιο.

 

L2ShortCut shortcut;
	//add attack shortcut
	shortcut = new L2ShortCut(0,0,3,2,-1,1);
	newChar.registerShortCut(shortcut);
	//add take shortcut
	shortcut = new L2ShortCut(3,0,3,5,-1,1);
	newChar.registerShortCut(shortcut);
	//add sit shortcut
	shortcut = new L2ShortCut(10,0,3,0,-1,1);
	newChar.registerShortCut(shortcut);

  • 0
Posted

gt aplos m ipan p ine meta dn mporo na bro ti prepi na balo ekana ena try monos m alla @@@

	// Shortcuts
	newChar.registerShortCut(new L2ShortCut(0, 0, 3, 2, -1, 1)); // Attack
	newChar.registerShortCut(new L2ShortCut(3, 0, 3, 5, -1, 1)); // Take
	newChar.registerShortCut(new L2ShortCut(10, 0, 3, 0, -1, 1)); // Sit

	ItemTable itemTable = ItemTable.getInstance();
	L2Item[] items = template.getItems();

	for (L2Item item2 : items)
	{
		L2ItemInstance item = newChar.getInventory().addItem("Init", item2.getItemId(), 1, newChar, null);

		if (item.getItemId() == 5588)
			newChar.registerShortCut(new L2ShortCut(11, 0, 1, item.getObjectId(), -1, 1)); // Tutorial Book shortcut

		if (item.isEquipable())
			if(newChar.getActiveWeaponItem() == null || !(item.getItem().getType2() != L2Item.TYPE2_WEAPON))
				newChar.getInventory().equipItemAndRecord(item);
	}

	L2SkillLearn[] startSkills = SkillTreeTable.getInstance().getAvailableSkills(newChar, newChar.getClassId());

	for(L2SkillLearn startSkill : startSkills)
	{
		newChar.addSkill(SkillTable.getInstance().getInfo(startSkill.getId(), startSkill.getLevel()), true);

		if(startSkill.getId() == 1001 || startSkill.getId() == 1177)
			newChar.registerShortCut(new L2ShortCut(1, 0, 2, startSkill.getId(), 1, 1));

		if(startSkill.getId() == 1216)
			newChar.registerShortCut(new L2ShortCut(10, 0, 2, startSkill.getId(), 1, 1));

		if(startSkill.getId() == 7400)
			newChar.registerShortCut(new L2ShortCut(6, 0, 2, startSkill.getId(), 1, 1));

		if(Config.DEBUG)
			_log.fine("DEBUG "+getType()+": Adding starter skill:" + startSkill.getId() + " / " + startSkill.getLevel());
	}

edo pera malon theli na addaro kati :)

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...