Page 1 of 1

NPC PROBLEMS

Posted: Sat Nov 06, 2010 9:44 am
by fokysss
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision 4422:
L2JDP Revision 7669:
Helli i will explane everything step by step!
I created custom NPC with ID 1000004 choosed L2Merchant type all other stats copied from original NPC(id32365)
Them created data/htlm/merchant/1000004.htm file for him
After that created data/multisell/6666.xml file
Here is my XML file:
------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Majestic Recipies -->
<list>
<item id="1">
<ingredient id="10639" count="100" />
<production id="5338" count="1" />
</item>
<!-- Next -->
<item id="2">
<ingredient id="10639" count="100" />
<production id="5352" count="1" />
</item>
<!-- Next -->
<item id="3">
<ingredient id="10639" count="100" />
<production id="5382" count="1" />
</item>
<!-- Next -->
<item id="4">
<ingredient id="10639" count="100" />
<production id="5406" count="1" />
</item>
<!-- Next -->
<item id="5">
<ingredient id="10639" count="100" />
<production id="5422" count="1" />
</item>
<!-- Next -->
<item id="6">
<ingredient id="10639" count="100" />
<production id="5432" count="1" />
</item>
</list>
-------------------------------------------------------------------------------------------------------------------
Here is my HTML file:
------------------------------------------------------------------------------------------------
<html><body>Black Market:<br>
Get black market goods<br>
<a action="bypass -h npc_%objectId%_multisell 6666">Coin Shop</a>
</body></html>
-----------------------------------------------------------------------------------------------

Saved all data rebooted server,then entered the game spawned NPC,and i could see my HTML text and link Coin Shop in NPC dialogue box,but it was inactive,when i clicked on it nothing happened!
Then what i did reloaded HTML Multisell NPC and Instance Manager data from Admin panel and some how it started working!
So i created few more xml files to add 6666-1.xml 6666-2.xml 6666-3.xml 6666-4.xml!
Pasted them in HTML/merchant/1000004.htm file!

<a action="bypass -h npc_%objectId%_multisell 6666-1">Majestic</a> and so on!
BUT:i get the same problem and i can not do anything,all links on NPC dialogue box seems to be inactive!
Can somebody tell me what am i doing wrong?

Re: NPC PROBLEMS

Posted: Sat Nov 06, 2010 10:32 am
by _DS_
Relog.

Re: NPC PROBLEMS

Posted: Sat Nov 06, 2010 1:47 pm
by fokysss
What do you mean by relog?
I reloged with admin acc and sam prob appeares!
It is strange,it can not be any error in code,because first time when i had that problem i solved it in some misterious way :|

Re: NPC PROBLEMS

Posted: Sat Nov 06, 2010 2:01 pm
by _DS_
Neither happens with me. //reload multisell and relog (because list cached in l2pcinstance) always do the job.

Re: NPC PROBLEMS

Posted: Sat Nov 06, 2010 2:03 pm
by fokysss
Now i have made even bigger mess with my experiments yesterday,all Quest dialogue boxes would not open :(

Re: NPC PROBLEMS

Posted: Sat Nov 06, 2010 2:19 pm
by fokysss
Quest dialogue is OK now after restart!
But multisell problem is still the same,i did //reload multisell and relog but nothing happened!
Maybe i should delete some cache files?
By the way i am using Debina x64 ,dunno maybe something is different with Linux

Re: NPC PROBLEMS

Posted: Sat Nov 06, 2010 4:10 pm
by fokysss
Problem solved topic can be locked!
It was mistake by me i used wrong simbols to name xml files : 6666-1 instead of 66661!