Jump to content
  • 0

Enable/Disable Warp w/ timer


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

THANKS!!!!! Ill try it later =)

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