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"
some questions
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: some questions
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.
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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 3
- Joined: Mon Jan 11, 2010 10:13 pm
Re: some questions
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

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>
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: some questions
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>
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
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.