segfault Posted June 23, 2010 Posted June 23, 2010 is the castle status npc custom made or is it within the l2off pack? anyone might wanna share a tutorial on how i can implement the castle status npc including registration for the players? Quote
0 BBanHammer Posted June 23, 2010 Posted June 23, 2010 I suggest you make a NPC with links to all the HTMLs of the NPCs with castle status. Quote
0 segfault Posted June 23, 2010 Author Posted June 23, 2010 what? please explain bbhanhammer!!! Quote
0 BBanHammer Posted June 24, 2010 Posted June 24, 2010 <a action="link name_of_htm_file.htm">Name of Castle</a> Go to each NPC outside castle where you can see the status click on it and use that html where you can see the status and sign up. Just link all the NPCs from one htm and one npc. I didn't thy this but i suppose it should work :o Quote
0 Anarchy Posted June 24, 2010 Posted June 24, 2010 <a action="link name_of_htm_file.htm">Name of Castle</a> Go to each NPC outside castle where you can see the status click on it and use that html where you can see the status and sign up. Just link all the NPCs from one htm and one npc. I didn't thy this but i suppose it should work :o That won't work, each castle status NPC uses the same single AI function for displaying the castle status, which works by the residence territory of the NPC itself, so your only choices are to have a copy of each NPC in your main town, or extend. I chose the latter, which is quite easy to do. if (nCastleID <= 0 || nCastleID > 9) { g_Log->AddW(2, L"Invalid castle ID -> [%d][%s]", nCastleID, pSocket->User->Nickname); return false; } CCastle *pCastle = (CCastle *)g_ResidenceDB->GetResidenceByID(nCastleID); if (pCastle) { pCastle->SendSiegeInfo(pSocket, pSocket->User); } else { g_Log->AddW(2, L"Error getting CCastle Instance"); } Quote
0 segfault Posted June 24, 2010 Author Posted June 24, 2010 what code is that? NASC? what am i suppose to do with it? sorry, but i do not know how to work with extenders :( Quote
0 segfault Posted June 24, 2010 Author Posted June 24, 2010 what code is that? NASC? what am i suppose to do with it? sorry, but i do not know how to work with "extend" :( Quote
0 Anarchy Posted June 24, 2010 Posted June 24, 2010 what code is that? NASC? what am i suppose to do with it? sorry, but i do not know how to work with extenders :( Then the only option for you is to make a spawn of each of the castle NPC's in your own town. Quote
0 segfault Posted June 24, 2010 Author Posted June 24, 2010 can you please tell me how to work with the option you're offering, i'm interested. Quote
0 Anarchy Posted June 24, 2010 Posted June 24, 2010 can you please tell me how to work with the option you're offering, i'm interested. You need to be familiar with extenders to be able to use the other option that I mentioned. Quote
0 segfault Posted June 24, 2010 Author Posted June 24, 2010 so now the other option is to find the 'html' and spawn the npc registration/status in the main town? Quote
0 segfault Posted June 25, 2010 Author Posted June 25, 2010 Using http://www.maxcheaters.com/forum/index.php?topic=154347.0 and http://www.maxcheaters.com/forum/index.php?topic=150998.0 written by you is what i gotta do i believe. the c++ code you written earlier, i guess, is to be added to DllMain.cpp, and compiled into Extender.dll and then rebuilt with l2server.exe am i correct? Quote
0 Anarchy Posted June 25, 2010 Posted June 25, 2010 Yes but it's not that simple, you need to create a HTML Bypass hook to add your own custom bypass command, I'm gonna share an ext to do this right now and I'll link you to it. Quote
0 segfault Posted June 25, 2010 Author Posted June 25, 2010 damn son, how you know all this; what server did you developed on/for? Quote
0 Anarchy Posted June 25, 2010 Posted June 25, 2010 http://www.maxcheaters.com/forum/index.php?topic=156766 5 long years of playing and developing anywhere and everywhere, is how I know :p Quote
0 segfault Posted June 25, 2010 Author Posted June 25, 2010 i also written in your topic: http://www.maxcheaters.com/forum/index.php?topic=154347.0 if you can; please reply ;) thanks a lot!! Quote
Question
segfault
is the castle status npc custom made or is it within the l2off pack?
anyone might wanna share a tutorial on how i can implement the castle status npc including registration for the players?
15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.