Jump to content

Recommended Posts

  • Active+ Member

Hey guys,

someone know how to make a new command for notice in guild?

Command like notice("message") but it must notice only guild players so do something like notice_guild("message").

Thanks for answers!

Sincerely,

ReFresh

 

I'll be always helpful!  😉

Link to comment
https://metin2.dev/topic/20944-command-for-notice-in-guild/
Share on other sites

  • 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

 

quest guild_notice begin
	state start begin
		when login begin
			if pc.has_guild() then
				local guild = pc.get_guild(guild.get_name())
				if (guild == 7) then -- [7] = Guild ID FROM player.guild..
					notice("Blah blah blah..")
				end
			end
		end
	end
end

 

  • 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!  😉

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.