Jump to content
  • 0

[HELP]Revive time on map index[I HAVE TUTORIAL FOR NO MAP INDEX]


killerakos1999g4

Question

Can anyone help me with that; i want to increase revive time on map index for example map index: 1

here is the source of revive time:


 

Spoiler

 

ACMD(do_restart)
{
    if (false == ch->IsDead())
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "CloseRestartWindow");
        ch->StartRecoveryEvent();
        return;
    }

    if (NULL == ch->m_pkDeadEvent)
        return;

    int iTimeToDead = (event_time(ch->m_pkDeadEvent) / passes_per_sec);

    if (subcmd != SCMD_RESTART_TOWN && (!ch->GetWarMap() || ch->GetWarMap()->GetType() == GUILD_WAR_TYPE_FLAG))
    {
        if (!test_server)
        {
            if (ch->IsHack())
            {
                //ĽşÁö ¸ĘŔĎ°ćżěżˇ´Â ĂĽĹ© ÇĎÁö ľĘ´Â´Ů.
                if (false == CThreeWayWar::instance().IsSungZiMapIndex(ch->GetMapIndex()))
                {
                    ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ľĆÁ÷ Ŕç˝ĂŔŰ ÇŇ Ľö ľř˝Ŕ´Ď´Ů. (%dĂĘ ł˛Ŕ˝)"), iTimeToDead - (180 - g_nPortalLimitTime));
                    return;
                }
            }

            if (iTimeToDead > 170)
            {
                ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ľĆÁ÷ Ŕç˝ĂŔŰ ÇŇ Ľö ľř˝Ŕ´Ď´Ů. (%dĂĘ ł˛Ŕ˝)"), iTimeToDead - 170);
                return;
            }
        }
    }

    //PREVENT_HACK
    //DESC : â°í, ±łČŻ â ČÄ Ć÷Ĺ»Ŕ» »çżëÇĎ´Â ąö±×żˇ ŔĚżëµÉĽö Ŕ־
    //        ÄđŸŔÓŔ» Ăß°ˇ 
    if (subcmd == SCMD_RESTART_TOWN)
    {
        if (ch->IsHack())
        {
            //±ćµĺ¸Ę, ĽşÁö¸ĘżˇĽ­´Â ĂĽĹ© ÇĎÁö ľĘ´Â´Ů.
            if ((!ch->GetWarMap() || ch->GetWarMap()->GetType() == GUILD_WAR_TYPE_FLAG) ||
                   false == CThreeWayWar::instance().IsSungZiMapIndex(ch->GetMapIndex()))
            {
                ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ľĆÁ÷ Ŕç˝ĂŔŰ ÇŇ Ľö ľř˝Ŕ´Ď´Ů. (%dĂĘ ł˛Ŕ˝)"), iTimeToDead - (180 - g_nPortalLimitTime));
                return;
            }
        }

        if (iTimeToDead > 173)
        {
            ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ľĆÁ÷ ¸¶Ŕ»żˇĽ­ Ŕç˝ĂŔŰ ÇŇ Ľö ľř˝Ŕ´Ď´Ů. (%d ĂĘ ł˛Ŕ˝)"), iTimeToDead - 173);
            return;
        }
    }

 


 

if (iTimeToDead > 170) means time to restart here. (10sec)

if (iTimeToDead > 173) means time to restart in town. (7sec)

i want this with map index. to increase the time on only one map! plese if someone know help :)

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
  • Web Developer

Do you want to increase the time to revive "here" just on one map?

If so I think that you can do something like this:

			if (iTimeToDead > 170)
			{
				ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¾ÆÁ÷ Àç½ÃÀÛ ÇÒ ¼ö ¾ø½À´Ï´Ù. (%dÃÊ ³²À½)"), iTimeToDead - 170);
				return;
			}

			if(ch->GetMapIndex() == 1)
			{
				if (iTimeToDead > 130)
				{
					ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¾ÆÁ÷ Àç½ÃÀÛ ÇÒ ¼ö ¾ø½À´Ï´Ù. (%dÃÊ ³²À½)"), iTimeToDead - 170);

					return;
				}
			}
I hope I could help...

QJ0orbR.png

Metin2 Icon Database

Link to comment
Share on other sites

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


×
×
  • 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.