Jump to content

Recommended Posts

Posted (edited)

I have been working on this buffer for a long time, making it from 0 and slowly... a lot of necessary stuff is missing in it so count it as a tryout or beta buffer, whatever you call it... i know that if you looked at the code the first question from you would be: 'Why So Many try/catch Statements?' Well, thats because i had lots of errors...
I'm not puting any video cause i want a little bit of sleep... video or screens tomorrow...

tested and working fine :)

lol a little bit wrong section xD i would be glad if someone moved it to l2jserver section ;D


here's a vid:



back to adding some neccessary features ;D

 

(updated the link)
http://www59.zippyshare.com/v/12775127/file.html

UPDATE:
1. Buffs cancel
2. Current buffs save to a scheme
3. Heal all

2upx0ye.jpg

Edited by povis111
Posted

hey dude, look...

 

+			int type = Integer.parseInt(st.nextToken());
+			int page = Integer.parseInt(st.nextToken());
+			int id = Integer.parseInt(st.nextToken());

 

this is exploitable, make a list with allowed buffs, also your buffer is soooo hardcoded for no reason  ;D

 

anyway thanks for sharing with us your work ;)

Posted

hey dude, look...

 

+			int type = Integer.parseInt(st.nextToken());
+			int page = Integer.parseInt(st.nextToken());
+			int id = Integer.parseInt(st.nextToken());

 

this is exploitable, make a list with allowed buffs, also your buffer is soooo hardcoded for no reason  ;D

 

anyway thanks for sharing with us your work ;)

 

What? no it's NOT,

1st

+			else if (_command.startsWith("Buffer "))
+			{				
+				try {
+					if (activeChar.getTarget() instanceof L2BufferInstance && activeChar.isInsideRadius(activeChar.getTarget(), L2Npc.INTERACTION_DISTANCE, false, false))
+							((L2BufferInstance) activeChar.getTarget()).onBypassFeedback(activeChar, _command.replace("Buffer ", ""));
+				} catch (Exception e) {_log.info(e + " / " +e.getMessage()); }	
+			}

 

2nd

 

+			int type = Integer.parseInt(st.nextToken());
+			int page = Integer.parseInt(st.nextToken());
+			int id = Integer.parseInt(st.nextToken());
+			
+			if(data.checkAvailability(id))
+				SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(player, player);

 

+	public boolean checkAvailability(int id){
+	try{
+		if(allSkills.contains(SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id))))
+			return true;
+	}catch(Exception e){_log.info("Exception in checking skill availability: " + e);}
+		return false;
+	}

 

but that try/catch was really unnecessary :(

Posted

What? no it's NOT,

 

yes it is, test urself go with phx and bypass any buff you want threw sendBypass packet, you can get super haste, frenzy and other stuff throuth phx bypasses

Posted

yes it is, test urself go with phx and bypass any buff you want threw sendBypass packet, you can get super haste, frenzy and other stuff throuth phx bypasses

NO IT'S NOT! You should test yourself, before trying to prove such nonsense...

 

Posted

NO IT'S NOT! You should test yourself, before trying to prove such nonsense...

 

 

but how are u so sure, that u can bypass a song or a regular buff and a not forbidden one ? I mean that the server just sees all buffs the same

Posted

but how are u so sure, that u can bypass a song or a regular buff and a not forbidden one ? I mean that the server just sees all buffs the same

When loading buffs listed in all of the types, all buffs are also loaded into a one arraylist, from which i check whether the buff is added or not... with the 'checkAvailability(id)' ...

Posted

When loading buffs listed in all of the types, all buffs are also loaded into a one arraylist, from which i check whether the buff is added or not... with the 'checkAvailability(id)' ...

 

haha okay didnt see =p so big code

  • 3 weeks later...
  • 6 months later...
Posted (edited)

On rev 300 it dosn't save to database..... the schemes work just untill the server restart ...

 

 

any idea why ? please

 

Because Shutdown section got only the import added but it's not used, it misses BufferData.getInstance().onShutdown() usage. Dunno if there are others issues or others things to save.

 

There's still a lot of work to do if you ask me, notably all those hardcoded HTMs stuff ^^.

Edited by Tryskell
  • 1 year 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...