Jump to content
  • 0
Sign in to follow this  
Takumirai

Disguise Event [Help]

Question

https://github.com/HerculesWS/Hercules/blob/master/npc/custom/events/disguise.txt

 

- i would like to ask a script to be like this

- from 8am - 8pm [every 2 hours event will start, with 10 rounds]

but when 9pm - 7am [every 2 hours event will start, with 5 rounds]

 

- i dont know if this script will be correct

 

OnClock8000:
OnClock1100:
OnClock1400:
OnClock1700:
OnClock2000:
        set .Rounds,10;
set .ResetCounter,.ResetCounter+1;
set .EventON,1;
set .Timer,1;
set .Wait,1;
announce "The Disguise Event will begin in 3 minutes.",bc_all | bc_blue;
announce "The Event is being held in Prontera.",bc_all | bc_blue;
setnpctimer 0;
initnpctimer;
end;
 
[where to put the next OnClock from 9pm - 7am]
Edited by Takumirai

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

So, based on what you posted it should look like this:

OnClock2100:OnClock2200:OnClock2300:OnClock0000:OnClock0100:OnClock0200:OnClock0300:OnClock0400:OnClock0500:OnClock0600:OnClock0700:.Rounds = 5;callsub iRound5;end;OnClock0800:OnClock1000:OnClock1200:OnClock1400:OnClock1600:OnClock1800:OnClock2000:        set .Rounds,10;iRound5:    set .ResetCounter,.ResetCounter+1;    set .EventON,1;    set .Timer,1;    set .Wait,1;    announce "The Disguise Event will begin in 3 minutes.",bc_all | bc_blue;    announce "The Event is being held in Prontera.",bc_all | bc_blue;    setnpctimer 0;    initnpctimer;    end;

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.