Jump to content

Recommended Posts

Acum 21 ore, Pisti95 a spus:

I have a problem, when my GM character on CH99 and other character CH1, and i wrote ( /a name level ), CH99 does stop.

 

/A COMMAND BLOCK FOR PLAYERS

Still in cmd_gm.cpp, search for the function "ACMD(do_advance)" and under

  Ascunde conținuturi

    LPCHARACTER tch = CHARACTER_MANAGER::instance().FindPC(arg1);

 

  Ascunde conținuturi

    if (tch->IsGM() == false)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "You can only change the level of GM characters.");
        return;
    }

yes sometimes that's happen..why ? On mine core1 stop..

  • Good 1
if (tch->IsGM() == false && tch)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "You can only change the level of GM characters.");
        return;
    }

 

On 4/8/2017 at 7:18 AM, emanuel said:

yes sometimes that's happen..why ? On mine core1 stop..

Try with my code..i think it should work.

  • Love 1

Ready to code :P

  • 1 year later...
  • Premium
14 hours ago, Syriza said:

If gamemaster opens chest and inventory is full item will drop to ground and the result is that other player Can pick this item on ground.

 

 

anyone Solution  ? :)

Sad, when your team mates wanna helping players lol


 

vor 1 Minute schrieb T4UMP:

*GM

 

Yeah bro, but a GM / and all others in the team, only have to support ingame, they are not supposed to open chests and have fun spawning monsters and stuff.

but if you want to give your GM full rights, then this release is very important.

  • 10 months later...
  • Active Member
1 hour ago, KavMira said:

If you use the command /a /setskillother and /set to a character who will not exist, the core goes down.

How can I adjust it so that it also asks if it exists, if not, you get the answer

	if (!tch)
	{
		ch->ChatPacket(CHAT_TYPE_INFO,  LC_TEXT("CHAR_DOES_NOT_EXIST"));
		return;
	}

 

  • Premium
On 11/8/2018 at 1:38 AM, Syriza said:

If gamemaster opens chest and inventory is full item will drop to ground and the result is that other player Can pick this item on ground.

 

 

anyone Solution  ? :)

Char_item.cpp

Find for:    item->AddToGround (GetMapIndex(), GetXYZ());

Before add:

        if (GetGMLevel() > GM_PLAYER)
        {
            ChatPacket(CHAT_TYPE_INFO, "Trying to fuck from ground.");
            return;
        }

 

  • Love 2
vor einer Stunde schrieb WeedHex:

Char_item.cpp

Find for:    item->AddToGround (GetMapIndex(), GetXYZ());

Before add:


        if (GetGMLevel() > GM_PLAYER)
        {
            ChatPacket(CHAT_TYPE_INFO, "Trying to fuck from ground.");
            return;
        }

 

XD Thanks

  • Active Member
13 hours ago, Fleurius said:

How can i block GMs from attacking monsters? Thank you :)

In char_battle.cpp:

Spoiler

Search:


bool CHARACTER::Damage(LPCHARACTER pAttacker, int dam, EDamageType type)

Add under:


	if (GetGMLevel() > GM_PLAYER && GetRaceNum() > 7)
		return false;

 

 

  • Love 1
vor 7 Stunden schrieb Heathcliff™:

In char_battle.cpp:

  Inhalt unsichtbar machen

Search:



bool CHARACTER::Damage(LPCHARACTER pAttacker, int dam, EDamageType type)

Add under:



	if (GetGMLevel() > GM_PLAYER && GetRaceNum() > 7)
		return false;

 

 

 

Am 11.10.2019 um 16:42 schrieb WeedHex:

Char_item.cpp

Find for:    item->AddToGround (GetMapIndex(), GetXYZ());

Before add:


        if (GetGMLevel() > GM_PLAYER)
        {
            ChatPacket(CHAT_TYPE_INFO, "Trying to fuck from ground.");
            return;
        }

 

Don't work for me.

  • 6 years later...
On 4/7/2017 at 7:44 PM, Rudhon said:

Haha, nice..but is kind of useless, gamemasters can get level 60 and set their alignment to negative, after that they can disable their protection and let the players kill 'Em..their items will drop.

Hm intresting.. i was reading this post even.. after some years.. don't ask me why 🤔
At char_battle.cpp look for void CHARACTER::ItemDropPenalty(LPCHARACTER pkKiller) under it:
 

{
	// Previne que GMs dropem itens por ter karma negativo
	if (IsGM())
	{
		ChatPacket(CHAT_TYPE_INFO, "Deuses não querem saber de karma...");
		return;
	}

 

Also one more that i didn't see no one commenting about it. Drop Yang.
At char_item.cpp look for bool CHARACTER::DropGold(int gold) under it:
 

bool CHARACTER::DropGold(int gold)
{
	if (IsGM())
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Proibido dropar Yang com GM."));
		return false;
	}

If you want to allow any specific GM to do drop yang or anything you can even do it by character name by doing it like this (you can apply this same logic to any other ones in this post):
 

bool CHARACTER::DropGold(int gold)
{
	std::string nNome = GetName();
	if (IsGM() && nNome != "Name-Exemple")
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Proibido dropar Yang com GM."));
		return false;
	}

PS: Sorry for resurrecting this topic... just nostalgia... i guess

Edited by Dynamic

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.