Jump to content
  • 0

how to set castle treasure spawn time?


Question

Posted

is there anyway to set the treasure box spawn time? i want the treasure every 48hour spawn treasure box in guild.

Kriemhild Castle,Bamboo Grove Hill Castle,Schwaltzvalt Guild Castle.

// Treasure Room Spawn Template
//============================================================
-	script	Gld_Trea_Spawn::Gld_Trea_Spawn	-1,{
end;

OnClock0001:

ok for 48hour i think kinda not suitable.

can i set like this?

OnMon0001:

OnWed0001:

OnFri0001:

// Treasure Room Spawn Template
//============================================================
-	script	Gld_Trea_Spawn::Gld_Trea_Spawn	-1,{
end;

OnMon0001:
OnWed0001:
OnFri0001:

6 answers to this question

Recommended Posts

Posted

You can make something like that :


// Treasure Room Spawn Template
//============================================================
-	   script  Gld_Trea_Spawn::Gld_Trea_Spawn  -1,{
	end;

OnClock0001: //will run each day
set $Time_treasure,$Time_treasure+1; //add 1 day
if ( $Time_treasure != 2) { end; } // if diffirent of 2 days the script won't launch
set $Time_treasure,0; // script launch ... return to 0
//then run the script

This topic should be in script support ;D

Posted

thanks. opps.. i thought is server side thing post here. but i little not understand

OnClock0001: //(this is what time spawn right?)
set $Time_treasure,$Time_treasure+1; //( what mean add 1 day? winner can get how many spawn time? example i set 3. 1 week 3 time only right?)
if ( $Time_treasure != 2) { end; } // (no understnad)
set $Time_treasure,0; // (no understand)
//then run the script

Posted
OnClock0001: // This is activated only once per day so each 24hours
set $Time_treasure,$Time_treasure+1; //No this only add 1 to the value for each day / per 24 hours
if ( $Time_treasure <= 2) { end; } // I've modify in case of problem, but that means when 2*24 hours passed, so $Time_treasure == 2, the script for spawn treasure will be run. If you have only 24 hours passed, the script of treasure spawn wouldn't be run.
set $Time_treasure,0; // Back to 0 day for restart the cooldown.
//then run the script

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...