[外掛](ALL)定時會戰&限制創造角色的間隔時間

版主: 涅魂, 簫哥

Breezee
 
文章: 68
註冊時間: 2003-07-02 8:56 pm
來自: Loverland
性別: 男生

[外掛](ALL)定時會戰&限制創造角色的間隔時間

文章Breezee » 2005-07-07 5:59 pm

我是用V2.07

1:工會怎樣可設置在特定時間全開呢?
Eg. 在1月10日 9:00 pm 所有工會全開


2.怎樣限制角色創造?
近日有小白在wog狂開accounts........

怎樣可以限制角色在24小時後才可創造第二個
角色?


Thank You

Ps. ET 也可以考慮一下加在V3版^_^


Breeze 仔 ^_^

Breeze的無名小站~<---- 來坐坐吧^_^


涅魂
 
文章: 4463
註冊時間: 2004-01-04 11:17 am
來自: Taiwan
性別: 男生

Re: [建議]+[問題]工會+角色創造

文章涅魂 » 2005-07-07 7:28 pm

Breezee 寫:我是用V2.07

1:工會怎樣可設置在特定時間全開呢?
Eg. 在1月10日 9:00 pm 所有工會全開


2.怎樣限制角色創造?
近日有小白在wog狂開accounts........

怎樣可以限制角色在24小時後才可創造第二個
角色?


Thank You

Ps. ET 也可以考慮一下加在V3版^_^

這些其實可以貼在建議版裡面....
1.加入在某特定時間將wog_group_main中所有數據的g_fire設為1,時限之後再設為0的判斷即可。

2.之前有篇問如何封鎖IP的文章,請使用搜尋功能 :wink:

3.在創造角色的地方加入對p_cdate跟p_ip的判斷因該就可以了。 :wink:



Breezee
 
文章: 68
註冊時間: 2003-07-02 8:56 pm
來自: Loverland
性別: 男生

文章Breezee » 2005-07-07 8:04 pm

Thank you ~
but..............your answers I know already ^^"

but i want to know how to edit

So that I dont have to always edit it ~


1.加入在某特定時間將wog_group_main中所有數據的g_fire設為1,時限之後再設為0的判斷即可。
Sometimes I am busy so i cannot open those unions, so I want to know is there a code to edit it to make it automatically^^


2. I don't want to 封鎖IP^^
I just want to set a time limit

3.在創造角色的地方加入對p_cdate跟p_ip的判斷因該就可以了
I donno how to edit XD
Can you teach me ??

Thanks a lot ^^


Breeze 仔 ^_^

Breeze的無名小站~<---- 來坐坐吧^_^


涅魂
 
文章: 4463
註冊時間: 2004-01-04 11:17 am
來自: Taiwan
性別: 男生

文章涅魂 » 2005-07-08 2:28 pm

先一個一個慢慢幫你.... :wink:

1.開啟檔案wog/class/wog_act_group.php
尋找
代碼: 選擇全部
$group=$DB_site->query("select a.g_id,a.g_name from wog_group_main a where a.g_id<>".$group_main[0]." and g_fire=1");

改成
代碼: 選擇全部
      $start_d=8;   ##start_day
      $start_h=14;   ##start_hour
      $end_d=8;   ##end_day
      $end_h=14;   ##end_hour
      $fire=0;
      $time_check=split(",",date("d,H",$time));
      if($time_check[0]>=$start_d && $time_check[0]<=$end_d && $time_check[1]>=$start_h && $time_check[1]<=$end_h){$fire=1;}
      if($fire==1){$group=$DB_site->query("select a.g_id,a.g_name from wog_group_main a where a.g_id<>".$group_main[0]." ");}
      else{$group=$DB_site->query("select a.g_id,a.g_name from wog_group_main a where a.g_id<>".$group_main[0]." and g_fire=1");}

儲存,關閉所有檔案
設定方式只要看程式內容因該就可以知曉一二了。 :wink:




涅魂
 
文章: 4463
註冊時間: 2004-01-04 11:17 am
來自: Taiwan
性別: 男生

文章涅魂 » 2005-07-08 3:08 pm

2.增設創造角色的間隔時間

開啟檔案wog/class/wog_act_chara.php

in chara_make() function

尋找
代碼: 選擇全部
global $DB_site,$_POST,$wog_arry,$lang;

後面,加上
代碼: 選擇全部
      $p_ip=get_ip();
      $chara_data=$DB_site->query("select p_cdate from wog_player where p_ip='".$p_ip."' order by p_cdate desc LIMIT 1");
      while($get_data=$DB_site->fetch_array($chara_data))
      {
         if($get_data && $get_data[0]>time()-60*60*2){alertWindowMsg("2小時內禁止重複註冊!");}
      }

儲存,關閉所有檔案
完畢。 :wink:



Breezee
 
文章: 68
註冊時間: 2003-07-02 8:56 pm
來自: Loverland
性別: 男生

文章Breezee » 2005-07-09 12:41 am

Thank yo so much ~^_^~

Wishes all the best ^^


Breeze 仔 ^_^

Breeze的無名小站~<---- 來坐坐吧^_^

FLOKY﹏。
 

文章FLOKY﹏。 » 2005-07-09 8:23 pm

這樣會影響在網咖,學校,社區中心的人了,,,萬一在網咖上被封,就玩不到wog了




涅魂
 
文章: 4463
註冊時間: 2004-01-04 11:17 am
來自: Taiwan
性別: 男生

文章涅魂 » 2005-07-09 9:34 pm

FLOKY﹏。 寫:這樣會影響在網咖,學校,社區中心的人了,,,萬一在網咖上被封,就玩不到wog了

碰到這種情況的時候嘛........也只能換台電腦了... :?



kens860807
 
文章: 29
註冊時間: 2005-03-25 5:40 am

文章kens860807 » 2005-07-12 4:00 pm

世事總沒有兩全其美......

有得必有失...




回到 外掛區

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 8 位訪客