OK論壇

 找回密碼
 註冊
查看: 1054|回復: 4

此腳本的開啟時間及關閉時間哪裡設定

 關閉 [複製鏈接]

該用戶從未簽到

發表於 2009-7-12 16:41:50 | 顯示全部樓層 |閱讀模式

  1. - script Agit2_Event -1,{
  2. end;
  3. OnClock2100: //start time for Sat(6)
  4. OnClock2300: //end time for Sat(6)
  5. OnAgitInit2:
  6. // starting time checks
  7. if( (gettime(4)==6) && (gettime(3)>=21 && gettime(3)<23) ) {
  8.   if (!agitcheck2()) {
  9.    AgitStart2;
  10.    callsub S_DisplayOwners1;
  11.    sleep2 500;
  12.    callsub S_DisplayOwners2;
  13.   }
  14.   end;
  15. }
  16. // end time checks
  17. if ( (gettime(4)==6) && (gettime(3)==23) ) {
  18.   if (agitcheck2()) {
  19.    AgitEnd2;
  20.    callsub S_DisplayOwners1;
  21.    sleep2 500;
  22.    callsub S_DisplayOwners2;
  23.   }
  24.   end;
  25. }
  26. end;
  27. S_DisplayOwners1:
  28. if (GetCastleData("arug_cas01",1)) {
  29.   Announce "秘密基地 [" + GetCastleName("arug_cas01") + "]的 '馬勒杜'被 [" + GetGuildName(GetCastleData("arug_cas01",1)) + "] 公會所佔領了",bc_all;
  30. }
  31. else {
  32.   Announce "秘密基地 [" + GetCastleName("arug_cas01") + "]的 '馬勒杜'被 [] 公會所佔領了",bc_all;
  33. }
  34. if (GetCastleData("arug_cas02",1)) {
  35.   Announce "秘密基地 [" + GetCastleName("arug_cas02") + "]的 '希樂'被 [" + GetGuildName(GetCastleData("arug_cas02",1)) + "] 公會所佔領了",bc_all;
  36. }
  37. else {
  38.   Announce "秘密基地 [" + GetCastleName("arug_cas02") + "]的 '希樂'被 [] 公會所佔領了",bc_all;
  39. }
  40. if (GetCastleData("arug_cas03",1)) {
  41.   Announce "秘密基地 [" + GetCastleName("arug_cas03") + "]的 '霍倫'被 [" + GetGuildName(GetCastleData("arug_cas03",1)) + "] 公會所佔領了",bc_all;
  42. }
  43. else {
  44.   Announce "秘密基地 [" + GetCastleName("arug_cas03") + "]的 '霍倫'被 [] 公會所佔領了",bc_all;
  45. }
  46. if (GetCastleData("arug_cas04",1)) {
  47.   Announce "秘密基地 [" + GetCastleName("arug_cas04") + "]的 '吉本'被 [" + GetGuildName(GetCastleData("arug_cas04",1)) + "] 公會所佔領了",bc_all;
  48. }
  49. else {
  50.   Announce "秘密基地 [" + GetCastleName("arug_cas04") + "]的 '吉本'被 [] 公會所佔領了",bc_all;
  51. }
  52. if (GetCastleData("arug_cas05",1)) {
  53.   Announce "秘密基地 [" + GetCastleName("arug_cas05") + "]的 '巴拿迪斯'被 [" + GetGuildName(GetCastleData("arug_cas05",1)) + "] 公會所佔領了",bc_all;
  54. }
  55. else {
  56.   Announce "秘密基地 [" + GetCastleName("arug_cas05") + "]的 '巴拿迪斯'被 [] 公會所佔領了",bc_all;
  57. }
  58. end;
  59. S_DisplayOwners2:
  60. if (GetCastleData("schg_cas01",1)) {
  61.   Announce "秘密基地 [" + GetCastleName("schg_cas01") + "]的 '喜民'被 [" + GetGuildName(GetCastleData("schg_cas01",1)) + "] 公會所佔領了",bc_all;
  62. }
  63. else {
  64.   Announce "秘密基地 [" + GetCastleName("schg_cas01") + "]的 '喜民'被 [] 公會所佔領了",bc_all;
  65. }
  66. if (GetCastleData("schg_cas02",1)) {
  67.   Announce "秘密基地 [" + GetCastleName("schg_cas02") + "]的 '安得郎克'被 [" + GetGuildName(GetCastleData("schg_cas02",1)) + "] 公會所佔領了",bc_all;
  68. }
  69. else {
  70.   Announce "秘密基地 [" + GetCastleName("schg_cas02") + "]的 '安得郎克'被 [] 公會所佔領了",bc_all;
  71. }
  72. if (GetCastleData("schg_cas03",1)) {
  73.   Announce "秘密基地 [" + GetCastleName("schg_cas03") + "]的 '畢得布萊因'被 [" + GetGuildName(GetCastleData("schg_cas03",1)) + "] 公會所佔領了",bc_all;
  74. }
  75. else {
  76.   Announce "秘密基地 [" + GetCastleName("schg_cas03") + "]的 '畢得布萊因'被 [] 公會所佔領了",bc_all;
  77. }
  78. if (GetCastleData("schg_cas04",1)) {
  79.   Announce "秘密基地 [" + GetCastleName("schg_cas04") + "]的 '何料德'被 [" + GetGuildName(GetCastleData("schg_cas04",1)) + "] 公會所佔領了",bc_all;
  80. }
  81. else {
  82.   Announce "秘密基地 [" + GetCastleName("schg_cas04") + "]的 '何料德'被 [] 公會所佔領了",bc_all;
  83. }
  84. if (GetCastleData("schg_cas05",1)) {
  85.   Announce "秘密基地 [" + GetCastleName("schg_cas05") + "]的 '思凱提樂尼'被 [" + GetGuildName(GetCastleData("schg_cas05",1)) + "] 公會所佔領了",bc_all;
  86. }
  87. else {
  88.   Announce "秘密基地 [" + GetCastleName("schg_cas05") + "]的 '思凱提樂尼'被 [] 公會所佔領了",bc_all;
  89. }
  90. end;
  91. }
