Page 1 of 1
some questions
Posted: Tue Jan 12, 2010 2:12 pm
by VeNdRa
Hy everyone,
I tried to add a custom npc (trader with multisells) to my server so I chose ID:100, created a new record in navicat ( custom_npc), placed the 100.html file in gameserver\data\html , but I can't spawn it in game, it says: " Your target cannot be found".
Did I miss any step?
Another question: If i want to see a custom name in the server list (the list after log in is done) i have to edit the servername.xml editing the name and then selecting the related ID?
Thanks to everyone
PS= I can't find my revisions because in l2j-version and l2jdp-version it is only written "version = ${l2jdp.revision} and the builddate"
Re: some questions
Posted: Tue Jan 12, 2010 2:38 pm
by janiii
for custom npc, if you installed the custom tables, just enable them in config.
General.properties -> CustomNpcTable -> True
for custom server name in the server list - can't be done.
for revision numbers, you have to install a svn client.
Re: some questions
Posted: Tue Jan 12, 2010 2:52 pm
by VeNdRa
ok tanks

But few days ago I found a shard with custom server nems...maybe they had modified the system?
EDIT=ok now i can spawn the npc, but when I talk with it the game freeze and the pc get blocked
this is the npc.htm
Code: Select all
<html><title>Seller</title><body><br> <br> <center> <br>Welcome! </br></br></center><center><table><tr> <td> <br> </br> <tr> <td> <button value="list 1" action="bypass -h npc_%objectId%_multisell 5000" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </td> <td> <tr> <td> <button value="list 2 2" action="bypass -h npc_%objectId%_multisell 5001" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </td> <tr> <td> <button value="list 3" action="bypass -h npc_%objectId%_multisell 5003" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </td> <tr> <td> <button value="Exchange Cry" action="bypass -h npc_%objectId%_multisell 5002" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </a> </td> <td> <tr> <td> <button value="list 4" action="bypass -h npc_%objectId%_multisell 5004" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </td> <tr> <td> <button value="list 5" action="bypass -h npc_%objectId%_multisell 5005" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </td> <td> </table></center></body></html>
Re: some questions
Posted: Tue Jan 12, 2010 8:43 pm
by jurchiks
Code: Select all
<html><body><title>seller</title><center>Welcome!<br><table width="260" border="0" cellspacing="0"> <tr> <td align=center><button bla bla width=100 height=21></td> <td align=center><button blabla2 width=100 height=21></td> </tr> <tr> <td align=center><button bla bla width=100 height=21></td> <td align=center><button blabla2 width=100 height=21></td> </tr></table></center></body></html>
don't forget to change the buttons and text
also, if you want each button in a new line, don't use table
and for heaven's sake don't use so much indentation, it's not necassary and looks stupid, html is not java
oh, almost forgot,
SAVE IT AS .HTM, NOT .HTML