SlashGeeGee Posted May 9, 2012 Group: Members Topic Count: 111 Topics Per Day: 0.02 Content Count: 573 Reputation: 20 Joined: 11/19/11 Last Seen: October 24, 2014 Share Posted May 9, 2012 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 Quote Link to comment Share on other sites More sharing options...
1 QQfoolsorellina Posted November 10, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted November 10, 2012 - 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; } 1 1 Quote Link to comment Share on other sites More sharing options...
Bahmut Posted May 9, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted May 9, 2012 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; } 1 Quote Link to comment Share on other sites More sharing options...
Syouji Posted May 9, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share Posted May 9, 2012 - 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; } 1 Quote Link to comment Share on other sites More sharing options...
dice4real Posted November 10, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 45 Reputation: 1 Joined: 10/18/12 Last Seen: October 29, 2024 Share Posted November 10, 2012 where to put this script sir... Quote Link to comment Share on other sites More sharing options...
Ryokem Posted November 10, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 205 Reputation: 19 Joined: 10/12/12 Last Seen: November 7, 2013 Share Posted November 10, 2012 - 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... 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. 1 Quote Link to comment Share on other sites More sharing options...
dice4real Posted November 10, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 45 Reputation: 1 Joined: 10/18/12 Last Seen: October 29, 2024 Share Posted November 10, 2012 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? Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted November 10, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted November 10, 2012 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. 1 Quote Link to comment Share on other sites More sharing options...
dice4real Posted November 25, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 45 Reputation: 1 Joined: 10/18/12 Last Seen: October 29, 2024 Share Posted November 25, 2012 (edited) Its working Both Ways . Thanks For this!! 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 November 25, 2012 by dice4real Quote Link to comment Share on other sites More sharing options...
Euphy Posted November 25, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted November 25, 2012 Read: Basic_Scripting#Message if (isnight()) mes "Good evening!"; else mes "Good morning!"; close; 3 Quote Link to comment Share on other sites More sharing options...
dice4real Posted November 25, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 45 Reputation: 1 Joined: 10/18/12 Last Seen: October 29, 2024 Share Posted November 25, 2012 where should i cue it? Thank you For this Quote Link to comment Share on other sites More sharing options...
Question
SlashGeeGee
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.