Dvrstle Posted September 12, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 361 Reputation: 10 Joined: 12/30/11 Last Seen: January 3, 2016 Share Posted September 12, 2012 Please make a script which every Monday, Wednesday,Friday and Sunday, the entrance for prtg_cas03 will be disabled and then every Tuesday, Thursday and Saturday, the entrance for gefg_cas04 will be disabled. =) Thank you. anyone? bump~~ Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 16, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 16, 2012 you only mentioned to enable it..but didnt mention when it will be disabled...otherwise...the script will enable all the warp .....since it wont have any disabling stuff like what you mentioned above.... Quote Link to comment Share on other sites More sharing options...
Dvrstle Posted September 16, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 361 Reputation: 10 Joined: 12/30/11 Last Seen: January 3, 2016 Author Share Posted September 16, 2012 M W F = 11:59pm Entrance for prtg_cas03 will be disabled and enable the entrance for gefg_cas04 T TH Sat = 11:59pm Entrance for gefg_cas04 will be disabled and enable the entrance for prtg_cas03 Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 16, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 16, 2012 try this - script Sample -1,{ OnInit: OnClock0001: // prtg_cas03 warper name set .@NPCNAME1$,"NAME"; // gefg_cas04 warper name set .@NPCNAME2$,"NAME"; if( gettime(4) ){ disablenpc (( gettime(4) % 2 == 0 )?.@NPCNAME2$:.@NPCNAME1$ ); enablenpc (( gettime(4) % 2 == 0 )?.@NPCNAME1$:.@NPCNAME2$ ); } end; } Quote Link to comment Share on other sites More sharing options...
Brian Posted September 16, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted September 16, 2012 The warp names are copied from the current version of !svn/bc/16782/trunk/npc/warps/guildcastles.txt If yours are different, the edit the warp names accordingly. - script woe_warp_controller -1,{ OnMon2359: OnWed2359: OnFri2359: disablenpc "prtg-3_prtg-3"; maprespawnguildid "prtg_cas03", getcastledata("prtg_cas03",1), 2; enablenpc "gef-g4_gefg-4-05"; end; OnTue2359: OnThu2359: OnSat2359: disablenpc "gef-g4_gefg-4-05"; maprespawnguildid "gefg_cas04", getcastledata("gefg_cas04",1), 2; enablenpc "prtg-3_prtg-3"; end; } Quote Link to comment Share on other sites More sharing options...
Dvrstle Posted September 16, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 361 Reputation: 10 Joined: 12/30/11 Last Seen: January 3, 2016 Author Share Posted September 16, 2012 THANKS!!!!! Ill try it later =) Quote Link to comment Share on other sites More sharing options...
Question
Dvrstle
Please make a script which every Monday, Wednesday,Friday and Sunday, the entrance for prtg_cas03 will be disabled and then every Tuesday, Thursday and Saturday, the entrance for gefg_cas04 will be disabled. =)
Thank you.
anyone?
bump~~
Link to comment
Share on other sites
5 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.