Jump to content

Custom starting items equip l2jaCis


StaticX

Recommended Posts

Hello people!

Heres the code for automatic starting items equip on character 1rst login.

 

Into java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java

Find these lines:

if (item.isEquipable())
            {
                if (player.getActiveWeaponItem() == null || !(item.getItem().getType2() != Item.TYPE2_WEAPON))
                    player.getInventory().equipItemAndRecord(item);
            }

and change them like this: 

if (item.isEquipable())
            {
                if (item.isWeapon())
                {
                    if (player.getActiveWeaponItem() == null || !(item.getItem().getType2() != Item.TYPE2_WEAPON))
                        player.getInventory().equipItemAndRecord(item);
                }
                else
                    player.getInventory().equipItemAndRecord(item);
            }

 

 

The starting items are selected by the .xml files for player classes.

 

Hope thats is usefull for someone.

 

Cheers!

 

Credits: @Tryskell

Edited by StaticX
  • Thanks 1
  • Upvote 1
Link to comment
Share on other sites

if (item.isEquipable())
{
	if (player.getActiveWeaponItem() == null || !(item.getItem().getType2() != Item.TYPE2_WEAPON))
		player.getInventory().equipItemAndRecord(item);
}

>

if (item.isEquipable() && ((player.getActiveWeaponItem() != null || !(item.getItem().getType2() != Item.TYPE2_WEAPON))))
	player.getInventory().equipItemAndRecord(item);

You have to use the weapon ID as last equip item on your list.

Link to comment
Share on other sites

Good try but it would be better if you did it with configs the ID and Count in a list, on/off and since its small code and the rules are not allowing it to be posted in your place i would work with the code a bit more, keep up the good work and thanks for sharing

 

example:

auto_equip = true

items = item_id,item_count;item_id,item_count;item_id,item_count...

Edited by Nightw0lf
Link to comment
Share on other sites

My share is more like a "FIX" concerning the missing feature to equip the "stock" wear items except the weapon in aCis code... Im not looking forward to add complex customs to the code xD

 

Tnx for the tip mate.

Link to comment
Share on other sites

2007 Shares -> Rank Systems [5.000 lines]

2012 Shares -> Event Engines [4.000 lines]

2015 Shares -> Phantom Systems [4.000 lines]

2018 Shares -> if (x) else (x)  [3 lines]

 

 

Link to comment
Share on other sites

I know it's 3 lines and a 1min test for me, but you could AT LEAST provide credits, since you came with a question and left with a solution...

 

Regarding custom addition you can simply pick L2J PcItemTemplate and add it raw. Nothing special to add.

 

Not sure why you made a public topic for such thing.

 

scu9hy.png

 

Edited by Tryskell
Link to comment
Share on other sites

Instead of locking/deleting the topic, i have added the credits to @Tryskell.

 

Please next time, before posting, read section's rules.

Link to comment
Share on other sites

3 hours ago, Solomun said:

Instead of locking/deleting the topic, i have added the credits to @Tryskell.

 

Please next time, before posting, read section's rules.

lol ti na diavasei to palikari einai pio palio kai apo mena edw tha eprepe na kserei oti vazoume credits kai oti ta mikra code den epitrepontai eklapsa :D

Link to comment
Share on other sites

4 hours ago, Tryskell said:

I know it's 3 lines and a 1min test for me, but you could AT LEAST provide credits, since you came with a question and left with a solution...

 

Regarding custom addition you can simply pick L2J PcItemTemplate and add it raw. Nothing special to add.

 

Not sure why you made a public topic for such thing.

 

 

Give them a break, they are kids who get excited by

System.out.println("hello world");

Remember back when you were a kid and you compiled your first code ))

Link to comment
Share on other sites

