Kamilczak020 Posted April 28, 2010 Share Posted April 28, 2010 I wanna ask few questions about very own NPC: 1. How to make these fancy buttons instead of Blue, underlined text? 2. How to make an NPC which GM will only be able to access: I mean the teleporter to a special place, which will show the html code with teleport possibilities only when I have access level 127. Otherwise it would show the other html code which says for ex.: You Are not a GM, I cant port you, sry and GTFO :P Quote Link to comment Share on other sites More sharing options...
0 Matim Posted April 29, 2010 Share Posted April 29, 2010 I wanna ask few questions about very own NPC: 1. How to make these fancy buttons instead of Blue, underlined text? 2. How to make an NPC which GM will only be able to access: I mean the teleporter to a special place, which will show the html code with teleport possibilities only when I have access level 127. Otherwise it would show the other html code which says for ex.: You Are not a GM, I cant port you, sry and GTFO :P Tell us firstly, it should be Java or Python Npc. Quote Link to comment Share on other sites More sharing options...
0 xAddytzu Posted April 29, 2010 Share Posted April 29, 2010 Java is better Quote Link to comment Share on other sites More sharing options...
0 Matim Posted April 29, 2010 Share Posted April 29, 2010 Of course, but let him choose. Quote Link to comment Share on other sites More sharing options...
0 Setekh Posted April 29, 2010 Share Posted April 29, 2010 Java is better with l2jserver's handlers you can do it all in the dp and save time being spend on fixing svn update conflicts xD Quote Link to comment Share on other sites More sharing options...
0 Kamilczak020 Posted April 29, 2010 Author Share Posted April 29, 2010 Tell us firstly, it should be Java or Python Npc. Hmm if Java is better i choose java.. And one more: do I need to compile those files after making that NPC? And wht about buttons? Can it be set in html of NPCs?? BTW I never did those so write it like for newbie pls ;) Quote Link to comment Share on other sites More sharing options...
0 Kamilczak020 Posted April 30, 2010 Author Share Posted April 30, 2010 Hmm if Java is better i choose java.. And one more: do I need to compile those files after making that NPC? And wht about buttons? Can it be set in html of NPCs?? BTW I never did those so write it like for newbie pls ;) So, can u help me?? Quote Link to comment Share on other sites More sharing options...
0 Matim Posted April 30, 2010 Share Posted April 30, 2010 So for example you can create new Instance for your NPC. Chceck how does it work. (from core) gameserver.model.actor.instances Quote Link to comment Share on other sites More sharing options...
0 Kamilczak020 Posted April 30, 2010 Author Share Posted April 30, 2010 So for example you can create new Instance for your NPC. Chceck how does it work. (from core) gameserver.model.actor.instances can u explain a lil more preciousily cuz Im n00b in java :P Quote Link to comment Share on other sites More sharing options...
0 Matim Posted April 30, 2010 Share Posted April 30, 2010 What else should I explain? I told you, check L2J Svn or download L2J Source, and check this classes in this folder: L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance And check how does it work (Npc Instance) Quote Link to comment Share on other sites More sharing options...
0 Kamilczak020 Posted April 30, 2010 Author Share Posted April 30, 2010 What else should I explain? I told you, check L2J Svn or download L2J Source, and check this classes in this folder: L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance And check how does it work (Npc Instance) but u didnt answer to one question: How to make a button in my Npc with html code? Is it even possible? Quote Link to comment Share on other sites More sharing options...
0 Matim Posted April 30, 2010 Share Posted April 30, 2010 but u didnt answer to one question: How to make a button in my Npc with html code? Is it even possible? Of course it is. Use bypass. Quote Link to comment Share on other sites More sharing options...
0 Kamilczak020 Posted April 30, 2010 Author Share Posted April 30, 2010 Of course it is. Use bypass. but then its a blue, underlined hyperlink and i want it to be like a button :) Quote Link to comment Share on other sites More sharing options...
0 Matim Posted April 30, 2010 Share Posted April 30, 2010 but then its a blue, underlined hyperlink and i want it to be like a button :) So use button..with bypass .. Quote Link to comment Share on other sites More sharing options...
0 Kamilczak020 Posted April 30, 2010 Author Share Posted April 30, 2010 So use button..with bypass .. When I do standard <input type="button"> It doesnt work.. So can you write me the proper html code for this?? Quote Link to comment Share on other sites More sharing options...
0 Matim Posted May 1, 2010 Share Posted May 1, 2010 <button value="Text" action="bypass -h npc_%objectId%_Quest 9999_NPCBuffer" width=80 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"> Sample button with bypass. Quote Link to comment Share on other sites More sharing options...
Question
Kamilczak020
I wanna ask few questions about very own NPC:
1. How to make these fancy buttons instead of Blue, underlined text?
2. How to make an NPC which GM will only be able to access:
I mean the teleporter to a special place, which will show the html code with teleport possibilities only when I have access level 127.
Otherwise it would show the other html code which says for ex.: You Are not a GM, I cant port you, sry and GTFO :P
Link to comment
Share on other sites
17 answers to this question
Recommended Posts
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.