Jump to content
  • 0

Automatic Day and Night


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Hello rA :)

i would like to request a script that goes like this :)

when 06:00 day command and it announces "Good Morning Intel Ragnarok Players."

when 18:00 night command and it announces "Good Evening Intel Ragnarok Players."

Thanks,

SlashGeeGee

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

-    script    DayNight    -1,{
   end;
OnClock0600:
   announce "Good Morning Intel Ragnarok Players",bc_blue|bc_all;
   day;
   end;
OnClock1800:
   announce "Good Evening Intel Ragnarok Players",bc_blue|bc_all;
   night;
   end;
OnInit:
   if(gettime(3)>=6 && gettime(3)<18)
       end;
   else
       night;
end;

}

  • Upvote 1
  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

Here:

-<tab>script<tab>DayNight<tab>-1,{
OnInit:
 if ((gettime(3) < 6) || (gettime(3) >= 22)) night;
 end;

OnClock0600:
 announce "The sun is rising. [6:00]",bc_all,0xEEEEEE;
 day;
 end;

OnClock1800:
 announce "It's getting dark and the moon is rising. [18:00]",bc_all,0xEEEEEE;
 night;
 end;
}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

- script DAYNNIGHT -1,{
OnClock0600:
announce "Good Morning Intel Ragnarok Players",bc_blue|bc_all;;
end;
OnClock1800:
announce "Good Evening Intel Ragnarok Players",bc_blue|bc_all;;
end;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

-    script    Day_Night    -1,{
OnClock0600:
  announce "Good Morning Intel Ragnarok Players",bc_blue|bc_all;
  day;
  end;

OnClock1800:
  announce "Good Evening Intel Ragnarok Players",bc_blue|bc_all;
  night;
  end;
}

where to put this script sir... /ok

Put it into a txt file, tabulate the header and then place the txt inside your NPC folder in your server. Make it to be loaded permanent at every server reload, then load it into the game.
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/18/12
  • Last Seen:  

prt_in,175,50,4 script Tambayan 747,{

OnInit:

if ((gettime(3) < 6) || (gettime(3) >= 22)) night;

end;

OnClock0600:

announce "The sun is rising. [6:00]",bc_all,0xEEEEEE;

day;

end;

OnClock1800:

announce "It's getting dark and the moon is rising. [18:00]",bc_all,0xEEEEEE;

night;

end;

}

I did it like this one. and put in custom folder. is that ok. making it an existing npc?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

You don't have to use an actual NPC for that, anyway if you're using a visible NPC, nothing will happen if you click on it.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/18/12
  • Last Seen:  

Its working Both Ways ^_^. Thanks For this!! /no1

I want to put mes on it hahaha. Saying Good evening or Good Morning etc. When you click on it. I know its posible But dont know how to do it...

Edited by dice4real
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Read: Basic_Scripting#Message

if (isnight()) mes "Good evening!";
else mes "Good morning!";
close;

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   1
  • Joined:  10/18/12
  • Last Seen:  

where should i cue it? Thank you For this ^_^

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