Jump to content
  • 0

Mushroom Event


morphsx

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

Hello guys, i'm starting on scripting, and I would like some help with the "Find the Mushroom" event that comes with rathena.

 

I would like to know how do to restart it every 30 minutes even if there are still mushrooms left.

 

I´m studying the scripts documentation, and soon i will stop bothering you with these questions. But at the moment i don't know how to do.

 

Thanks in advance!

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:  

Here are the relevant parts of the script:

OnMinute10:	// Start time (every hour)

if (.Status) end;

set .Status,1;

//...

announce "The Find the Mushroom Event has ended. All the Mushrooms have been killed.",0;

set .Status,0;

The .Status NPC variable is set when the event starts, and is unset when it ends. You want to replace the first section with this:
OnMinute00:

OnMinute30:

set .Status,1;

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