Jump to content
  • 0

every 6 hours event will start


HappyMan

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

i want every 6 hours this event will start. how?

 

thanks in advance. 

// ---            ARTHistic's Property            ---
// ---    Please visit http://thdesigns.co.nr     ---
// ---           Scripted By: ARTHistic           ---
// ---         Do Not Revomed the Credits         ---

vip,52,82,5	script	Barricade Summoner	856,{
	mes "[ Treasure Box Event ]";
	mes "Hello, I'm a new mage here in Midgard. Every 6 hour, I tried to cast my summoning spells and there a chance that i can summon a Barricade that will give you items once you destroy it. I only cast my spell on main city and I immediately announce to everyone once I perfectly cast my spells. Anyways, I will give you a little hint...";
        if( $@tboxevent == 0 ){
        	mes "I ^ff0000failed^000000 to summoned the Barricade Rare last time.^000000";
		close;
	}else {
        	mes "^I successfully summoned the Barricade last time.";
	        close;
	}


OnMinute00:
	set $@tboxevent, rand(2);
	if ( $@tboxevent != 0 ){
		announce "Barricade Summoner: I perfectly cast my summoning skills.",0;
		sleep2 5000;
		announce "A rare Barricade will be spawned in 30 seconds at abyss_03.",0;
		sleep2 30000;
		monster "abyss_03.gat",98,104,"Barricade",3000,1,"Barricade Summoner::OnTBoxKilled";
		end;
	}else {
		end;
	}
	end;

OnTBoxKilled:
	announce "The rare Barricade has been founded and destroyed by "+strcharinfo(0)+"!", bc_all;
	getitem 20561,1;
	end;
}

 

*every 6 hours event will start sorry...

 

Edited by HappyMan
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Change

OnMinute00:

To

OnClock0600: //6am
OnClock1200: //12pm
OnClock1800: //6pm
OnClock0000: //12am

Syntax

OnClock<hour><minute>:
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

it works. thanks

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