Jump to content
  • 0

how to set castle treasure spawn time?


manabeast

Question


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

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:

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

oh i see, will it reset when reach sunday? then the calculate will restart again?

1

2-treasure box

3

4-treasure box

5

6-treasure box

7

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

No, It doesn't works with days only 48h per 48h. You want to have some specific days ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

actually i dun want castle drop spawn too many time. i want 1 week 3 time treasure box will spawn. dun cure any day hehe....

Edited by manabeast
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...