Zikoziz Posted January 7, 2015 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 208 Reputation: 16 Joined: 12/19/13 Last Seen: 2 hours ago Share Posted January 7, 2015 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 .@cash, 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 .@tables$[0], "auction", "cart_inventory", "guild_storage", "inventory", "mail", "storage", "char"; setarray .@s$[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: .@e$ = "|"; for ( ; .@a < 6 ; .@a++ ) { for ( .@b = 0 ; .@b < getarraysize(.Cards); ; .@b++ ) { if ( .@s$[.@a] != "0" ) { deletearray .@c ; .@n1 = query_sql ( "SELECT `"+ .@s$[.@a] +"` FROM `"+ .@tables$[.@a] +"` WHERE `nameid` = '"+ .@id[.@b] +"'", .@c ); for ( .@d = 0 ; .@d < .@n1 ; .@d++ ) { deletearray .@f ; if ( .@s$[.@a] != "account_id" ) query_sql ( "SELECT `account_id` FROM `char` WHERE `char_id` = '"+ .@c[.@d] +"' LIMIT 1", .@f ); else .@f[0] = .@c[.@d]; if ( ! compare ( .@e$, "|"+ .@c +"|" ) ) { .@e$ = .@e$ +""+ .@f[0] +"|"; query_sql "UPDATE `global_reg_value` SET `value` = `value` + '" +.@cash +"' WHERE `str` = '#CASHPOINTS' AND `account_id` = '" +.@f[0] +"'"; } } } query_sql "DELETE FROM `"+ .@tables$[.@a] +"` WHERE `nameid` = '"+ .@id[.@b] +"'"; } } 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. Quote Link to comment Share on other sites More sharing options...
Luciar Posted January 7, 2015 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 177 Reputation: 21 Joined: 01/31/12 Last Seen: March 8, 2020 Share Posted January 7, 2015 Cambie: for ( .@b = 0 ; .@b < getarraysize(.Cards); ; .@b++ ) a: for ( .@b = 0 ; .@b < getarraysize(.Cards); .@b++ ) Quote Link to comment Share on other sites More sharing options...
Zikoziz Posted January 7, 2015 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 208 Reputation: 16 Joined: 12/19/13 Last Seen: 2 hours ago Author Share Posted January 7, 2015 Probaré Quote Link to comment Share on other sites More sharing options...
sanguiman Posted January 7, 2015 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 07/08/12 Last Seen: December 15, 2022 Share Posted January 7, 2015 Funciona, ya no da error. Pero el script no cumple su función D: Quote Link to comment Share on other sites More sharing options...
Zikoziz Posted January 7, 2015 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 208 Reputation: 16 Joined: 12/19/13 Last Seen: 2 hours ago Author Share Posted January 7, 2015 X.x. dejo de marcar el error Quote Link to comment Share on other sites More sharing options...
Zikoziz Posted January 12, 2015 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 208 Reputation: 16 Joined: 12/19/13 Last Seen: 2 hours ago Author Share Posted January 12, 2015 Solucionado Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.