Jump to content

NPC Pack de Bienvenida


Madeon

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   2
  • Joined:  12/05/19
  • Last Seen:  

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 by Madeon
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   21
  • Joined:  07/05/18
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   2
  • Joined:  12/05/19
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   21
  • Joined:  07/05/18
  • Last Seen:  

 

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


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   2
  • Joined:  12/05/19
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   21
  • Joined:  07/05/18
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

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

  • 1 year later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  05/30/21
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

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