Jump to content

Command for notice in guild?


Recommended Posts

  • 2 weeks later...

I dont know if I understand (I´m drunk totally) and for what you need it.. But!
You can use quest function..

pc.has_guild()


For example:

quest guild_notice begin
	state start begin
		when login with pc.has_guild() begin  -- After every login with guild you get notice..
			notice("Blah blah blah..")
		end
	end
end

-- Change what you want.. This is only example.. You can add playtime, level, just what you want.. :D
-- If is not what you want specified your question :D

 

Link to comment
Share on other sites

  • Active Member

@Denis I have no idea how to do it....

I made this, but I think it won't work:

Spoiler

int _notice_guild( lua_State* L )
	{
		const char* pszGuildName = lua_tostring( L, 1 );
		const LPCHARACTER pChar = CQuestManager::instance().FindGuildByName( pszGuildName );

		if (NULL != pChar)
		{
			ChatPacket(CHAT_TYPE_NOTICE, "%s", pChar->GetGuild());
		}

		return 0;
	}

 

 

I'll be always helpful! 👊 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

    6. 0

      Football Ground

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.