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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • New user panel SOURCE $ 200 for source code. R$ 1000,00 BRL for source code.    
    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock