Dvrstle Posted September 12, 2012 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
Emistry Posted September 16, 2012 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
Dvrstle Posted September 16, 2012 Author 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
Emistry Posted September 16, 2012 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
Brian Posted September 16, 2012 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
Dvrstle Posted September 16, 2012 Author Posted September 16, 2012 THANKS!!!!! Ill try it later =) Quote
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~~
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.