Jump to content

Recommended Posts

Posted

Hello,i present new scrolls, Scroll Of Mages and Scroll Of Fighters for interlude.

What they do?

They give you Mages Full Buff and Fighters Full Buff.

I have not Eclipse and i have not patch sorry.

So Let's Start

 

Go To \net\sf\l2j\gameserver\handler\itemhandlers\Scrolls.java

 

Find

 

9152, 9153, 9154, 9155

 

Change to this

 

9152, 9153, 9154, 9155, 9998, 9999

 

 

Find this

 

         	case 9155: // Scroll of Shield - For Event XML:2059
         		activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2059, 1, 1, 0));
         		useScroll(activeChar, 2059, 1);
         		break;

 

Add After:

 

         	case 9998: // Scroll of Mage
			activeChar.sendMessage("You get Mage-buff complect.");
			L2Skill mbuff01 = SkillTable.getInstance().getInfo(276, 1);
			mbuff01.getEffects(activeChar, activeChar);
			L2Skill mbuff02 = SkillTable.getInstance().getInfo(273, 1);
			mbuff02.getEffects(activeChar, activeChar);
			L2Skill mbuff03 = SkillTable.getInstance().getInfo(264, 1);
			mbuff03.getEffects(activeChar, activeChar);
			L2Skill mbuff04 = SkillTable.getInstance().getInfo(304, 1);
			mbuff04.getEffects(activeChar, activeChar);
			L2Skill mbuff05 = SkillTable.getInstance().getInfo(267, 1);
			mbuff05.getEffects(activeChar, activeChar);
			L2Skill mbuff06 = SkillTable.getInstance().getInfo(1085, 3);
			mbuff06.getEffects(activeChar, activeChar);
			L2Skill mbuff07 = SkillTable.getInstance().getInfo(1062, 2);
			mbuff07.getEffects(activeChar, activeChar);
			L2Skill mbuff08 = SkillTable.getInstance().getInfo(1078, 6);
			mbuff08.getEffects(activeChar, activeChar);
			L2Skill mbuff09 = SkillTable.getInstance().getInfo(1059, 3);
			mbuff09.getEffects(activeChar, activeChar);
			L2Skill mbuff10 = SkillTable.getInstance().getInfo(1303, 2);
			mbuff10.getEffects(activeChar, activeChar);
			L2Skill mbuff11 = SkillTable.getInstance().getInfo(1204, 2);
			mbuff11.getEffects(activeChar, activeChar);
			L2Skill mbuff12 = SkillTable.getInstance().getInfo(1036, 2);
			mbuff12.getEffects(activeChar, activeChar);
			L2Skill mbuff13 = SkillTable.getInstance().getInfo(1040, 3);
			mbuff13.getEffects(activeChar, activeChar);
			L2Skill mbuff14 = SkillTable.getInstance().getInfo(1389, 3);
			mbuff14.getEffects(activeChar, activeChar);
			L2Skill mbuff15 = SkillTable.getInstance().getInfo(1045, 6);
			mbuff15.getEffects(activeChar, activeChar);
			L2Skill mbuff16 = SkillTable.getInstance().getInfo(1048, 6);
			mbuff16.getEffects(activeChar, activeChar);
			L2Skill mbuff17 = SkillTable.getInstance().getInfo(1397, 3);
			mbuff17.getEffects(activeChar, activeChar);
			L2Skill mbuff18 = SkillTable.getInstance().getInfo(349, 1);
			mbuff18.getEffects(activeChar, activeChar);
			L2Skill mbuff19 = SkillTable.getInstance().getInfo(363, 1);
			mbuff19.getEffects(activeChar, activeChar);
			activeChar.broadcastUserInfo();
         		break;
         	case 9999: // Scroll of Fighter
			activeChar.sendMessage("You get Fighter-buff complect.");
			L2Skill fbuff01 = SkillTable.getInstance().getInfo(275, 1);
			fbuff01.getEffects(activeChar, activeChar);
			L2Skill fbuff02 = SkillTable.getInstance().getInfo(271, 1);
			fbuff02.getEffects(activeChar, activeChar);
			L2Skill fbuff03 = SkillTable.getInstance().getInfo(274, 1);
			fbuff03.getEffects(activeChar, activeChar);
			L2Skill fbuff04 = SkillTable.getInstance().getInfo(264, 1);
			fbuff04.getEffects(activeChar, activeChar);
			L2Skill fbuff05 = SkillTable.getInstance().getInfo(304, 1);
			fbuff05.getEffects(activeChar, activeChar);
			L2Skill fbuff06 = SkillTable.getInstance().getInfo(267, 1);
			fbuff06.getEffects(activeChar, activeChar);
			L2Skill fbuff07 = SkillTable.getInstance().getInfo(1240, 3);
			fbuff07.getEffects(activeChar, activeChar);
			L2Skill fbuff08 = SkillTable.getInstance().getInfo(1035, 4);
			fbuff08.getEffects(activeChar, activeChar);
			L2Skill fbuff09 = SkillTable.getInstance().getInfo(1068, 3);
			fbuff09.getEffects(activeChar, activeChar);
			L2Skill fbuff10 = SkillTable.getInstance().getInfo(1045, 6);
			fbuff10.getEffects(activeChar, activeChar);
			L2Skill fbuff11 = SkillTable.getInstance().getInfo(1048, 6);
			fbuff11.getEffects(activeChar, activeChar);
			L2Skill fbuff12 = SkillTable.getInstance().getInfo(1077, 3);
			fbuff12.getEffects(activeChar, activeChar);
			L2Skill fbuff13 = SkillTable.getInstance().getInfo(1086, 2);
			fbuff13.getEffects(activeChar, activeChar);
			L2Skill fbuff14 = SkillTable.getInstance().getInfo(1036, 2);
			fbuff14.getEffects(activeChar, activeChar);
			L2Skill fbuff15 = SkillTable.getInstance().getInfo(1040, 3);
			fbuff15.getEffects(activeChar, activeChar);
			L2Skill fbuff16 = SkillTable.getInstance().getInfo(1242, 3);
			fbuff16.getEffects(activeChar, activeChar);
			L2Skill fbuff17 = SkillTable.getInstance().getInfo(1062, 2);
			fbuff17.getEffects(activeChar, activeChar);
			L2Skill fbuff18 = SkillTable.getInstance().getInfo(1388, 3);
			fbuff18.getEffects(activeChar, activeChar);
			L2Skill fbuff19 = SkillTable.getInstance().getInfo(1268, 4);
			fbuff19.getEffects(activeChar, activeChar);
			L2Skill fbuff20 = SkillTable.getInstance().getInfo(1259, 4);
			fbuff20.getEffects(activeChar, activeChar);
			L2Skill fbuff21 = SkillTable.getInstance().getInfo(1243, 6);
			fbuff21.getEffects(activeChar, activeChar);
			L2Skill fbuff22 = SkillTable.getInstance().getInfo(1087, 3);
			fbuff22.getEffects(activeChar, activeChar);
			L2Skill fbuff23 = SkillTable.getInstance().getInfo(1204, 2);
			fbuff23.getEffects(activeChar, activeChar);
			L2Skill fbuff24 = SkillTable.getInstance().getInfo(349, 1);
			fbuff24.getEffects(activeChar, activeChar);
			L2Skill fbuff25 = SkillTable.getInstance().getInfo(364, 1);
			fbuff25.getEffects(activeChar, activeChar);
			activeChar.broadcastUserInfo();
         		break;

 

