Skip to content

castle status npc

Featured Replies

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?

I suggest you make a NPC with links to all the HTMLs of the NPCs with castle status.

  • Author

what? please explain bbhanhammer!!!

<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

<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");
	}

  • Author

what code is that? NASC? what am i suppose to do with it?

 

sorry, but i do not know how to work with extenders :(

  • Author

what code is that? NASC? what am i suppose to do with it?

 

sorry, but i do not know how to work with "extend" :(

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.
  • Author

can you please tell me how to work with the option you're offering, i'm interested.

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.
  • Author

so now the other option is to find the 'html' and spawn the npc registration/status in the main town?

  • Author

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?

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.

  • Author

damn son, how you know all this; what server did you developed on/for?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.