複製代碼

評分

參與人數 2積分 -80 現金 -80 積極性 -80 收起 理由
小剪★ -30 -30 -30 閒置問題
lendlice0001 -50 -50 -50 請放在一起問,詳見板規

查看全部評分

回復

使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2009-7-12 17:19:29 | 顯示全部樓層
    眼 睛 很 大
    # OnClock2100: //start time for Sat(6)
    # OnClock2300: //end time for Sat(6)
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    奮斗
    2018-3-31 04:55 PM
  • 簽到天數: 9 天

    連續簽到: 1 天

    [LV.3]偶爾看看II

    發表於 2009-7-13 01:07:55 | 顯示全部樓層
    # OnClock2100: //start time for Sat(6)
    # OnClock2300: //end time for Sat(6)
    在第三第四行不是嗎 ..0.0
    回復 支持 反對

    使用道具 舉報

    該用戶從未簽到

     樓主| 發表於 2009-7-14 11:21:13 | 顯示全部樓層
    星期幾呢??

    怎麼設置呢??
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2018-12-14 06:21 PM
  • 簽到天數: 123 天

    連續簽到: 2 天

    [LV.7]常住居民III

    發表於 2009-7-14 11:39:13 | 顯示全部樓層
    On<weekday><hour><minute>: <-- 指定每星期的幾點幾分執行某事件
    minute 代表 分   ( 00 - 59 )
    hour  代表 時   ( 00 - 23 )
    day   代表 天   ( 01 - 31 )
    month  代表 月   ( 01 - 12 )
    weekday 代表 星期幾 ( 星期一 == Mon 星期二 == Tue
               星期三 == Wed 星期四 == Thu
               星期五 == Fri 星期六 == Sat
               星期日 == Sun       )



    轉 ))芭樂文
    回復 支持 反對

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 註冊

    本版積分規則

    Archiver|手機版|小黑屋|OK討論區

    GMT+8, 2025-6-30 11:36 AM , Processed in 0.067553 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回復 返回頂部 返回列表