How do we make it so same Masteries don't stack? Example would be something like the Light armor mastery from HE or TH and the light armor mastery from a prophet, So they do not stack and you only get 1 from whatever class your active sub is.
It's a nice guide. I also added these lines so you can only subclass another class in the same race you are. Now I would like to make it so there subclass stacks with their main class. Does anyone know of a guide I could learn how to do this?
Microsoft Windows Server 2003 x64
Intel Xeon CPU
X3323 2.50GHz
2.50 GHz, 4GB Ram
How many players can this run without lag? and how many players till it starts lagging?
Also I have to check info how much bandwidth l2j servers use?
I Have the gain XP & SP through pvp kill, What I'm not sure about is how to add XP & SP to a party if a party member gets a pvp kill. This is what I tried.
I'm really not sure what the variable would be to add the addExpAndSp configs to the party.
I Have the gain XP & SP through pvp kill, What I'm not sure about is how to add XP & SP to a party if a party member gets a pvp kill. This is what I tried.
I'm really not sure what the variable would be to add the addExpAndSp configs to the party.
Sorry for double post. Would it be easier to create my own pack items? I need 4 in total for now. These are the list of items I need to have a chance to open in the first pack. the amount of 1 for these is fine.
Pack 1: Random chance to get these items.
6861
6863
6853
6855
6857
6859
6865
6867
6869
6871
6873
6875
6877
6879
6881
6883
6885
6887
6889
6891
6893
6895
6897
6899
7580
6847
6849
6851
Pack 2 random chance to get these: Random amount 1-5
Sealed Tateossian Earring Part
Sealed Tateossian Ring Gem
Sealed Tateossian Necklace Chain
Sealed Imperial Crusader Breastplate Part
Sealed Imperial Crusader Gaiters Pattern
Sealed Imperial Crusader Gauntlets Design
Sealed Imperial Crusader Boots Design
Sealed Imperial Crusader Helmet Pattern
Sealed Imperial Crusader Shield Part
Sealed Draconic Leather Armor Part
Sealed Draconic Leather Gloves Fabric
Sealed Draconic Leather Boots Design
Sealed Draconic Leather Helmet Pattern
Sealed Major Arcana Robe Part
Sealed Major Arcana Gloves fabric
Sealed Major Arcana Boots Design
Sealed Major Arcana Circlet Pattern
Forgotten Blade Edge
Basalt Battlehammer Head
Imperial Staff Head
Angel Slayer Blade
Shining Bow Shaft
Dragon Hunter Axe Blade
Saint Spear Blade
Demon Splinter Blade
Heavens Divider Edge
Draconic Bow Shaft
Arcana Mace Head
Pack 3 random chance to get these items: Random amount 1-3
Arcsmith's Anvil
Warsmith's Mold
Leolin's Mold
Maestro Mold
Warsmith's Holder
Pack 4 random chance to get these items: Random amount 1-5
Compound Braid
Durable Metal Plate
Enria
Metallic Fiber
Varnish of Purity
Thons
Oriharukon
Coarse Bone Powder
Synthetic Cokes
Mithril Alloy
Asofe
I will be getting the item codes for those later but this is just to show you want I'm trying to do.
Thank you, This is the whole .java and I wanted to make sure I entered it correct. Because Eclipse is giving me an error saying Rnd cannot be resolved.
I was going to try to create my own compressed pack to open into a list of possible items. I didn't know where to start so I thought I would edit some that already exist. I wasn't really sure how to do this so I thought I would post what I got to see if I'm on the right track. Don't want to mess up the file and my source code.
Current code from CompShotPacks.java
What I want to do is add a list of possible items that have a random chance to open and a random min-max amount. This is my attempt I don't know the code to do random min-max amount yet.
Hopefully it would open and give you a 20% chance to recieve 1 of item 7580 and 30% chance to recieve 1 of 6847. This pack doesn't need random amount because its for recipes.
But if I edit the next pack I want it to open up into mats then I would need the random min-max amount. Which I don't know how to add so I can set the min amount and max amount right there.
Example:
Open pack,
(Rnd.get(100) >20)
itemToCreateId = 57;
(Rnd.get(3 - 5) (Get Min 3 or max of 5)
I don't know what the min max is so I just took a guess.
I typed the code in my post wrong, The only thing different from what you posted and what I had was there was no space between
int itemReward = Config.MOD_GVE_AMOUNT_PACK_BY_PVP; and
if (Rnd.get(100) >50)
but adding the space between the 2 made it work, so thank you.
L2 factor is very bad, poor coding. I'm currently working on my faction system it's interlude, I don't have a server box or anything. It's just running off my computer.
I added
int itemReward = Config.MOD_GVE_AMOUNT_PACK_BY_PVP;
if (Rnd.get(100) > 50)
addItem("Loot", 5139, itemReward, this, true);
{
}
still gives me 5139 100%