Jump to content

Recommended Posts

Posted (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 by Madeon
Posted (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 by OptimusM
  • Upvote 1
Posted
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

Posted (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 by BeWan
  • Like 1
Posted

 

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.

Posted
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?

Posted (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 by BeWan
  • MVP 1
Posted
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.

Posted
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
  • 1 year later...
Posted

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

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

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...