• 0
Sign in to follow this  
Fresh prince

Event queue full

Question

-	script	Anti Bot	-1,{
OnNPCKillEvent:
	if(getgmlevel() > 0) end;
	set @kill,@kill+1;
	if(@kill >= rand(200,201)) goto Check;
	end;
OnPCLoginEvent:
Check:
	if(getgmlevel() > 0) end;
	getmapxy [email protected]$, [email protected], [email protected], 0;
	if ([email protected]$=="prontera" || [email protected]$=="morocc" || [email protected]$=="payon" || [email protected]$=="geffen" || [email protected]$=="izlude" || [email protected]$=="alberta" || [email protected]$=="aldebaran") end;
	if(checkcart() == 1) set @cart,1;
	if(checkfalcon() == 1) set @falcon,1;
	if(checkriding() == 1) set @riding,1;
	atcommand "@option 2 0 0";
	atcommand "@battleignore";
	setoption 0x2,1;
	sc_start sc_berserk, 1000000000, 1;
	mes "[Anti Bot]";
	mes "Bot checking time";
	mes "Please input the number you see";
	next;
	switch( rand(1,9) ) {
	case 1:
		mes "#################^83F52C##^000000################";
		mes "###############^83F52C####^000000################";
		mes "#################^83F52C##^000000################";
		mes "#################^83F52C##^000000################";
		mes "#################^83F52C##^000000################";
		mes "#################^83F52C##^000000################";
		mes "###############^83F52C######^000000##############";
		input @num;
		if(@num == 1) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 2:
		mes "#############^83F52C#######^000000###############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "###################^83F52C##^000000##############";
		mes "#############^83F52C#######^000000###############";
		mes "############^83F52C##^000000#####################";
		mes "############^83F52C##^000000#####################";
		mes "############^83F52C#########^000000##############";
		input @num;
		if(@num == 2) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 3:
		mes "#############^83F52C#######^000000###############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "###################^83F52C##^000000##############";
		mes "#############^83F52C#######^000000###############";
		mes "###################^83F52C##^000000##############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "#############^83F52C#######^000000###############";
		input @num;
		if(@num == 3) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 4:
		mes "############^83F52C##^000000#####################";
		mes "############^83F52C##^000000####^83F52C##^000000###############";
		mes "############^83F52C##^000000####^83F52C##^000000###############";
		mes "############^83F52C##^000000####^83F52C##^000000###############";
		mes "############^83F52C#########^000000##############";
		mes "##################^83F52C##^000000###############";
		mes "##################^83F52C##^000000###############";
		input @num;
		if(@num == 4) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 5:
		mes "############^83F52C########^000000###############";
		mes "############^83F52C##^000000#####################";
		mes "############^83F52C##^000000#####################";
		mes "############^83F52C#######^000000################";
		mes "##################^83F52C##^000000###############";
		mes "############^83F52C##^000000####^83F52C##^000000###############";
		mes "#############^83F52C######^000000################";
		input @num;
		if(@num == 5) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 6:
		mes "#############^83F52C#######^000000###############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "############^83F52C##^000000#####################";
		mes "############^83F52C########^000000###############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "#############^83F52C######^000000################";
		input @num;
		if(@num == 6) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 7:
		mes "############^83F52C########^000000###############";
		mes "############^83F52C##^000000####^83F52C##^000000###############";
		mes "################^83F52C##^000000#################";
		mes "###############^83F52C##^000000##################";
		mes "###############^83F52C##^000000##################";
		mes "###############^83F52C##^000000##################";
		mes "###############^83F52C##^000000##################";
		input @num;
		if(@num == 7) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 8:
		mes "#############^83F52C#######^000000###############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "#############^83F52C#######^000000###############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "#############^83F52C#######^000000###############";
		input @num;
		if(@num == 8) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	case 9:
		mes "#############^83F52C#######^000000###############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "#############^83F52C########^000000##############";
		mes "###################^83F52C##^000000##############";
		mes "############^83F52C##^000000#####^83F52C##^000000##############";
		mes "#############^83F52C#######^000000###############";
		input @num;
		if(@num == 9) break;
		atcommand "@kick "+strcharinfo(0);
		end;
	}
	next;
	mes "[Anti Bot]";
	mes "Thank you for your patience, you can now move on.";
	atcommand "@option 0 0 0";
	atcommand "@battleignore";
	setoption 0x2,0;
	sc_end sc_berserk;
	percentheal 100,100;
	set @kill,0;
	if(@cart == 1) {
		setcart;
		set @cart,0;
	}
	if(@falcon == 1) {
		setfalcon;
		set @falcon,0;
	}
	if(@riding == 1) {
		setriding;
		set @riding,0;
	}
	close;
}
Im having errors like whats below.

