Madeon Posted December 16, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 36 Reputation: 2 Joined: 12/05/19 Last Seen: September 15, 2020 Share Posted December 16, 2019 (edited) Alguien tiene un NPC o donde puedo encontrar un NPC que solo de el pack de bienvenida una sola ves usando unique_id de gepard shield, Gracías de antemano prontera,156,181,5 script Freebies NPC 100,{ mes "[ ^FF0000Administrator Helper^000000 ]"; mes "Welcome to Ragnarok Online."; next; switch(select("Reclamar Paquete:~ Cancelar")){ Case 1: query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(0)+"", .@freebiesip$); if (.@lastip$ == .@freebiesip$) { mes "[ ^FF0000Administrator Helper^000000 ]"; mes "Sorry, but you've already received your ^43572FBeginner Rewards^000000."; close; } else { mes "[ ^FF0000Administrator Helper^000000 ]"; mes "Here's your ^43572FBeginner Rewards^000000."; query_sql("INSERT INTO `login` VALUES (NULL," + getcharid(0) + ",'" + escape_sql(strcharinfo(0)) + "','" + .@freebiesip$ + "')"); for ( set .@x,0; .@x < getarraysize(.freebie_item); set .@x,.@x + 1 ) { getitem .freebie_item[.@x], .quantity[.@x]; } } close; Case 2: close; } // Configuracion OnInit: setarray .freebie_item[0],2357,2524,2421,2115,40138,7776; // ID ITEM setarray .quantity[0],2,2,2,3,3,10; // Cantidad } He intentado con este pero una ves reclamas el pack no deja a nadie mas del servidor Edited December 16, 2019 by Madeon Quote Link to comment Share on other sites More sharing options...
OptimusM Posted December 16, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 27 Reputation: 22 Joined: 07/05/18 Last Seen: Thursday at 09:54 PM Share Posted December 16, 2019 (edited) prontera,164,174,5 script pack de inicio#tupack 56,{ if( BaseLevel > 176 ){ mes "[^000088Pack Inicio^000000]"; mes "BLABLABLABLABALBA."; end; } if( #freebies == 1){ mes "[^000088Pack Inicio^000000]"; mes "Ya tienes tu pack de inicio"; close; } else{ mes "[^000088Pack Inicio^000000]"; mes "BLABLABLABLABALBA"; mes "BLABLABLABLABALBA."; mes "BLABLABLABLABALBA."; next; mes "[^000088Pack inicio^000000]"; mes "BLABLABLABLABALBA."; mes "BLABLABLABLABALBA"; next; getitem 909,1; getitem 1000,1; set #freebies, 1; mes "BLABLABLABLABALBA!"; close; } OnInit: waitingroom "Pack de inicio",0; } Solo cambia los diálogos, sprite, items a dar y coordenadas del NPC a tu conveniencia ~ Edited December 16, 2019 by OptimusM 1 Quote Link to comment Share on other sites More sharing options...
Madeon Posted December 16, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 36 Reputation: 2 Joined: 12/05/19 Last Seen: September 15, 2020 Author Share Posted December 16, 2019 3 minutes ago, OptimusM said: prontera,164,174,5 script pack de inicio#tupack 56,{ if( BaseLevel > 176 ){ mes "[^000088Pack Inicio^000000]"; mes "BLABLABLABLABALBA."; end; } if( #freebies == 1){ mes "[^000088Pack Inicio^000000]"; mes "Ya tienes tu pack de inicio"; close; } else{ mes "[^000088Pack Inicio^000000]"; mes "BLABLABLABLABALBA"; mes "BLABLABLABLABALBA."; mes "BLABLABLABLABALBA."; next; mes "[^000088Pack inicio^000000]"; mes "BLABLABLABLABALBA."; mes "BLABLABLABLABALBA"; next; getitem 909,1; getitem 1000,1; set #freebies, 1; mes "BLABLABLABLABALBA!"; close; } OnInit: waitingroom "Pack de inicio",0; } Solo cambia los diálogos, sprite, items a dar y coordenadas del NPC a tu conveniencia ~ Gracías por la rápida respuesta... Pero lo que busco es un NPC que use el last_unique_id de gepard shield Quote Link to comment Share on other sites More sharing options...
BeWan Posted December 16, 2019 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 403 Reputation: 249 Joined: 07/04/19 Last Seen: 22 hours ago Share Posted December 16, 2019 (edited) try this one - script Reward NPC -,{ .@unique_id$ = get_unique_id(); if(getd("$ID_" + .@unique_id$) > 0 || #NPCREWARD > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #NPCREWARD = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; } Edited December 17, 2019 by BeWan 1 Quote Link to comment Share on other sites More sharing options...
OptimusM Posted December 16, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 27 Reputation: 22 Joined: 07/05/18 Last Seen: Thursday at 09:54 PM Share Posted December 16, 2019 19 hours ago, Madeon said: Gracías por la rápida respuesta... Pero lo que busco es un NPC que use el last_unique_id de gepard shield Bueno, no fue lo que pediste en primer lugar, pero, para ver temas de "Gepard" , deberias consultarlo directamente con Functor, o revisar si eso que buscas deja alguna tabla en la base de datos (segun yo si) y ya con eso añadirle un check al script de ello. Quote Link to comment Share on other sites More sharing options...
Madeon Posted December 16, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 36 Reputation: 2 Joined: 12/05/19 Last Seen: September 15, 2020 Author Share Posted December 16, 2019 6 hours ago, BeWan said: try this one - script Reward NPC -,{ .@unique_id$ = get_unique_id(); if($reward_status > 0 || $reward_count < 1){ mes "[ Reward NPC ]"; mes "Sorry, but the First 50 Rewards are out. Better luck next time."; close; } if(getd("$ID_" + .@unique_id$) > 0 || #NPCREWARD > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #NPCREWARD = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; } how do i add items? Quote Link to comment Share on other sites More sharing options...
BeWan Posted December 17, 2019 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 403 Reputation: 249 Joined: 07/04/19 Last Seen: 22 hours ago Share Posted December 17, 2019 (edited) 12 hours ago, OptimusM said: Well, it was not what you asked for in the first place, but, to see "Gepard" topics, you should consult it directly with Functor, or check if what you are looking for leaves a table in the database (according to me if ) and already with that add a check to the script of it. he is just asking for get_unique_id (); Haha 12 hours ago, Madeon said: how do i add items? - script Reward NPC -,{ .@unique_id$ = get_unique_id(); if(getd("$ID_" + .@unique_id$) > 0 || #NPCREWARD > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #NPCREWARD = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; OnInit: setarray .rewards,501,10,502,10; end; } here Edited December 17, 2019 by BeWan 1 Quote Link to comment Share on other sites More sharing options...
OptimusM Posted December 17, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 27 Reputation: 22 Joined: 07/05/18 Last Seen: Thursday at 09:54 PM Share Posted December 17, 2019 2 minutes ago, BeWan said: he is just asking for get_unique_id(); dude. haha i dont know if u cant understand spanish, but clearly says "Pero lo que busco es un NPC que use el last_unique_id de gepard shield" that directly mean "im looking for an NPC that use last_unique_id *From Gepard Shield" not "itemuniqueid" from DB. Quote Link to comment Share on other sites More sharing options...
BeWan Posted December 17, 2019 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 403 Reputation: 249 Joined: 07/04/19 Last Seen: 22 hours ago Share Posted December 17, 2019 2 minutes ago, OptimusM said: i dont know if u cant understand spanish, but clearly says "Pero lo que busco es un NPC que use el last_unique_id de gepard shield" that directly mean "im looking for an NPC that use last_unique_id *From Gepard Shield" not "itemuniqueid" from DB. this is gepard function for getting unique id " get_unique_id(); " to avoid getting spam. this function is to avoid spam even if you use proxy. 1 1 Quote Link to comment Share on other sites More sharing options...
fenermotta Posted May 30, 2021 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 05/30/21 Last Seen: October 20, 2024 Share Posted May 30, 2021 Hola, alguien me puede explicar como coloco todo el set de bienvenida en una caja para entregar al usuario, es que al entregarse, sale todo por partes, y quiero que reciban una caja donde al abrirlo salgan todos los items, muchas gracias Quote Link to comment Share on other sites More sharing options...
Mael Posted May 31, 2021 Group: Forum Moderator Topic Count: 25 Topics Per Day: 0.01 Content Count: 837 Reputation: 321 Joined: 02/11/19 Last Seen: 2 hours ago Share Posted May 31, 2021 14 hours ago, fenermotta said: Hola, alguien me puede explicar como coloco todo el set de bienvenida en una caja para entregar al usuario, es que al entregarse, sale todo por partes, y quiero que reciban una caja donde al abrirlo salgan todos los items, muchas gracias Crea una caja con esta función y agrega el item al script de freebies. 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.