Jump to content
  • 0

How To Install Buffer ?


Infed

Question

Recommended Posts

  • 0

In this case he want to learn how to install a buffer then he can add what he want...or im wrong?

He want to learn how to put a script buffer.. :P

 

But it's somehow easier to add a java buffer with this way.

The Instance Buffer I was send, it's just a java file with buffs buttons inside, and he can easy put what he want without to put hml files. Only a template..

Edited by 'Baggos'
Link to comment
Share on other sites

  • 0

I have 1 more question. Can you define how "L2Instance.java" is working ? In this file, i dont see any links to other file...  

gameserver\data\xml\npcs i see this code "<npc id="50008" idTemplate="30519" name="Tryskell" title="Crappy Buffer">" it's mean that npc id define witch file in html folder should be opened ? In this case xml catching file with same name id  50008.htm ? Or there are other method how to catch file  ?

 

Can you define clearer picture for me, how files know witch file they need to read ???

Link to comment
Share on other sites

  • 0

You can define your own folder, that's the case for numerous NPC types. If getHtmlPath / showChatWindow aren't overidden, it uses default folder.

 

People developing custom NPCs generally create another showCrapWindow, making the overall thing even more tricky to understand.

 

You can see what uses what following type, in case of Tryskell it's a L2BufferInstance. Inside you will find :

	@Override
	public String getHtmlPath(int npcId, int val)
	{
		String filename = "";
		if (val == 0)
			filename = "" + npcId;
		else
			filename = npcId + "-" + val;
		
		return "data/html/mods/buffer/" + filename + ".htm";
	}
Edited by Tryskell
Link to comment
Share on other sites

  • 0

He want to learn how to put a script buffer.. :P

 

But it's somehow easier to add a java buffer with this way.

The Instance Buffer I was send, it's just a java file with buffs buttons inside, and he can easy put what he want without to put hml files. Only a template..

Yeah im using this Gk which you have send to him but he will try to compile with vip system :P j
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
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...