Jump to content
Zikoziz

Ayuda con Script

Recommended Posts

Saludos,

Llevo dias trabajando en un script con ayuda de la misma comunidad, la gracia del script es que elimine las MVPs y entrege Cash, al momento de relogear o entrar al servidor.

 

Aqui el Scrip

// créditos Pastilla eRO
-	script	Borr_Config	-1,{
OnInit:
	set [email protected], 10000;
	set $mingm,99;
	setarray .Cards[0],4121,4123,4128,4131,4132,4134,4135,4137,4142,4143,4144,4145,4146,4147,4148,4168,4236,4241,4263,4276,4302,4305,4318,4324,4330,4342,4357,4359,4361,4363,4365,4399,4403,4407;
	setarray [email protected]$[0], "auction", "cart_inventory", "guild_storage", "inventory", "mail", "storage", "char";
	setarray [email protected]$[0], "seller_id", "char_id", "0", "char_id", "dest_id", "account_id";
	end;
}
que_moon,39,19,4	script	Borradora de Cartas	726,{
	mes "¡Hola "+strcharinfo(0)+"! ¿Borramos las cartas MvP y Mini Boss?";
	next;
	if (getgmlevel() >= $mingm) {
	switch(select("- Demosle:- Ni Cagando")) {
		case 1:
	[email protected]$ = "|";
	for ( ; [email protected] < 6 ; [email protected]++ )
	{
		for ( [email protected] = 0 ; [email protected] < getarraysize(.Cards); ; [email protected]++ )
		{
			if ( [email protected]$[[email protected]] != "0" )
			{
			deletearray [email protected] ;
			[email protected] = query_sql ( "SELECT `"+ [email protected]$[[email protected]] +"` FROM `"+ [email protected]$[[email protected]] +"` WHERE `nameid` = '"+ [email protected][[email protected]] +"'", [email protected] );
			for ( [email protected] = 0 ; [email protected] < [email protected] ; [email protected]++ )
			{
				deletearray [email protected] ;
 				if ( [email protected]$[[email protected]] != "account_id" )
					query_sql ( "SELECT `account_id` FROM `char` WHERE `char_id` = '"+ [email protected][[email protected]] +"' LIMIT 1", [email protected] );
				else
				[email protected][0] = [email protected][[email protected]];
			if ( ! compare ( [email protected]$, "|"+ [email protected] +"|" ) )
			{
					[email protected]$ = [email protected]$ +""+ [email protected][0] +"|";
					query_sql "UPDATE `global_reg_value` SET `value` = `value` + '" [email protected] +"' WHERE `str` = '#CASHPOINTS' AND `account_id` = '" [email protected][0] +"'";
				}
			}
		}
			query_sql "DELETE FROM `"+ [email protected]$[[email protected]] +"` WHERE `nameid` = '"+ [email protected][[email protected]] +"'";
		}
	}
	dispbottom "Todo listo.";
	close;
		case 2:
mes "¡Bueno!, si eso es lo que quieres. :(";
			close;
	}
	end;
}
}

Aqui el Error

[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - SELECT `` FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - DELETE FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - SELECT `` FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - DELETE FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - SELECT `` FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - DELETE FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - SELECT `` FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - DELETE FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - SELECT `` FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - DELETE FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - SELECT `` FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)
[SQL]: DB error - Incorrect table name ''
[Debug]: at script.c:15456 - DELETE FROM `` WHERE `nameid` = '0'
[Debug]: Source (NPC): cards_deleter at que_moon (39,19)

Espero que me puedan ayudar.

 

Link to comment
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
Reply to this topic...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.