Page 1 of 1

Problems With NPC

Posted: Wed Dec 01, 2010 11:54 am
by gabrielhw
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.

Re: Problems With NPC

Posted: Wed Dec 01, 2010 11:58 am
by SolidSnake
Check the npc's 'collision_radius' and 'collision_height' in the database "npc" table

Re: Problems With NPC

Posted: Wed Dec 01, 2010 12:14 pm
by gabrielhw
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.

Re: Problems With NPC

Posted: Wed Dec 01, 2010 12:17 pm
by SolidSnake
For npc ID 32227 the collision_height is 25 :wink:

Re: Problems With NPC

Posted: Wed Dec 01, 2010 3:55 pm
by jurchiks
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.

Re: Problems With NPC

Posted: Thu Dec 02, 2010 1:20 pm
by gabrielhw
Thanks, for help solidsnake.

problem resolved