Multi NPC

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
diablodoro
Posts: 67
Joined: Thu Oct 11, 2007 8:54 pm

Multi NPC

Post by diablodoro »

hello
i was searching in the forum for Multi NPC but i didnt fiend anithing and i wonted to ask

well im trying to make NPC that make everithing i mean:
Werehouce
Clan Wearhouce
Clan options
and add

but i have problem linking the "bottons"
i use this code

Code: Select all

<tr><td><br></td></tr> <tr>   <td align=center><button value="Clan WH" action="bypass -h npc_%objectId%_Chat CWH" width=85 height=26 back="L2UI_CT1.Windows_DF_Drawer_Bg_Darker" fore="L2UI_CT1.Windows_DF_Drawer_Bg_Darker"></td>   </tr>
the problem is

Code: Select all

bypass -h npc_%objectId%_Chat CWH
i don't know how to edit this so i can use the htm of other charecters

10x alot :)

PC: how to link one NPC to the htm of other NPC
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Multi NPC

Post by jurchiks »

bypass -h Link default/35098.htm
BUT if there are some npc-instance-specific bypasses, those won't work with your NPC.
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.
User avatar
diablodoro
Posts: 67
Joined: Thu Oct 11, 2007 8:54 pm

Re: Multi NPC

Post by diablodoro »

you mean like this ?

Code: Select all

<td align=center><button value="Clan" action="bypass -h link data/scripts/village_master/9000_clan/9000-01.htm" width=85 height=26 back="L2UI_CT1.Windows_DF_Drawer_Bg_Darker" fore="L2UI_CT1.Windows_DF_Drawer_Bg_Darker"></td>  
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Multi NPC

Post by jurchiks »

mmmmmnooooo, it only allows HTMLs from data/html/*, not from data/scripts or any other folder.
For that you could try "bypass -h Quest 9000_clan". Just don't forget to add the NPC ID to the scripts' addTalkId.
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.
User avatar
diablodoro
Posts: 67
Joined: Thu Oct 11, 2007 8:54 pm

Re: Multi NPC

Post by diablodoro »

i was know that i miss someting :D 10x alot :) i will try it :)
Post Reply