[Warning]: npc_event: player's event queue is full.

I already changed eventqueue in map.h to 50 but still having these problems. I red something about putting "sleep2"

Please guide me to optimize this. Thanks

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 1

Hello I hope this will be help in the future that get the same problem that has no answer until now.
this will be not solve in the latest rAsvn.

#define MAX_EVENTQUEUE 2

that value is already set in the latest but I think its not work. I try some experiment I set it to this #define MAX_EVENTQUEUE 1000 but don't forget to backup your original src. 


 

  • MVP 1

Share this post


Link to post
Share on other sites

Hi already did. Still same ty sir

Hi already did. Still same ty sir

I have sir euphy's mission hunting script too.

Share this post


Link to post
Share on other sites

Yes sir i did. I set it to 50.

I have the antibot script, mission hunt by Sir Euphy, and this script.

-	script	#sample	-1,{
OnNPCKillEvent:
	if (killedrid == 2200 || killedrid == 2201) {
		set [email protected]$, strcharinfo(3);
		getpartymember getcharid(1),2;
		for (set [email protected],0; [email protected]<[email protected]; set [email protected],[email protected]+1) {
			if (attachrid([email protected][[email protected]])) {
				if (strcharinfo(3) == [email protected]$ && Hp > 0)
					getitem 607,1;
				detachrid;
			}
		}
	}
	end;
}

These three creates an error and says the event queue is full.

Please help

Share this post


Link to post
Share on other sites

 

Try : src/map/map.h

#define MAX_EVENTQUEUE 2

solution already given .... just edit the value..and recompile.

Share this post


Link to post
Share on other sites

 

 

Try : src/map/map.h

#define MAX_EVENTQUEUE 2

solution already given .... just edit the value..and recompile.

 

I already did Sir, I edited this #define MAX_EVENTQUEUE 2

 

to #define MAX_EVENTQUEUE 30 

 

and i recompile. Still having errors.

 

can I combine this two?

 

