Issue information

Issue ID
#705
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Dec 28, 2007 12:00
Last Post
Hercules Elf Bot
Dec 28, 2007 12:00
Confirmation
N/A

Hercules Elf Bot - Dec 28, 2007 12:00

Originally posted by [b]bjs4913[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=705

hello
don`t enemy setting enemy guild member emperlium
my gvg script see
QUOTE
prt_gld.gat,0,0,0 script Agit_A03 -1,-1,-1,{
OnInterIfInitOnce:
if($@Agit_Num == 1) GetCastleData "aldeg_cas01.gat",0,"::OnRecvCastleA03";
if($@Agit_Num == 2) GetCastleData "gefg_cas02.gat",0,"::OnRecvCastleA03";
if($@Agit_Num == 3) GetCastleData "payg_cas05.gat",0,"::OnRecvCastleA03";
if($@Agit_Num == 4) GetCastleData "prtg_cas05.gat",0,"::OnRecvCastleA03";
if($@Agit_Num == 5) GetCastleData "aldeg_cas05.gat",0,"::OnRecvCastleA03";
if($@Agit_Num == 6) GetCastleData "gefg_cas05.gat",0,"::OnRecvCastleA03";
if($@Agit_Num == 7) GetCastleData "payg_cas01.gat",0,"::OnRecvCastleA03";
if($@Agit_Num == 8) GetCastleData "prtg_cas02.gat",0,"::OnRecvCastleA03";
End;
OnRecvCastleA03:
if($@Agit_Num == 1) RequestGuildInfo GetCastleData("aldeg_cas01.gat",1);
if($@Agit_Num == 2) RequestGuildInfo GetCastleData("gefg_cas02.gat",1);
if($@Agit_Num == 3) RequestGuildInfo GetCastleData("payg_cas05.gat",1);
if($@Agit_Num == 4) RequestGuildInfo GetCastleData("prtg_cas05.gat",1);
if($@Agit_Num == 5) RequestGuildInfo GetCastleData("aldeg_cas05.gat",1);
if($@Agit_Num == 6) RequestGuildInfo GetCastleData("gefg_cas05.gat",1);
if($@Agit_Num == 7) RequestGuildInfo GetCastleData("payg_cas01.gat",1);
if($@Agit_Num == 8) RequestGuildInfo GetCastleData("prtg_cas02.gat",1);
End;
OnAgitStart:
set $@WarStart,1;
if($@Agit_Num == 1) areawarp "aldeg_cas01.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 2) areawarp "gefg_cas02.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 3) areawarp "payg_cas05.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 4) areawarp "prtg_cas05.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 5) areawarp "aldeg_cas05.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 6) areawarp "gefg_cas05.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 7) areawarp "payg_cas01.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 8) areawarp "prtg_cas02.gat",1,1,255,255,"prt_gld.gat",87,58;
if($@Agit_Num == 1) MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 2) MapRespawnGuildID "gefg_cas02.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 3) MapRespawnGuildID "payg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 4) MapRespawnGuildID "prtg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 5) MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 6) MapRespawnGuildID "gefg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 7) MapRespawnGuildID "payg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 8) MapRespawnGuildID "prtg_cas02.gat",GetCastleData("aldeg_cas01.gat",1),2;
KillMonster "prtg_cas01.gat","Agit_A03::OnAgitPre";

if($@Agit_Num == 1) Monster "aldeg_cas01.gat",215,23,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 2) Monster "gefg_cas02.gat",176,178,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 3) Monster "payg_cas05.gat",31,31,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 4) Monster "prtg_cas05.gat",266,266,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 5) Monster "aldeg_cas05.gat",28,102,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 6) Monster "gefg_cas05.gat",194,184,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 7) Monster "payg_cas01.gat",139,138,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 8) Monster "prtg_cas02.gat",158,174,"봉인석",1288,1,"Agit_A03::OnAgitBreak";


if($@Agit_Num == 1) monster "aldeg_cas01.gat",215,30,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 2) monster "gefg_cas02.gat",168,176,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 3) monster "payg_cas05.gat",34,27,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 4) monster "prtg_cas05.gat",58,11,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 5) monster "aldeg_cas05.gat",26,99,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 6) monster "gefg_cas05.gat",193,177,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 7) monster "payg_cas01.gat",134,134,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 8) monster "prtg_cas02.gat",157,167,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";

if($@Agit_Num == 1) GvgOn "aldeg_cas01.gat";
if($@Agit_Num == 2) GvgOn "gefg_cas02.gat";
if($@Agit_Num == 3) GvgOn "payg_cas05.gat";
if($@Agit_Num == 4) GvgOn "prtg_cas05.gat";
if($@Agit_Num == 5) GvgOn "aldeg_cas05.gat";
if($@Agit_Num == 6) GvgOn "gefg_cas05.gat";
if($@Agit_Num == 7) GvgOn "payg_cas01.gat";
if($@Agit_Num == 8) GvgOn "prtg_cas02.gat";
End;
OnAgitBreak:
set @GIDa3, getcharid(2);
if (@GIDa3 <= 0) end;
SetCastleData "aldeg_cas01.gat",1,@GIDa3;
SetCastleData "gefg_cas02.gat",1,@GIDa3;
SetCastleData "payg_cas05.gat",1,@GIDa3;
SetCastleData "prtg_cas05.gat",1,@GIDa3;
SetCastleData "aldeg_cas05.gat",1,@GIDa3;
SetCastleData "gefg_cas05.gat",1,@GIDa3;
SetCastleData "payg_cas01.gat",1,@GIDa3;
SetCastleData "prtg_cas02.gat",1,@GIDa3;
if($@Agit_Num == 1) Announce "*** 성 [현무(玄武)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 2) Announce "*** 성 [청룡(靑龍)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 3) Announce "*** 성 [백호(白虎)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 4) Announce "*** 성 [주작(朱雀)] 을 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 5) Announce "*** 성 [현무(玄武)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 6) Announce "*** 성 [청룡(靑龍)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 7) Announce "*** 성 [백호(白虎)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 8) Announce "*** 성 [주작(朱雀)] 을 [" + GetGuildName(@GIDa3) + "] 길드가 차지 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 1) MapAnnounce "aldeg_cas01.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
if($@Agit_Num == 2) MapAnnounce "gefg_cas02.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
if($@Agit_Num == 3) MapAnnounce "payg_cas05.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
if($@Agit_Num == 4) MapAnnounce "prtg_cas05.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
if($@Agit_Num == 5) MapAnnounce "aldeg_cas05.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
if($@Agit_Num == 6) MapAnnounce "gefg_cas05.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
if($@Agit_Num == 7) MapAnnounce "payg_cas01.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
if($@Agit_Num == 8) MapAnnounce "prtg_cas02.gat","*** 봉인석이 [" +strcharinfo(0) + "] 님에 의해 파괴되었습니다 ***",0,0xCCFF99;
GetCastleData "aldeg_cas01.gat",0,"::OnRecvCastleA03";
goto OnAgitEliminate;
End;
OnGuildBreak:
if($@Agit_num == 1)killmonsterall "aldeg_cas01.gat";
if($@Agit_num == 2)killmonsterall "gefg_cas02.gat";
if($@Agit_num == 3)killmonsterall "payg_cas05.gat";
if($@Agit_num == 4)killmonsterall "prtg_cas05.gat";
if($@Agit_num == 5)killmonsterall "aldeg_cas05.gat";
if($@Agit_num == 6)killmonsterall "gefg_cas05.gat";
if($@Agit_num == 7)killmonsterall "payg_cas01.gat";
if($@Agit_num == 8)killmonsterall "prtg_cas02.gat";
if($@Agit_Num == 1) Announce "*** 성 [현무(玄武)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 2) Announce "*** 성 [청룡(靑龍)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 3) Announce "*** 성 [백호(白虎)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 4) Announce "*** 성 [주작(朱雀)] 을 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 5) Announce "*** 성 [현무(玄武)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 6) Announce "*** 성 [청룡(靑龍)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 7) Announce "*** 성 [백호(白虎)] 를 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
if($@Agit_Num == 8) Announce "*** 성 [주작(朱雀)] 을 [" + GetGuildName(@GIDa3) + "] 길드가 포기 하였습니다. ***",0,0xCCFF99;
SetCastleData "aldeg_cas01.gat",0,0;
SetCastleData "gefg_cas02.gat",0,0;
SetCastleData "payg_cas05.gat",0,0;
SetCastleData "prtg_cas05.gat",0,0;
SetCastleData "aldeg_cas05.gat",0,0;
SetCastleData "gefg_cas05.gat",0,0;
SetCastleData "payg_cas01.gat",0,0;
SetCastleData "prtg_cas02.gat",0,0;
End;
OnAgitEliminate:
sleep getbattleflag("gvg_eliminate_time");
if($@Agit_Num == 1) MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 2) MapRespawnGuildID "gefg_cas02.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 3) MapRespawnGuildID "payg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 4) MapRespawnGuildID "prtg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 5) MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 6) MapRespawnGuildID "gefg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 7) MapRespawnGuildID "payg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),2;
if($@Agit_Num == 8) MapRespawnGuildID "prtg_cas02.gat",GetCastleData("aldeg_cas01.gat",1),2;
sleep 6333-getbattleflag("gvg_eliminate_time");// wait for emp animation to end
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 1) Monster "aldeg_cas01.gat",215,23,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 2) Monster "gefg_cas02.gat",176,178,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 3) Monster "payg_cas05.gat",31,31,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 4) Monster "prtg_cas05.gat",266,266,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 5) Monster "aldeg_cas05.gat",28,102,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 6) Monster "gefg_cas05.gat",194,184,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 7) Monster "payg_cas01.gat",139,138,"봉인석",1288,1,"Agit_A03::OnAgitBreak";
if($@Agit_Num == 8) Monster "prtg_cas02.gat",158,174,"봉인석",1288,1,"Agit_A03::OnAgitBreak";


if($@Agit_Num == 1) monster "aldeg_cas01.gat",215,30,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 2) monster "gefg_cas02.gat",168,176,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 3) monster "payg_cas05.gat",34,27,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 4) monster "prtg_cas05.gat",58,11,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 5) monster "aldeg_cas05.gat",26,99,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 6) monster "gefg_cas05.gat",193,177,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 7) monster "payg_cas01.gat",134,134,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";
if($@Agit_Num == 8) monster "prtg_cas02.gat",157,167,"봉인의수호자",1795,1,"Agit_A03::OnGuardianDied";

End;
OnAgitEnd:
set $@WarStart,0;
set $@gold,rand(10,30)+rand(1,10);
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnAgitBreak";
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied";
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 1) killmonster "aldeg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 2) killmonster "gefg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 3) killmonster "payg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 4) killmonster "prtg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 5) killmonster "aldeg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 6) killmonster "gefg_cas05.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 7) killmonster "payg_cas01.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied2";
if($@Agit_Num == 8) killmonster "prtg_cas02.gat","Agit_A03::OnGuardianDied3";

if($@Agit_Num == 1) GvgOff "aldeg_cas01.gat";
if($@Agit_Num == 2) GvgOff "gefg_cas02.gat";
if($@Agit_Num == 3) GvgOff "payg_cas05.gat";
if($@Agit_Num == 4) GvgOff "prtg_cas05.gat";
if($@Agit_Num == 5) GvgOff "aldeg_cas05.gat";
if($@Agit_Num == 6) GvgOff "gefg_cas05.gat";
if($@Agit_Num == 7) GvgOff "payg_cas01.gat";
if($@Agit_Num == 8) GvgOff "prtg_cas02.gat";
set @re,rand(1,2);
if($@Agit_Num == 1 && @re == 1) areawarp "aldeg_cas01.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 2 && @re == 1) areawarp "gefg_cas02.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 3 && @re == 1) areawarp "payg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 4 && @re == 1) areawarp "prtg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 5 && @re == 1) areawarp "aldeg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 6 && @re == 1) areawarp "gefg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 7 && @re == 1) areawarp "payg_cas01.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 8 && @re == 1) areawarp "prtg_cas02.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 1 && @re == 2) areawarp "aldeg_cas01.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 2 && @re == 2) areawarp "gefg_cas02.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 3 && @re == 2) areawarp "payg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 4 && @re == 2) areawarp "prtg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 5 && @re == 2) areawarp "aldeg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 6 && @re == 2) areawarp "gefg_cas05.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 7 && @re == 2) areawarp "payg_cas01.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 8 && @re == 2) areawarp "prtg_cas02.gat",1,1,255,255,"prt_gld.gat",160,92;
if($@Agit_Num == 1) MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),4;
if($@Agit_Num == 2) MapRespawnGuildID "gefg_cas02.gat",GetCastleData("aldeg_cas01.gat",1),4;
if($@Agit_Num == 3) MapRespawnGuildID "payg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),4;
if($@Agit_Num == 4) MapRespawnGuildID "prtg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),4;
if($@Agit_Num == 5) MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),4;
if($@Agit_Num == 6) MapRespawnGuildID "gefg_cas05.gat",GetCastleData("aldeg_cas01.gat",1),4;
if($@Agit_Num == 7) MapRespawnGuildID "payg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),4;
if($@Agit_Num == 8) MapRespawnGuildID "prtg_cas02.gat",GetCastleData("aldeg_cas01.gat",1),4;
end;

OnGuardianDied:
if($@Agit_Num == 1) MapAnnounce "aldeg_cas01.gat","가디언이 파괴되었습니다.",17;
if($@Agit_Num == 2) MapAnnounce "gefg_cas02.gat","가디언이 파괴되었습니다.",17;
if($@Agit_Num == 3) MapAnnounce "payg_cas05.gat","가디언이 파괴되었습니다.",17;
if($@Agit_Num == 4) MapAnnounce "prtg_cas05.gat","가디언이 파괴되었습니다.",17;
if($@Agit_Num == 5) MapAnnounce "aldeg_cas05.gat","가디언이 파괴되었습니다.",17;
if($@Agit_Num == 6) MapAnnounce "gefg_cas05.gat","가디언이 파괴되었습니다.",17;
if($@Agit_Num == 7) MapAnnounce "payg_cas01.gat","가디언이 파괴되었습니다.",17;
if($@Agit_Num == 8) MapAnnounce "prtg_cas02.gat","가디언이 파괴되었습니다.",17;
end;
}

my guardian setting mob.c emperlium add mob code
hmm..
revision 11752 all right
but 11879 over revision no enemy guild attack emperlium and guardian...
what problem?

This post has been edited by bjs4913: Jan 4 2008, 05:21 AM