If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4223:
L2JDP Revision 7669:
I'm Having some problems with creating a Npc Shop.
When I Spawn the Npc, the same don't spawn at the ground, I already copy other npc sql, but he stays always playing or digged into the ground, but never in the right position as the others npc. I Already tryed to insert him on the spawn list, and the result is the same.
I Have on my server Geodata and Patchfind.
The npc works ok, he shows the buy list, and the buttons are ok. You can click and buy, and all works corect, exept the position of the npc.
So I decided to post here.
Here are the npc html. sql.
40310.html
<html><title>Gilius</title>
<body>
<center>Forgotten Trader<br>
Welcome, if you wan't to trade some Festival Adenas for prizes, I Sure can help you!!!<br>
Please, take a look at my forgotten scrolls, i'm sure you will like.<br>
</center><br><br><br>
<center>
<tr><td><font color="00ff00">Buy/Trade List</font></td></tr>
<tr><td><button value="Forgotten Scrolls" action="bypass -h npc_%objectId%_multisell 40310" width=150 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr>
</center>
Thanks !!
</body>
</html>
40310.sql
('40310', '32227', 'Blenk', '1', 'Itens Trader', '1', 'LineageNPC2.K_M1_master', '15.00', '25.00', '70', 'male', 'L2Merchant', '40', '2444', '2444', '0.00', '0.00', '10', '10', '10', '10', '10', '10', '0', '0', '500', '500', '500', '500', '278', '0', '333', '9646', '0', null, '4', '28', '120', '0', '0', 'LAST_HIT', 'false');
As I said, all Works fine, and only the position of the npc that is always with problems.
Thanks For ALL.
Problems With NPC
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 77
- Joined: Thu Jun 17, 2010 6:32 pm
Problems With NPC
MELERIX FOR PRESIDENT
\O/
\O/
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
Re: Problems With NPC
Check the npc's 'collision_radius' and 'collision_height' in the database "npc" table

-
- Posts: 77
- Joined: Thu Jun 17, 2010 6:32 pm
Re: Problems With NPC
Thanks i'll try. I saw that the other npc have a lower collision height.
Mine is:
Table = Custom_NPC
collision_radius=15
collision_height=70
I'll try with a lower nmber and i'll post de result here.
Thanks SolidSnake, thanks a lot.
Mine is:
Table = Custom_NPC
collision_radius=15
collision_height=70
I'll try with a lower nmber and i'll post de result here.
Thanks SolidSnake, thanks a lot.
MELERIX FOR PRESIDENT
\O/
\O/
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Problems With NPC
don't change anything in any npc except the ID (NOT template ID), name and title, and ofc serversidename/title=1
If you need, change the type (L2Merchant), but unless you're making a custom monster, don't change anything else.
If you need, change the type (L2Merchant), but unless you're making a custom monster, don't change anything else.
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.
-
- Posts: 77
- Joined: Thu Jun 17, 2010 6:32 pm