the anti bot and the getitem patry when the boss is killed?

 
- script Anti Bot -1,{
OnNPCKillEvent:
 
if (killedrid == 1646) {
set [email protected]$, strcharinfo(3);
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
for (set [email protected],0; [email protected]<[email protected]; set [email protected],[email protected]+1) {
if ( isloggedin( [email protected][[email protected]],[email protected][[email protected]] ) ) {
attachrid([email protected][[email protected]]);
if (strcharinfo(3) == [email protected]$)
getitem 7086,1;
detachrid;
}
}
}
end;
 
 
set @kill,@kill+1;
if(@kill >= rand(40,55)) goto Check;
end;
OnPCLoginEvent:
Check:
 
setarray .Map$[0],"prt_maze03","gef_fild06";
if(strcharinfo(3) == .Map$[0] || strcharinfo(3) == .Map$[1]){ 
 
 
//if(getgmlevel() > 40) end;
 
if(checkcart() == 1) set @cart,1;
if(checkfalcon() == 1) set @falcon,1;
if(checkriding() == 1) set @riding,1;
 
 
atcommand "@option 2 0 0";
atcommand "@battleignore";
setoption 0x2,1;
sc_start sc_berserk, 1000000000, 1;
mes "[Anti Bot]";
mes "Bot checking time";
mes "Please input the number you see";
next;
switch( rand(1,9) ) {
case 1:
mes "#################^83F52C##^000000################";
mes "###############^83F52C####^000000################";
mes "#################^83F52C##^000000################";
mes "#################^83F52C##^000000################";
mes "#################^83F52C##^000000################";
mes "#################^83F52C##^000000################";
mes "###############^83F52C######^000000##############";
input @num;
if(@num == 1) break;
atcommand "@kick "+strcharinfo(0);
end;
case 2:
mes "#############^83F52C#######^000000###############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "###################^83F52C##^000000##############";
mes "#############^83F52C#######^000000###############";
mes "############^83F52C##^000000#####################";
mes "############^83F52C##^000000#####################";
mes "############^83F52C#########^000000##############";
input @num;
if(@num == 2) break;
atcommand "@kick "+strcharinfo(0);
end;
case 3:
mes "#############^83F52C#######^000000###############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "###################^83F52C##^000000##############";
mes "#############^83F52C#######^000000###############";
mes "###################^83F52C##^000000##############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "#############^83F52C#######^000000###############";
input @num;
if(@num == 3) break;
atcommand "@kick "+strcharinfo(0);
end;
case 4:
mes "############^83F52C##^000000#####################";
mes "############^83F52C##^000000####^83F52C##^000000###############";
mes "############^83F52C##^000000####^83F52C##^000000###############";
mes "############^83F52C##^000000####^83F52C##^000000###############";
mes "############^83F52C#########^000000##############";
mes "##################^83F52C##^000000###############";
mes "##################^83F52C##^000000###############";
input @num;
if(@num == 4) break;
atcommand "@kick "+strcharinfo(0);
end;
case 5:
mes "############^83F52C########^000000###############";
mes "############^83F52C##^000000#####################";
mes "############^83F52C##^000000#####################";
mes "############^83F52C#######^000000################";
mes "##################^83F52C##^000000###############";
mes "############^83F52C##^000000####^83F52C##^000000###############";
mes "#############^83F52C######^000000################";
input @num;
if(@num == 5) break;
atcommand "@kick "+strcharinfo(0);
end;
case 6:
mes "#############^83F52C#######^000000###############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "############^83F52C##^000000#####################";
mes "############^83F52C########^000000###############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "#############^83F52C######^000000################";
input @num;
if(@num == 6) break;
atcommand "@kick "+strcharinfo(0);
end;
case 7:
mes "############^83F52C########^000000###############";
mes "############^83F52C##^000000####^83F52C##^000000###############";
mes "################^83F52C##^000000#################";
mes "###############^83F52C##^000000##################";
mes "###############^83F52C##^000000##################";
mes "###############^83F52C##^000000##################";
mes "###############^83F52C##^000000##################";
input @num;
if(@num == 7) break;
atcommand "@kick "+strcharinfo(0);
end;
case 8:
mes "#############^83F52C#######^000000###############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "#############^83F52C#######^000000###############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "#############^83F52C#######^000000###############";
input @num;
if(@num == 8) break;
atcommand "@kick "+strcharinfo(0);
end;
case 9:
mes "#############^83F52C#######^000000###############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "#############^83F52C########^000000##############";
mes "###################^83F52C##^000000##############";
mes "############^83F52C##^000000#####^83F52C##^000000##############";
mes "#############^83F52C#######^000000###############";
input @num;
if(@num == 9) break;
atcommand "@kick "+strcharinfo(0);
end;
}
next;
mes "[Anti Bot]";
mes "Thank you for your patience, you can now move on.";
atcommand "@option 0 0 0";
atcommand "@battleignore";
setoption 0x2,0;
sc_end sc_berserk;
percentheal 100,100;
set @kill,0;
if(@cart == 1) {
setcart;
set @cart,0;
}
if(@falcon == 1) {
setfalcon;
set @falcon,0;
}
if(@riding == 1) {
setriding;
set @riding,0;
}
 
close2;
end;
}
}
 

solved thanks.

Edited by Fresh prince

Share this post


Link to post
Share on other sites

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.

Loading...
Sign in to follow this