Jump to content
  • 0

Enable/Disable Warp w/ timer


Question

Posted

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

Posted

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

Posted

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

Posted

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;
}

Posted

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;
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...