Jump to content

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


Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Management

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

raw

raw

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



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