Jump to content
  • 0

[REMAKE] Happy Hour EXP "extended"


Question

Posted

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

6 answers to this question

Recommended Posts

  • 0
Posted

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"?

  • 0
Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...