Jump to content
  • 0

Warp help


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Hello I am having a problem with this one.. When im using the @gvgstart command nothing happens. it should be warping those char inside the area. Please help asap.

OnDoStart:
query_sql("SELECT account_id FROM `char` WHERE last_map = '"+.Map$+"' AND online = '1'", .@acc);
for(set .@i,0; .@i<getarraysize(.@acc); set .@i,.@i+1){

attachrid .@acc[.@i];

if (getgmlevel() >= .gmlvl){end;}

		for(set .@k,0; .@k<getarraysize(.delitems); set .@k,.@k+1){
			delitem .delitems[.@k],@inventorylist_amount[.@k];
		}

if (Class == Job_Lord_Knight){
getitem 14003,5; getitem 657,10;
}else if(Class == Job_Paladin){
getitem 14003,5; getitem 657,10;
}else if(Class == Job_Assassin_Cross){
getitem 14003,5; getitem 656,10; getitem 678,3;
}else if(Class == Job_Stalker){
getitem 14003,5; getitem 657,10;
}else if(Class != Job_Sniper){
getitem 14003,5; getitem 656,10; getitem 12009,2;
}else if(Class != Job_Clown){
getitem 14003,5; getitem 645,10; getitem 12009,2;
}else if(Class != Job_Gypsy){
getitem 14003,5; getitem 645,10; getitem 12009,2;
}else if(Class != Job_High_Wizard){
getitem 14003,5; getitem 656,10; getitem 717,75; getitem 716,75; getitem 715,75;
}else if(Class != Job_Professor){
getitem 14003,5; getitem 656,10; getitem 717,75; getitem 716,75; getitem 715,75;
}else if(Class != Job_High_Priest){
getitem 14003,5; getitem 645,10; getitem 717,75;
}else if(Class != Job_Champion){
getitem 14003,5; getitem 656,10;
//}else if(Class == Job_Whitesmith){
//getitem 14003,5; getitem 657,10; getitem 601,800;
}else if(Class == Job_Creator){
getitem 14003,5; getitem 657,10; getitem 7136,5; getitem 7135,5;
}


}

initnpctimer;
mapannounce ""+.Map$+"","Admin: You have 2 minutes to set-up your supplies.",0;
end;

OnTimer60000:
mapannounce ""+.Map$+"","Admin: You have 1 minutes left to set-up your supplies.",0;
end;

OnTimer120000:
mapannounce ""+.Map$+"","Admin: Time's up.",0;
end;

OnTimer123000:
mapannounce ""+.Map$+"","Admin: You will warped now to the battle arena.",0;
stopnpctimer;
end;

set .@bmap, rand(getarraysize(.BMap$));
set .@bmap$, .BMap$[.@bmap];
set .@Xmapa, .Xa[.@bmap];
set .@Ymapa, .Xb[.@bmap];
set .@Xmapb, .Ya[.@bmap];
set .@Ymapb, .Yb[.@bmap];
warpchar .@bmap$,50,49,1;
areawarp .Map$,66,60,79,77,.@bmap$,.@Xmapa,.@Xmapa;		// Team A
areawarp .Map$,120,60,133,77,.@bmap$,.@Xmapb,.@Ymapb;	// Team B

	sleep2 5000;
	mapannounce ".@bmap$","Before we start you have 10 seconds to buffs",0;
	sleep2 10000;
	mapannounce ".@bmap$","Get ready at the count of 5 we will start the battle!!....",0;
	sleep2 3000;
	mapannounce ".@bmap$","5",0;
	sleep2 1000;
	mapannounce ".@bmap$","4",0;
	sleep2 1000;
	mapannounce ".@bmap$","3",0;
	sleep2 1000;
	mapannounce ".@bmap$","2",0;
	sleep2 1000;
	mapannounce ".@bmap$","1",0;
	sleep2 1000;
	mapannounce ".@bmap$","GO!",0;
	end;

end;
OnInit:

	disablenpc "number1";
	disablenpc "number2";
	disablenpc "number3";
	disablenpc "number4";
	disablenpc "number5";
	disablenpc "number6";
	disablenpc "number7";
	disablenpc "number8";

	setwall "06guild_r",74,78,4,2,0,"TeamAWall";
	setwall "06guild_r",128,78,4,2,0,"TeamBWall";
	set .MaxMembers,1;
	set .Zeny,1000000;
	set .Map$,"06guild_r";
	set .gmlvl, 1;
	setarray .delitem[0],5288,5401,5471,515,5362,5361,5462,5225,5420,5313,5375,5389,5325,5463,5372,5379,
				  5137,5377,5800,18511,5376,5314,5155,18510,18508,18509,18506,5423,5224,4035,4092,
				  4004,4043,4031,4058,4133,4381,4079,4064,2310,2102,2504,2404,2621,2624,1208,1108,
				  1117,1408,1464,1302,1352,1514,1602,1705,1802,1902,1953,1550,1251,25001;

	setarray .delitems[0],14003,645,657,656,678,12009,1751,715,716,717,7136,7135;



	setarray .BMap$[0],"guild_vs1","guild_vs2","guild_vs3","guild_vs4","guild_vs5";
	setarray .Xa[0],7,7,16,7,19;
	setarray .Ya[0],49,49,50,49,49;
	setarray .Xb[0],92,92,83,92,80;
	setarray .Yb[0],49,49,50,49,49;
	setarray .AItem[0],2310,2102,2504,2404;
	setarray .ACard[0],4031,4058,4133,4381;

	// Commands
	bindatcmd "team","mainevent::OnDoTeam",99,99;
	bindatcmd "npcitem","mainevent::OnDoNpcItem",99,99;
	bindatcmd "gvgstart","mainevent::OnDoStart",99,99;
	bindatcmd "dismiss","mainevent::OnDoDismiss",99,99;
	end;
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...