Jump to content
  • 0

[Question] Starting items / Subclasses from one priest (java code)


Question

Posted

Hello guys. So I have few problems:

1. I want to make full Fighter/Mystic starting items, but database allows to add only 5 items (it's not  enough), how to add full armor set, weapon, full juve set, mp/hp pots and shots?

2. I want to make that it would be possible to add all subclasses from one priest, but I heard that I need a java code (I don't have it), so maybe someone could help me with that code.

 

I hope someone could help me :q

P.S. Sorry for my English :(

7 answers to this question

Recommended Posts

  • 0
Posted

For number 2... do you mean that?

# Allow player to add/change subclass at all village master
# Default: False
AltSubclassEverywhere = False

Chronicle? Pack?

  • 0
Posted

For number 2... do you mean that?

# Allow player to add/change subclass at all village master
# Default: False
AltSubclassEverywhere = False

Chronicle? Pack?

Yes, that. Cronicle - Interlude. Pack - aCis

  • 0
Posted

You can do something like that for 1st (adapting it...)

Index: java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java	(revision 167)
+++ java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java	(working copy)
@@ -301,6 +301,7 @@
		if (!Config.DISABLE_TUTORIAL)
			startTutorialQuest(newChar);

+		newChar.getInventory().addItem("Initial", 57, 10000, newChar, null);//Duplicate it. 57=id, 10000=am.ount
		newChar.setOnlineStatus(true, false);
		newChar.deleteMe();

  • 0
Posted

I fixed with subclasses, now the only problem is with fighter/mystic starting items... Anybody know how to solve it? Or how to make extractable item which will give for player full armor set + full juve + weapon + some etc items at once? :s

  • 0
Posted

Index: java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java	(revision 167)
+++ java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java	(working copy)
@@ -281,6 +281,19 @@
			}
		}

+		int MageItem = 57;
+		int MageItemQuantity = 1;
+		int FighterItem = 5575;
+		int FighterItemQuantity = 1;
+		if (newChar.isMageClass())
+		{
+			newChar.getInventory().addItem("Mage Item", MageItem, MageItemQuantity, newChar, null);//Duplicate it
+		}
+		else
+		{
+			newChar.getInventory().addItem("Fighter Item", FighterItem, FighterItemQuantity, newChar, null);//Duplicate it
+		}
+		
		for (L2SkillLearn skill : SkillTreesData.getInstance().getAvailableSkills(newChar, newChar.getClassId(), false, true))
		{
			newChar.addSkill(SkillTable.getInstance().getInfo(skill.getSkillId(), skill.getSkillLevel()), true);

could be? ~.~

  • 0
Posted

Index: java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java	(revision 167)
+++ java/com/l2jserver/gameserver/network/clientpackets/CharacterCreate.java	(working copy)
@@ -281,6 +281,19 @@
			}
		}

+		int MageItem = 57;
+		int MageItemQuantity = 1;
+		int FighterItem = 5575;
+		int FighterItemQuantity = 1;
+		if (newChar.isMageClass())
+		{
+			newChar.getInventory().addItem("Mage Item", MageItem, MageItemQuantity, newChar, null);//Duplicate it
+		}
+		else
+		{
+			newChar.getInventory().addItem("Fighter Item", FighterItem, FighterItemQuantity, newChar, null);//Duplicate it
+		}
+		
		for (L2SkillLearn skill : SkillTreesData.getInstance().getAvailableSkills(newChar, newChar.getClassId(), false, true))
		{
			newChar.addSkill(SkillTable.getInstance().getInfo(skill.getSkillId(), skill.getSkillLevel()), true);

could be? ~.~

Helped me again... Thanks a lot!

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