Jump to content
  • 0

Question

Posted

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

  • 0
Posted

<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

  • 0
Posted

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

  • 0
Posted

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.
  • 0
Posted

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.
  • 0
Posted

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?

  • 0
Posted

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.

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...