Jump to content

Recommended Posts

Posted

	// 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(Config.DEBUG)
			_log.fine("DEBUG "+getType()+": Adding starter skill:" + startSkill.getId() + " / " + startSkill.getLevel());
	}

pos ginete na balo ena skill(id:7400) akoma se kathe new char p tha ginete create stin bar 3 k ston arithmo 12?

to skill ine custom k tha to exi kathe new char (anti buff protect)

Den einai anagh na to kaneis mono me java (eidika an dn 3ereis kai kala tn glwssa programatismou..)

Phgene epifaneia ergasias kane ena Neo egrafo keimenou..

kane copy paste auto

INSERT INTO `skill_trees` VALUES ('53', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('49', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('44', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('38', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('31', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('25', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('18', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('0', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('10', '7400', '1', 'Anti Buff Shield', '0', '1');

Meta pata Arxeio - Apo8hkeush Os kai sto onoma arxeiou grapse [skill_trees.sql] Kanto apo8hkeush kai perna to sto navicat

Posted

Den einai anagh na to kaneis mono me java (eidika an dn 3ereis kai kala tn glwssa programatismou..)

Phgene epifaneia ergasias kane ena Neo egrafo keimenou..

kane copy paste auto

INSERT INTO `skill_trees` VALUES ('53', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('49', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('44', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('38', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('31', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('25', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('18', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('0', '7400', '1', 'Anti Buff Shield', '0', '1');
INSERT INTO `skill_trees` VALUES ('10', '7400', '1', 'Anti Buff Shield', '0', '1');

Meta pata Arxeio - Apo8hkeush Os kai sto onoma arxeiou grapse [skill_trees.sql] Kanto apo8hkeush kai perna to sto navicat

afto to exo kano ego thelo na to balo afto to skill meta epano stin bara(shortcut) tou char

Posted

 

 

if(startSkill.getId() == 1001 || startSkill.getId() == 1177)

newChar.registerShortCut(new L2ShortCut(1, 0, 2, startSkill.getId(), 1, 1));

 

              +      if(startSkill.getId() == 7400) <- To ID Edw..

+ newChar.registerShortCut(new L2ShortCut(10 <- Kai edw dialegeis pou akribos na einai to skill stin mpara An exei 1 = f1 , an exei 2 = f2...., 0, 2, startSkill.getId(), 1, 1));

 

if(startSkill.getId() == 1216)

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


Kai Ghnete kapos etc


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

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

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

Posted
[Nightwish" post=2174884" timestamp="1337942852]

Agorines. Mporei Kanenas Na Help? Kati Me to Version Einai Alla Den Poly katalaba :/ Proti fora to blepw auto to error.

skata.jpg

 

Λογικά θα εκανες διαγραφη τα αρχεια που ειναι μεσα στο φάκελο 'version' στα config...

Posted

geia se ola ta member tou MaxCheaters eimai new edw k einai to prwto mou post giauto an kanw kati la8os di3te katanoisi...eidai to topic k 8elw na kanw mia erwthsh...loipon douleuw panw sto frojen k otan kanw spawn thn class manager k meta kanw rr ton server exafanizete...sta config exw valei true to save gm spawn k exw perasei k ta custom spawn sth db...ti mporei na ftaiei??

Posted

geia se ola ta member tou MaxCheaters eimai new edw k einai to prwto mou post giauto an kanw kati la8os di3te katanoisi...eidai to topic k 8elw na kanw mia erwthsh...loipon douleuw panw sto frojen k otan kanw spawn thn class manager k meta kanw rr ton server exafanizete...sta config exw valei true to save gm spawn k exw perasei k ta custom spawn sth db...ti mporei na ftaiei??

Shgedrosu...

L2JFrozen\gameserver\config\head\altsettings.properties

# -----------------------

#  Class Master -

# -----------------------

# Allow Change Class with ClassMaster

AllowClassMasters = True

# Allow Upgrade Strider with ClassMaster

AllowClassMastersStriderUpdate = False

Posted

Δείξε μας ενα πριντ σκριν απο το ερρορ σου μιπως και καταλάβουμε κάτι παραπάνω... μόνο αυτό δεν μας λέει κάτι.. (γιατι παρπανω λογικα εχει βγαλει καποιο ερρορ ;) )

Guest
This topic is now closed to further replies.

×
×
  • Create New...