Save And Close. Core side adding complete now let's add in datapack.

 

Open Navicat Right Click on l2jdb and select Console

write there

 

INSERT INTO etcitem
   (`item_id`, `name`, `crystallizable`, `item_type`, `weight`, `consume_type`, `material`, `crystal_type`, `duration`, `price`, `crystal_count`, `sellable`, `dropable`, `destroyable`, `tradeable`, `oldname`, `oldtype`)
VALUES
   (9998, 'Scroll of Mages', 'false', 'scroll', 0, 'stackable', 'paper', 'none', -1, 0, 0, 'true', 'true', 'true', 'true', 'InterludeItem', 'none'),
   (9999, 'Scroll of Fighters', 'false', 'scroll', 0, 'stackable', 'paper', 'none', -1, 0, 0, 'true', 'true', 'true', 'true', 'InterludeItem', 'none');

 

Press Enter.

 

Now Server side adding is complete.

 

Now Download this L2 FileEdit

 

Open etcitemgrp.dat

 

2	9998	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_white_i00					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	1	0
2	9999	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_white_i00					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	1	0

 

Add this to end.

 

Save and close.

 

now open itemname-e.dat

 

9998	Scroll of Mage		Puts Mage's Full Buff."	-1					0	0	0	
9999	Scroll of Fighter		Puts Fighter's Full Buff."	-1					0	0	0	

 

and add this to end.

 

Save and close.

 

*Warning If in your client id 9999 and 9998 etcitem is busy delete them!

 

That all!

 

Credits for Share & Guide to me

Posted

You should explain what the things modified in core do,some ppl may not be able to understand.Also you do not give the benefit of choice to the users of these scrolls so they are forced to be buffed under the same buffs.

Posted
You should explain what the things modified in core do,some ppl may not be able to understand

Go To \net\sf\l2j\gameserver\handler\itemhandlers\Scrolls.java

 

Also you do not give the benefit of choice to the users of these scrolls so they are forced to be buffed under the same buffs

i'm buffed normally i can't understand what you mean

Posted

Why dont you do it like this:

 SkillTable.getInstance().getInfo(364, 1).getEffects(activeChar, activeChar);

Instead of any of these?

				L2Skill fbuff25 = SkillTable.getInstance().getInfo(364, 1);
			fbuff25.getEffects(activeChar, activeChar);

Theres no need to define ne l2skill all the time

Posted

Why dont you do it like this:

 SkillTable.getInstance().getInfo(364, 1).getEffects(activeChar, activeChar);

Instead of any of these?

				L2Skill fbuff25 = SkillTable.getInstance().getInfo(364, 1);
			fbuff25.getEffects(activeChar, activeChar);

Theres no need to define ne l2skill all the time

i have no java skills so it's just copy of .fbuff voice command...

Posted

i'm not copying everything and please stop spam...

stop spam?? haha your the one trashing the community full of useless shares and c/p codes. so shut the fuck up

Posted

you think he shares useless codes like me? :D

 

No, I just detected irony.

Both your shares are either non-working or kinda useless c/ps, so don't worry.

The only good thing is that you started making 'your own' stuff, instead of copy/pasting l2jlive crappy codes.

  • 2 weeks later...

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.

×
×
  • Create New...