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 :)

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


×
×
  • 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