Jump to content
  • 0

Is it able to set mapflag on day/night change?


Golem1988

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   1
  • Joined:  08/08/12
  • Last Seen:  

So, basicly asking if it's able?

And If it is able to set mapflag on day/night change, requesting for sample script :)

Thanks )

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

what mean on day night change ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

So, basicly asking if it's able?

And If it is able to set mapflag on day/night change, requesting for sample script :)

Thanks )

No, there is no label like "OnDay" or "OnNight".

Instead, you could:

1. control your server's day/night cycle with a script (instead of the battle configs)

Then in your script you could have it do 'day' then 'setmapflag'.

or 2. keep using the battle configs for day/night, and add a script that checks every minute (or every hour?) and if it's day, then setmapflag.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Well, there was a src edit on eAthena, that i requested a while back, that created custom npc commands, to set map as day/night at given will, and it wouldn't affect the other maps either. Kinda like they ran on their own clock. I'd re-make it for rAthena, if i still had the code, but sadly i lost it, and it's no longer available on eAthena, since the link went dead.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

@GMOcean

i think this may work just like how you mention it.

Mapflag#nightenabled

Edited by Emistry
Wrong..>.<
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

No that means what ever map has that mapflag, "can" display nightmode effects, when @day/@night is used. If a map doesnt' have that mapflag, the visual effects wont happen on that map.

I was searching for a way, to change a single map to night/day mode, at free will.

Example: turn prontera nighttime, even though everywhere else its day.

Edited by GmOcean
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

owh...maybe i misinterpret the usage of this mapflag..xD because never try this mapflag...LOL... >.<

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