UID42704
帖子
精華
主題
積分807
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限10
註冊時間2007-12-15
在線時間 小時
最後登錄1970-1-1
該用戶從未簽到
|
樓主 |
發表於 2009-5-31 16:28:21
|
顯示全部樓層
先生= =把設定腳本PO上來才能幫你
maggie70707 發表於 2009-5-31 04:13 PM
不好意思= ="....
sch_gld.gat,264,111,5 script 道場挑戰-管理員 734,{
if (getmapusers("guild_vs1.gat")==0 ) set $party_1,0;
if (getmapusers("guild_vs2.gat")==0 ) set $party_2,0;
if (getmapusers("guild_vs3.gat")==0 ) set $party_3,0;
if (getcharid(1) == 0) goto noparty;
if (getcharid(1) == $party_1) goto h_party;
if (getcharid(1) == $party_2) goto h_party;
if (getcharid(1) == $party_3) goto h_party;
goto talk;
noparty:
mes "[道場挑戰-管理員]";
mes "您沒有隊伍";
mes "無法參賽";
close;
end;
h_party:
mes "[道場挑戰-管理員]";
mes "您是" + getpartyname(getcharid(1)) + "的隊員吧";
mes "隊伍有報名挑戰, 你要參與嗎?";
next;
menu "好的",-,"不用",EXIT;
if (getcharid(1) == $party_1) goto h_partyin_1;
if (getcharid(1) == $party_2) goto h_partyin_2;
if (getcharid(1) == $party_3) goto h_partyin_3;
mes "[道場挑戰-管理員]";
mes "你的隊友可能在你報名的時候挑戰結束了!";
close;
end;
h_partyin_1:
if($partywait_1==0) goto Gone;
warp "guild_vs1.gat",49,47;
end;
h_partyin_2:
if($partywait_2==0) goto Gone;
warp "guild_vs2.gat",49,47;
end;
h_partyin_3:
if($partywait_3==0) goto Gone;
warp "guild_vs3.gat",49,47;
end;
Gone:
mes "[道場管理-管理員]";
mes "你的隊友已經先開始了";
mes "請你等待或換個隊伍另外挑戰!";
close;
end;
EXIT:
next;
mes "[道場挑戰-管理員]";
mes "歡迎下次再來。";
close;
end;
talk:
mes "[道場挑戰-管理員]";
mes "您和您的隊伍想參加嗎?";
mes "須先繳納10萬元的報名費";
next;
menu "想參加",-,"不用了",EXIT;
if (zeny<100000) goto nozeny;
set zeny,zeny-100000;
StartRand:
if (getmapusers("guild_vs1.gat")!=0 ) goto check1;
goto check3;
check1:
if (getmapusers("guild_vs2.gat")!=0 ) goto check2;
goto check3;
check2:
if (getmapusers("guild_vs3.gat")!=0 ) goto full;
goto check3;
check3:
set @gowhere,rand(3);
if (@gowhere==0) goto vs1;
if (@gowhere==1) goto vs2;
if (@gowhere==2) goto vs3;
full:
set zeny,zeny+100000;
mes "[道場挑戰-管理員]";
mes "[場地一]使用隊伍名: [" + getpartyname($party_1) + "]";
mes "[場地二]使用隊伍名: [" + getpartyname($party_2) + "]";
mes "[場地三]使用隊伍名: [" + getpartyname($party_3) + "]";
mes "全部場地都有人在挑戰了,請稍後再試";
close;
end;
nozeny:
mes "[道場挑戰-管理員]";
mes "請先湊夠10萬元再來報名";
close;
end;
vs1:
if (getmapusers("guild_vs1.gat")!=0 ) goto StartRand;
killmonster "guild_vs1.gat","vs1_mob";
warp "guild_vs1.gat",49,47;
addtimer 30000,"$wait_1";
set $partywait_1,1;
set $stage_1,1;
set $party_1,getcharid(1);
set $charid_1,getcharid(0);
announce "請 [" + getpartyname($party_1) + "] 隊伍的隊員, 在30秒內集合",15;
announce "地點在 [普隆德拉!!] 找 [道場挑戰-管理員]",15;
enablenpc "裁判#1";
end;
vs2:
if (getmapusers("guild_vs2.gat")!=0 ) goto StartRand;
killmonster "guild_vs2.gat","vs2_mob";
warp "guild_vs2.gat",49,47;
addtimer 30000,"$wait_2";
set $partywait_2,1;
set $stage_2,1;
set $party_2,getcharid(1);
set $charid_2,getcharid(0);
announce "請 [" + getpartyname($party_2) + "] 隊伍的隊員, 在30秒內集合",15;
announce "地點在 [普隆德拉!!] 找 [道場挑戰-管理員]",15;
enablenpc "裁判#2";
end;
vs3:
if (getmapusers("guild_vs3.gat")!=0 ) goto StartRand;
killmonster "guild_vs3.gat","vs3_mob";
warp "guild_vs3.gat",49,47;
addtimer 30000,"$wait_3";
set $partywait_3,1;
set $stage_3,1;
set $party_3,getcharid(1);
set $charid_3,getcharid(0);
announce "請 [" + getpartyname($party_3) + "] 隊伍的隊員, 在30秒內集合",15;
announce "地點在 [普隆德拉!!] 找 [道場挑戰-管理員]",15;
enablenpc "裁判#3";
end;
}
//======================================== 10F ===================================
guild_room.gat,42,287,4 script 道場挑戰-管理員 734,{
if (getmapusers("guild_vs4.gat")==0 ) set $party_4,0;
if (getmapusers("guild_vs5.gat")==0 ) set $party_5,0;
if (getcharid(1) == 0) goto noparty;
if (getcharid(1) == $party_4) goto h_party;
if (getcharid(1) == $party_5) goto h_party;
goto talk;
noparty:
mes "[道場挑戰-管理員]";
mes "您沒有隊伍";
mes "無法參賽";
close;
end;
h_party:
mes "[道場挑戰-管理員]";
mes "您是" + getpartyname(getcharid(1)) + "的隊員吧";
mes "隊伍有報名挑戰, 你要參與嗎?";
next;
menu "好的",-,"不用",EXIT;
if (getcharid(1) == $party_4) goto h_partyin_4;
if (getcharid(1) == $party_5) goto h_partyin_5;
mes "[道場挑戰-管理員]";
mes "你的隊友可能在你報名的時候挑戰結束了!";
close;
end;
h_partyin_4:
if($partywait_4==0) goto Gone;
warp "guild_vs4.gat",49,47;
end;
h_partyin_5:
if($partywait_5==0) goto Gone;
warp "guild_vs5.gat",49,47;
end;
Gone:
mes "[道場管理-管理員]";
mes "你的隊友已經先開始了";
mes "請你等待或換個隊伍另外挑戰!";
close;
end;
EXIT:
next;
mes "[道場挑戰-管理員]";
mes "歡迎下次再來。";
close;
end;
talk:
mes "[道場挑戰-管理員]";
mes "您和您的隊伍想參加嗎?";
mes "須先繳納20萬元的報名費";
next;
menu "想參加",-,"不用了",EXIT;
if (zeny<200000) goto nozeny;
set zeny,zeny-200000;
StartRand:
if (getmapusers("guild_vs4.gat")!=0 ) goto check4;
goto check5;
check4:
if (getmapusers("guild_vs5.gat")!=0 ) goto check5;
check5:
set @gowhere,rand(2);
if (@gowhere==3) goto vs4;
if (@gowhere==4) goto vs5;
vs4:
if (getmapusers("guild_vs4.gat")!=0 ) goto StartRand;
killmonster "guild_vs4.gat","vs4_mob";
warp "guild_vs4.gat",49,47;
addtimer 30000,"$wait_4";
set $partywait_4,1;
set $stage_4,11;
set $party_4,getcharid(1);
set $charid_4,getcharid(0);
announce "請 [" + getpartyname($party_4) + "] 隊伍的隊員, 在30秒內集合",15;
announce "地點在 [普隆德拉!!] 找 [道場挑戰-管理員]",15;
enablenpc "裁判#4";
end;
vs5:
if (getmapusers("guild_vs5.gat")!=0 ) goto StartRand;
killmonster "guild_vs5.gat","vs5_mob";
warp "guild_vs5.gat",49,47;
addtimer 30000,"$wait_5";
set $partywait_5,1;
set $stage_5,11;
set $party_5,getcharid(1);
set $charid_5,getcharid(0);
announce "請 [" + getpartyname($party_5) + "] 隊伍的隊員, 在30秒內集合",15;
announce "地點在 [普隆德拉!!] 找 [道場挑戰-管理員]",15;
enablenpc "裁判#5";
end;
} |
|