Jump to content
  • 0

Requesting Treasure chest manager


freakmastersx

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  07/20/12
  • Last Seen:  

how can i set every castle after 24hrs of WoE the treasure chest respawn?which means the treasure chest respawn only every 24hrs after the woe. or once a week.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

https://rathena.svn....d/agit_main.txt

They already spawn at 00:01 every day (24 hours).

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

If you wanted the spawns once a week, you'd specify a weekday using gettime(4), ex.:

if (gettime(4) != 3) end; // Don't spawn unless it's Wednesday.

And of course do the same for WOE SE.

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