Jump to content
  • 0

Need Help on a bulletin board npc


andrew0960

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   0
  • Joined:  09/21/16
  • Last Seen:  

I have one script that's working fine except for the wait time feature, 
 
So basically the feature of the NPC is that you can put and read messages on the board for each of the categories,
 
and the system will automatically delete all message at set time. You need to enter security check code to enter messages and there
 
will a set wait time between every posts. However,  the script is working fine but the wait time seems off?  i can only post 
 
once on each category even i have waited the timer... can someone pls help me fix this.   The wait time should be 10 min, but i cant
 
leave any messages even after 1h,  can't even do it with @reloadscript
 
 
Below is the script and some in game pics. PS the language is Mandarin, sorry if i make it even more difficult.

prontera.gat,53,115,4 script 訊息看板 837,{
//初始化
set @time_wait,10; 
set @waittimer,0; 
set @info_money,9000; 
set @max_count,100; 
set @size_count,10; 
 
mes "[訊息看板]";
mes "歡迎來到普隆德拉.";
mes "----------------------";
mes "目前線上ㄧ共有 [^0000FF " + getusers(1) + "^000000 ] 名玩家.";
mes "----------------------";
mes "你需要什麼服務?";
next;
menu "讀取訊息",G_Readnews,"留下訊息",G_Leavenews,"退出...",G_Quit;
//查看信息 
G_Readnews:
mes "[訊息看板]";
mes "這些訊息將在每天[^0000FF10pm^000000] 清除...";
mes "每頁會列出 [^0000FF"[email protected]<script data-cfhash='f9e31' type="text/javascript">/* */</script>_count+"^000000] 封訊息, ";
mes "請選擇你要瀏覽的訊息分類:";
next;
menu "讀取 ^0000FF販賣^000000 廣告",G_Read_Sell,"讀取 ^0000FF收購^000000 廣告",G_Read_Buy,"讀取 ^0000FF其他^000000 訊息",G_Read_Other,"退出...",G_Quit;
G_Read_Sell:
if($Sell_info_count<1) goto G_Nonews;
set @Sell_info_count1,$Sell_info_count;
set @Sell_temp1,$Sell_temp;
set @Sell_name_temp1,$Sell_name_temp;
set @Sell_time_temp1,$Sell_time_temp;
mes "[訊息看板]";
mes "總共有 [^0000FF"+$Sell_info_count+"^000000] 封新訊息";
//提示信息
G_retype_sell:
mes "[^AA00FF"+$Sell_times$[@Sell_time_temp1]+"^000000] 賣方 [^0000FF"+$Sell_names$[@Sell_name_temp1]+"^000000]:";
mes "^AA0000"+$Sell_infos$[@Sell_temp1]+"^000000";
mes "^777777------------ 分隔線 ------------^000000";
set @Sell_time_temp1,@Sell_time_temp1-1;
set @Sell_name_temp1,@Sell_name_temp1-1;
set @Sell_temp1,@Sell_temp1-1;
set @Sell_info_count1,@Sell_info_count1-1;
set @jishu1,@jishu1+1;
if(@Sell_info_count1>0 && @jishu1<@size_count) goto G_retype_sell;
if(@Sell_info_count1>0 && @jishu1>[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_count) goto G_sell_menu;
close;
G_sell_menu:
set @jishu2,0;
next;
menu "下ㄧ頁",G_nextpage,"取消...",G_Quit;
G_nextpage:
mes "[訊息看板]";
G_retype_sell2:
mes "[^AA00FF"+$Sell_times$[@Sell_time_temp1]+"^000000] 賣方 [^0000FF"+$Sell_names$[@Sell_name_temp1]+"^000000]:";
mes "^AA0000"+$Sell_infos$[@Sell_temp1]+"^000000";
mes "^777777------------ 分隔線 ------------^000000";
set @Sell_time_temp1,@Sell_time_temp1-1;
set @Sell_name_temp1,@Sell_name_temp1-1;
set @Sell_temp1,@Sell_temp1-1;
set @Sell_info_count1,@Sell_info_count1-1;
set @jishu2,@jishu2+1;
if(@Sell_info_count1>0 && @jishu2<@size_count) goto G_retype_sell2;
if(@Sell_info_count1>0 && @jishu2>[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_count) goto G_sell_menu;
set @jishu1,0;
set @jishu2,0;
goto G_Quit;
 
G_Read_Buy:
if($Buy_info_count<1) goto G_Nonews;
set @Buy_info_count1,$Buy_info_count;
set @Buy_temp1,$Buy_temp;
set @Buy_name_temp1,$Buy_name_temp;
set @Buy_time_temp1,$Buy_time_temp;
mes "[Message Board]";
mes "There are [^0000FF"+$Buy_info_count+"^000000] pieces of new message";
//显示信息
G_retype_Buy:
mes "[^AA00FF"+$Buy_times$[@Buy_time_temp1]+"^000000] 買方 [^0000FF"+$Buy_names$[@Buy_name_temp1]+"^000000]:";
mes "^AA0000"+$Buy_infos$[@Buy_temp1]+"^000000";
mes "^777777------------ 分隔線 ------------^000000";
set @Buy_time_temp1,@Buy_time_temp1-1;
set @Buy_name_temp1,@Buy_name_temp1-1;
set @Buy_temp1,@Buy_temp1-1;
set @Buy_info_count1,@Buy_info_count1-1;
set @jishu3,@jishu3+1;
if(@Buy_info_count1>0 && @jishu3<@size_count) goto G_retype_Buy;
if(@Buy_info_count1>0 && @jishu3>[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_count) goto G_Buy_menu;
close;
G_Buy_menu:
set @jishu4,0;
next;
menu "下ㄧ頁",G_nextpage2,"取消",G_Quit;
G_nextpage2:
mes "[訊息看板]";
G_retype_buy2:
mes "[^AA00FF"+$Buy_times$[@Buy_time_temp1]+"^000000] 買方 [^0000FF"+$Buy_names$[@Buy_name_temp1]+"^000000]:";
mes "^AA0000"+$Buy_infos$[@Buy_temp1]+"^000000";
mes "^777777------------ 分隔線 ------------^000000";
set @Buy_time_temp1,@Buy_time_temp1-1;
set @Buy_name_temp1,@Buy_name_temp1-1;
set @Buy_temp1,@Buy_temp1-1;
set @Buy_info_count1,@Buy_info_count1-1;
set @jishu4,@jishu4+1;
if(@Buy_info_count1>0 && @jishu4<@size_count) goto G_retype_buy2;
if(@Buy_info_count1>0 && @jishu4>[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_count) goto G_Buy_menu;
set @jishu3,0;
set @jishu4,0;
goto G_Quit;
 
G_Read_Other:
if($Other_info_count<1) goto G_Nonews;
set @Other_info_count1,$Other_info_count;
set @Other_temp1,$Other_temp;
set @Other_name_temp1,$Other_name_temp;
set @Other_time_temp1,$Other_time_temp;
mes "[訊息看板]";
mes "總共有 [^0000FF"+$Other_info_count+"^000000] 封新訊息";
//提示信息
G_retype_Other:
mes "[^AA00FF"+$Other_times$[@Other_time_temp1]+"^000000] 玩家 [^0000FF"+$Other_names$[@Other_name_temp1]+"^000000]:";
mes "^AA0000"+$Other_infos$[@Other_temp1]+"^000000";
mes "^777777------------ 分隔線 ------------^000000";
set @Other_time_temp1,@Other_time_temp1-1;
set @Other_name_temp1,@Other_name_temp1-1;
set @Other_temp1,@Other_temp1-1;
set @Other_info_count1,@Other_info_count1-1;
set @jishu5,@jishu5+1;
if(@Other_info_count1>0 && @jishu5<@size_count) goto G_retype_Other;
if(@Other_info_count1>0 && @jishu5>[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_count) goto G_Other_menu;
close;
G_Other_menu:
set @jishu6,0;
next;
menu "下ㄧ頁",G_nextpage3,"退出...",G_Quit;
G_nextpage3:
mes "[訊息看板]";
G_retype_Other2:
mes "[^AA00FF"+$Other_times$[@Other_time_temp1]+"^000000] 玩家 [^0000FF"+$Other_names$[@Other_name_temp1]+"^000000]:";
mes "^AA0000"+$Other_infos$[@Other_temp1]+"^000000";
mes "^777777------------ 分隔線 ------------^000000";
set @Other_time_temp1,@Other_time_temp1-1;
set @Other_name_temp1,@Other_name_temp1-1;
set @Other_temp1,@Other_temp1-1;
set @Other_info_count1,@Other_info_count1-1;
set @jishu6,@jishu6+1;
if(@Other_info_count1>0 && @jishu6<@size_count) goto G_retype_Other2;
if(@Other_info_count1>0 && @jishu6>[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_count) goto G_Other_menu;
set @jishu5,0;
set @jishu6,0;
goto G_Quit;
 
//登记信息
G_Leavenews:
set @yanzhen1,rand(1111,9999);
mes "[訊息看板]";
mes "請輸入正確的確認號碼...";
mes "[ ^FF0000"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */+"^000000 ]";
next;
input @yanzhen2;
if(@[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */) goto G_yanzhencuowu;
mes "[訊息看板]";
mes "請選擇你要留言的類型:";
next;
menu "留下 ^0000FF銷售^000000 廣告",G_Leave_Sell,"留下 ^0000FF收購^000000 廣告",G_Leave_Buy,"留下 ^0000FFO其他^000000 訊息",G_Leave_Other,"取消...",G_Quit;
G_Leave_Sell:
 if(@WaitingTime_Sell==1) goto G_Waiting;
 if($Sell_info_count>@max_count-1) goto G_Fullnews;
 if(zeny<@info_money) goto G_notmoney;
 mes "[訊息看板]";
 mes "下次你可以留言的時間為 [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_wait+"^000000] 分鐘後,";
 mes "這個服務將花費  [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_money+"^000000]Zeny.";
 next;
 input @Sell_info_text$;
 Announce "【販售廣告】["+strcharinfo(0)+"]賣方:"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_info_text$+"..",8;
 mes "[訊息看板]";
 mes "[^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_info_text$+"^000000]";
 set zeny,[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_money;
//信息内容 
 set $Sell_temp,$Sell_temp+1;
 set $Sell_info_count,$Sell_temp;
 set $Sell_infos$[$Sell_temp],@Sell_info_text$;
//玩家名字
 set @Sell_name$,strcharinfo(0);
 set $Sell_name_temp,$Sell_name_temp+1;
 set $Sell_names$[$Sell_name_temp],@Sell_name$;
//登记时间
 set @Sell_time$,gettimestr("%H:%M",24);
 set $Sell_time_temp,$Sell_time_temp+1;
 set $Sell_times$[$Sell_time_temp],@Sell_time$;  
 
 set @WaitingTime_Sell,1;
 addtimer @waittimer,"ev_Waiting_Sell";
 next;
 mes "[訊息看板]";
 mes "訊息已經送出了!";
 goto G_Quit;
G_Leave_Buy:
 if(@WaitingTime_Buy==1) goto G_Waiting;
 if($Buy_info_count>@max_count-1) goto G_Fullnews;
 if(zeny<@info_money) goto G_notmoney;
 mes "[訊息看板]";
 mes "下次你可以留言的時間為 [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_wait+"^000000] 分鐘後,";
 mes "這個服務將花費 [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_money+"^000000]Zeny.";
 next;
 input @Buy_info_text$;
 mes "[訊息看板]";
 Announce "【收購廣告】["+strcharinfo(0)+"]買方說:"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_info_text$+"..",8;
 mes "[^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_info_text$+"^000000]";
 set zeny,[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_money;
//信息内容 
 set $Buy_temp,$Buy_temp+1;
 set $Buy_info_count,$Buy_temp;
 set $Buy_infos$[$Buy_temp],@Buy_info_text$;
//玩家名字
 set @Buy_name$,strcharinfo(0);
 set $Buy_name_temp,$Buy_name_temp+1;
 set $Buy_names$[$Buy_name_temp],@Buy_name$;
//登记时间
 set @Buy_time$,gettimestr("%H:%M",24);
 set $Buy_time_temp,$Sell_time_temp+1;
 set $Buy_times$[$Buy_time_temp],@Buy_time$;  
 
 set @WaitingTime_Buy,1;
 addtimer @waittimer,"ev_Waiting_Buy";
 next;
 mes "[訊息看板]";
 mes "訊息已經送出了!";
 goto G_Quit;
 
G_Leave_Other:
 if(@WaitingTime_Other==1) goto G_Waiting;
 if($Other_info_count>@max_count-1) goto G_Fullnews;
 if(zeny<@info_money) goto G_notmoney;
 mes "[訊息看板]";
 mes "下次你可以留言的時間為 [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_wait+"^000000] 分鐘後,";
 mes "這個服務將花費 [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_money+"^000000]Zeny.";
 next;
 input @Other_info_text$;
 Announce "【訊息看版】["+strcharinfo(0)+"]說:"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_info_text$+"..",8;
 mes "[訊息看板]";
 mes "[^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_info_text$+"^000000]";
 set Zeny,[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_money;
//信息内容 
 set $Other_temp,$Other_temp+1;
 set $Other_info_count,$Other_temp;
 set $Other_infos$[$Other_temp],@Other_info_text$;
//玩家名字
 set @Other_name$,strcharinfo(0);
 set $Other_name_temp,$Other_name_temp+1;
 set $Other_names$[$Other_name_temp],@Other_name$;
//登记时间
 set @Other_time$,gettimestr("%H:%M",24);
 set $Other_time_temp,$Sell_time_temp+1;
 set $Other_times$[$Other_time_temp],@Other_time$;  
 
 set @WaitingTime_Other,1;
 addtimer @waittimer,"ev_Waiting_Other";
 next;
 mes "[訊息看板]";
 mes "訊息已經發送了唷!!!";
 goto G_Quit;
 
//钱不够
G_notmoney:
mes "[訊息看板]";
mes "抱歉... 這項服務必須花費 [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_money+"^000000]Zeny,看來你太窮了喔.";
goto G_Quit;
 
//信息已满
G_Fullnews:
mes "[訊息看板]";
mes "抱歉... 訊息箱已經爆滿了, 建議你去論壇交易版留言喔.";
goto G_Quit;
 
//间隔时间
G_Waiting:
mes "[訊息看板]";
mes "你已經留過訊息囉, 請稍候 [^0000FF"[email protected]/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */_wait+"^000000]分鐘才可再寫入...";
goto G_Quit;
G_yanzhencuowu:
mes "[訊息看板]";
mes "錯誤號碼, 瞎子是不可以留言的...";
goto G_Quit;
 
//没有信息
G_Nonews:
mes "[訊息看板]";
mes "抱歉目前沒有訊息,你要留下訊息嗎?";
next;
menu "不了,感謝",-,"好阿,我要",G_Leavenews;
goto G_Quit;
G_Quit:
 close;
}


//间隔等待事件
prontera.gat,158,187,4 script ev_Waiting_Sell -1,{
set @WaitingTime_Sell,0;
deltimer "ev_Waiting_Sell";
}
prontera.gat,158,187,4 script ev_Waiting_Buy -1,{
set @WaitingTime_Buy,0;
deltimer "ev_Waiting_Buy";
}
prontera.gat,158,187,4 script ev_Waiting_Other -1,{
set @WaitingTime_Other,0;
deltimer "ev_Waiting_Other";
}



//清除信息事件
prontera.gat,158,187,4 script ev_Clearnews -1,{
OnClock2200:
set $Sell_temp,0;
set $Sell_info_count,0;
set $Sell_name_temp,0;
set $Sell_time_temp,0;
 
set $Buy_temp,0;
set $Buy_info_count,0;
set $Buy_name_temp,0;
set $Buy_time_temp,0;
 
set $Other_temp,0;
set $Other_info_count,0;
set $Other_name_temp,0;
set $Other_time_temp,0;
Announce "[Message Board]所有訊息都從訊息看板移除了!",8;
}
 

thanks so much...

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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