Jump to content
  • 0

Help! Script for broadcast WoE countdown for 1 Hour WoE


luisangelops

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  05/28/17
  • Last Seen:  

Help! Script for broadcast WoE countdown for 1 Hour WoE.

I saw one rathena script but its 2 hours. I already change 120 Timer to 60 but its wrong countdown. heres the script of 2 hours woe count down. but i need 1 hour woe count down. Thank You!

-    script    WOE_Countdown    -1,{    
    OnAgitStart:
        goto STARTWOE;
    end;
    
    OnAgitInit2: 
        goto STARTWOE;
    end;
    
    STARTWOE:
        .woe_countdown = 120;
        initnpctimer;
    end;
    
    OnTimer60000:
        .woe_countdown--;
        if ( .woe_countdown < 10 || ( .woe_countdown % 10 ) == 0 ) {
            announce "[WOE ANNOUNCER] Left "+.woe_countdown+" minute(s)",bc_all;
        }
        if ( .woe_countdown == 1 ) {
            stopnpctimer;
            sleep 30000;
            for ( .@i = 30; .@i > 0; .@i-- ) {
                announce "[WOE ANNOUNCER] Left "+.woe_countdown+" second(s)",bc_all;
            }
        }
        else setnpctimer 0;
    end;
}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

The script seems to be ok. It should work if u change .timer 60.

U said its not working, whats happening?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   29
  • Joined:  10/21/12
  • Last Seen:  

Its working fine.

Edited by qtdan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...