Jump to content
Madeon

NPC Pack de Bienvenida

Recommended Posts

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)+"", [email protected]$);
			if ([email protected]$ == [email protected]$) {
					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)) + "','" + [email protected]$ + "')");
					for ( set [email protected],0; [email protected] < getarraysize(.freebie_item); set [email protected],[email protected] + 1 ) {
						getitem .freebie_item[[email protected]], .quantity[[email protected]];
					}
				}
				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 by Madeon
Link to comment
Share on other sites

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 by OptimusM
  • Upvote 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

try this one

-	script	Reward NPC	-,{
	[email protected]_id$ = get_unique_id();

	if(getd("$ID_" + [email protected]_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_" + [email protected]_id$,1;
	#NPCREWARD = 1;
	$reward_count -= 1;
	for([email protected] = 0; [email protected] < getarraysize(.rewards); [email protected] += 2)
		getitem .rewards[[email protected]],.rewards[[email protected]+1];
	if($reward_count == 0)
		$reward_status = 1;
	end;
}

Edited by BeWan
  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

6 hours ago, BeWan said:

try this one

-	script	Reward NPC	-,{
	[email protected]_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_" + [email protected]_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_" + [email protected]_id$,1;
	#NPCREWARD = 1;
	$reward_count -= 1;
	for([email protected] = 0; [email protected] < getarraysize(.rewards); [email protected] += 2)
		getitem .rewards[[email protected]],.rewards[[email protected]+1];
	if($reward_count == 0)
		$reward_status = 1;
	end;
}

how do i add items?

Link to comment
Share on other sites

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	-,{
	[email protected]_id$ = get_unique_id();

	if(getd("$ID_" + [email protected]_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_" + [email protected]_id$,1;
	#NPCREWARD = 1;
	$reward_count -= 1;
	for([email protected] = 0; [email protected] < getarraysize(.rewards); [email protected] += 2)
		getitem .rewards[[email protected]],.rewards[[email protected]+1];
	if($reward_count == 0)
		$reward_status = 1;
	end;
	
OnInit:
	setarray .rewards,501,10,502,10;
	end;
}

here

Edited by BeWan
  • MVP 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

  • Upvote 1
  • MVP 1
Link to comment
Share on other sites

image.thumb.png.f4b1cd8e250310378a8daf9329ed349f.png

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

Link to comment
Share on other sites

14 hours ago, fenermotta said:

image.thumb.png.f4b1cd8e250310378a8daf9329ed349f.png

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.

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.