Jump to content

Cancel mining animation


Recommended Posts

Hi. Do you know how to cancel mining animation faster? I changed mining time and i'm getting drop but animation is still continue. I tried like that

if (number(1, 100) <= iPct)
		{
			OreDrop(ch, load->GetRaceNum());
			ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("채광에 성공하였습니다."));
			ch->mining_cancel();
			ch->ChatPacket(CHAT_TYPE_INFO, "i wanna stop you XD");
		}
		else
		{
			ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("채광에 실패하였습니다."));
			ch->mining_cancel();
			ch->ChatPacket(CHAT_TYPE_INFO, "i wanna stop you XD");
		}

and it doesn't work. 

Link to comment
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

  • Forum Moderator

Hmm..
Maybe in char.cpp?:unsure:
 

    // MINING
    if (mining::IsVeinOfOre (GetRaceNum()))
    {
        char_event_info* info = AllocEventInfo<char_event_info>();

        info->ch = this;

        m_pkMiningEvent = event_create(kill_ore_load_event, info, PASSES_PER_SEC(number(7 * 60, 15 * 60)));
    }
    // END_OF_MINING


I'm not sure :P
But you can try :)


Best regards
Raylee

Link to comment
Share on other sites

12 godzin temu, Raylee napisał:

Hmm..
Maybe in char.cpp?:unsure:
 

    // MINING
    if (mining::IsVeinOfOre (GetRaceNum()))
    {
        char_event_info* info = AllocEventInfo<char_event_info>();

        info->ch = this;

        m_pkMiningEvent = event_create(kill_ore_load_event, info, PASSES_PER_SEC(number(7 * 60, 15 * 60)));
    }
    // END_OF_MINING


I'm not sure :P
But you can try :)


Best regards
Raylee

It is destroying the vein after x seconds.

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.