Jump to content
  • 0

[REMAKE] Happy Hour EXP "extended"


CyberDevil

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Hi,

I modified the script of this npc described in this topic:

In addition to the choice of the percentage of Base and Job EXP, now the NPC also asks you how many hours you want the event to be active, also notifies with an announcement (in addition to the global one at the start of the event) all the players who enter at a later time if the event has already started so that they are informed of the active event in progress.
Everything seems to be working well but the problem is that I think the timer is linked to the GM that triggers the event and not to the NPC, because if the GM remains connected in the game, the event starts and ends regularly at the set times, but if the GM will start the Happy Hour EXP and then exit the game, the event never stops.
Can anyone help me and debug it?

happy_hour_npc.txt

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

happy_hour_npc (1) (1).txt

Edited by sader1992
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

try like this

happy_hour_npc.txt

 

Edited by sader1992
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Thanks @sader1992, I tried your script and this time the timer is correctly connected to the npc and no longer to the GM, but any number of hours I enter in the input field (.time), the event always lasts 1 hour only, even if imposed lasting 3 hours, the event ends after 1 hour anyway.
Is there any way to multiply "OnTimer3600000" by ".time"?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

I messed up some things

this should work

happy_hour_npc (1).txt

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Come on @sader1992, we're almost there! ?
Now another problem has appeared, if I insert 1 hour the event continues for 2 hours... if I insert 2 hours the event continues for 3 hours... if I insert 4 hours the event continues for 5 hours... etc.
Whatever number of hours I enter in the input, the event always goes on 1 hour longer, so making it last 1 hour is not possible.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

now it works exactly as I wanted, thanks @sader1992 +1 for you! ?

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