Jump to content

[SHARE] An Easy Way To Create An Item Which Will Popup an HTML


Recommended Posts

Well , i've seen cobra's share about making new bypasses and those things. and i was thinking dammit , that shit exists already in lineage 2 ( tutorial book)

so why to make new bypasses since we can use the old ones.?

 

lets say now that u made an item for this thing. and its id is 9999.

 

go to Book.java ( gameserver/handler/itemhandlers/ )

and find the line :

 

private static final int[] ITEM_IDS = { 5588,6317,7561,7064,7082,7083,7084,7085,7086,7087,7088,7089,7090,7091,

7092,7093,7094,7095,7096,7097,7098,7099,7100,7101,7102,7103,7104,7105,7106,7107,7108,7109,7110,7111,7112 };

and simply after 7112 add your item id.

 

private static final int[] ITEM_IDS = { 5588,6317,7561,7064,7082,7083,7084,7085,7086,7087,7088,7089,7090,7091,

7092,7093,7094,7095,7096,7097,7098,7099,7100,7101,7102,7103,7104,7105,7106,7107,7108,7109,7110,7111,7112,9999 };

 

guess what. core side is done. the only thing you got to do now , is to create the htmls. easy!

 

go to data/html/help in your datapack

and create an html named 9999.htm

and you are done. when in need of creating something like bypassing from one 9999.htm to 9999-1.htm do this :

<a action="bypass -h player_help 9999-1.htm">

 

easy right?

enjoy!

Link to comment
Share on other sites

hai and good to see you back :)

very nc guide can you give me the link of cobra? thanks :) if you continue your share's i will reward you :P

 

Here.

Link to comment
Share on other sites

Think I did sth similar in the past but some functions failed to work or they did fully but I do not remember :p.I think using it this way you cannot get it to be a shop but I am not sure.Anyway thanks for reminding :).

Link to comment
Share on other sites

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