42 minutes ago, Kara` said:

 

Give them a break, they are kids who get excited by


System.out.println("hello world");

Remember back when you were a kid and you compiled your first code ))

 

That was on an AMSTRAD CPC 6128, following the tutorial book. First exemple was a game where an avion was throwing bombs on buildings to avoid to crash on them, the second was an Arsene Lupin game where dogs were hunting you (and the first time it scared me). I was 10-12 years old.

 

And the disk reader was broken, so I couldn't save my programs. That was a one-time use program...

 

:P

Link to comment
Share on other sites

Wtf is wrong with you people.. i just shared a fix on official l2jacis files , i didnt even wrote the word "I". Tryskel came up with a fix and i was happy to share it for people that may wanted a fix. 

DO F..ING NOT hunger for reputation on your lifes guys.. Life is simple and people should help each other w/o caring if they will be recognised.

Yeah im really old in here , like @2007 but i never lied about anything regarding any shares or trying to leach anyones work..

 

So plz gimme a break and even remove my account.. I really dont give a penny.

Cheers

Link to comment
Share on other sites

52 minutes ago, StaticX said:

Wtf is wrong with you people.. i just shared a fix on official l2jacis files , i didnt even wrote the word "I". Tryskel came up with a fix and i was happy to share it for people that may wanted a fix. 

DO F..ING NOT hunger for reputation on your lifes guys.. Life is simple and people should help each other w/o caring if they will be recognised.

Yeah im really old in here , like @2007 but i never lied about anything regarding any shares or trying to leach anyones work..

 

So plz gimme a break and even remove my account.. I really dont give a penny.

Cheers

relax 2018 is like that dude chill out none is gonna hurt you, everyone just doing his buisness and think is somebody is classic this days it looks you was away alot of time i hope you can catch up with the flow. :)

Link to comment
Share on other sites

Well that might be my problem... i should just read posts and keep my mouth shut. People hunger for credits and to be recognised " Pr0 coder" "Great shares" " Imba developer".

This shit is not for me , i constantly feed poor homeless persons in my neighbourhood but never gave them t-shirts with my logo lol.

 

Anyway , i never had any intentions to steal someones cookie..

 

With regards,

a motherfcker from the chrono-capsule.

Edited by StaticX
Link to comment
Share on other sites

I try to thank any helper on my changesets (being reports or bug fixes) , it is just common respect. I simply await you to do the same, notably if you found the code useful and you share it. It got nothing to do with being called "pro coder" - since 8 years of L2J coding, I don't need any validation (moreover for a 5min fix).

 

There are exactly 512 "ty" on aCis changesets.

 

Finally, you should better post such thing here : https://maxcheaters.com/forum/165-adapted-customs/

Edited by Tryskell
Link to comment
Share on other sites

49 minutes ago, StaticX said:

Well that might be my problem... i should just read posts and keep my mouth shut. People hunger for credits and to be recognised " Pr0 coder" "Great shares" " Imba developer".

This shit is not for me , i constantly feed poor homeless persons in my neighbourhood but never gave them t-shirts with my logo lol.

 

Anyway , i never had any intentions to steal someones cookie..

 

With regards,

a motherfcker from the chrono-capsule.

not your problem just ignore the facts they want their name written in cookie, its done they can cry to a mod and then its fixed you did the share and thats all it matters and dont forget the basic principle its a cheating forum you could steal it too and nobody do shit to you xD

 

PS: i restored your reputation that the mod removed (its no worth today its like giving a like in facebook)

Edited by Nightw0lf
Link to comment
Share on other sites

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
Reply to this topic...

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



  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Server Rates: » Xp 500x. » Sp 500x. » Aden 500x. » Drop 1x. » PartyXp 2x. » PartySp 2x. » Starting character level -61. Enchant rates: » Safe enchant +4. » Blessed and simple scrolls max enchant (+16). » Crystal scrolls max enchant (+20). » Simple enchant scrolls chance – 65%. » Blessed enchant scrolls chance – 100%. » Crystal enchant scrolls chance – 50% Augmentations: » Mid life stone skill chance – 5%. » High life stone skill chance – 10%. » Top life stone skill chance – 20%. » Augments 1+1 Unique features: » Main town – Giran » Automatic-Manual Potions. » Working 2 castle sieges. (Giran-Aden) » SPS cancel lasts 10 seconds and than buffs come back. » Stackable scrolls, lifestones, book of giants. » Unique pvp zone » More then 11 active raid bosses. » Wedding system. » Unique farming areas. » Npc skill enchanter. » Full npc buffer with auto buff. » Max count of buffs – 55. » Max subclasses – 4. » Free and no quest class change. » Free and no quest sub class. » Raid boss drop nobless item. » No weight limit. » Unique protection anti-hwy armor for archers/daggers etc. » Ingame password change. » Top pvp/pk/online ranks NPC. » Unique monsters & NPC. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance (all class can kill all class depending on players skill and setup knowledge,gear,augmentations). » Announcements on double kills triple kills etc. » Announcements on Grand Boss death , with the name of the killer as well as clan name of the player. » Information Npc in game with all servers infromations. Custom server gear : 1). Titanium Armor Lv.1 2). Epic Armor Lv.2 3). Epic Weapons-Kamikaze-Black S grade (Same Stats) 4). Demonic-Angelic Wings-Baium Hair-Custom Accessories (SameStats) 5). Custom Fighter/Mage tattoo Lv1-Lv2-Lv3 6). Shirt (STR,CON,INT +1) 7). Custom Shields Server Commands: .tvtjoin .tvtleave – Join or leave tvt event. .ctfjoin .ctfleave – Join or leave ctf event. .dmjoin .dmleave – Join of leave dm event. .online – current online players count. .repair – repairs stuck character in world. .menu – opens online menu panel. .exit – PVP zone exit in case you are bullied. .changepassword - Opens online menu then u can change ur password in game. .farm - Enable/disable autofarm Event system: » TVT event » CTF event » DM event » Tournament Event » Party Zone » Unique event shop. Olympiad game: » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00] GMT+2. » New Heroes every Sunday.
    • Tomorrow grand opening lests go 🙂 
  • Topics

×
×
  • Create New...