Jump to content

Problemas con custom script


LALE

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  08/13/18
  • Last Seen:  

Mi duda es,como limitar a un personaje por cuenta para adquirir mi Set, el script abajo,por que con cada personaje pueden adquirir uno

//===== rAthena Script ======================================= 
//= Custom Items
//===== By: ================================================== 
//= LALE
//===== Current Version: ===================================== 
//= 1.4a
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= [Aegis Conversion]
//= Entregar items custom.
//===== Additional Comments: ================================= 
//= 1.4 Rescripted to Aegis 10.3 standards.
//= 1.4a Fixed a little Typo error in duplicates.
//============================================================ 
	
-	script	Items Custom::Items Custom	624,{
	if(Custom !=1){
	mes "[Devling]";
	mes "Bienvenido a la prueba Shadow Moon Ragnarok.";
	mes "Usted podra selecionar un set para ayudarlo.";
	mes "Seleccione su set acontinuacion.";
	next;
	switch(select("Rojo Set:Negro Set:Blanco Set:Azul Set")) {
	case 1:
		
		
			getitem 21018,1;
			getitem 21007,1;
			getitem 21015,1;
			set Custom,1;
			mes "[Custom]";
			mes "Gracias por preferir Shadow Ragnarok.";
			mes "Tenga un buen dia.";
			close;
	case 2:
		
			getitem 21017,1; //Mr_Smile
			getitem 21013,1;
			getitem 21004,1;
			set Custom,1;
			mes "[Custom]";
			mes "Gracias por preferir Shadow Ragnarok.";
			mes "Tenga un buen dia.";
			close;
		
	case 3:
				
			getitem 21005,1;
			getitem 21003,1;
			getitem 21004,1;
			set Custom,1;
			mes "[Custom]";
			mes "Gracias por preferir Shadow Ragnarok.";
			mes "Tenga un buen dia.";
			close;
	case 4:
				
			getitem 21010,1;
			getitem 21006,1;
			getitem 21008,1;
			set Custom,1;
			mes "[Custom]";
			mes "Gracias por preferir Shadow Ragnarok.";
			mes "Tenga un buen dia.";
			close;
		}
	}mes"Usted ya ha obtenido item custom.";
	 close;
}

prontera,158,187,4	duplicate(Items Custom)	Items Custom#prt	624

//============================================================ 
// Old changelog
//============================================================ 
//= Fully working. 1.1 Optimized
//= 1.2 updated Payon coords [Lupus]
//= 1.3 fixed exploit [Lupus]
//============================================================ 

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

 

if(Custom !=1){      ->     if(#Custom !=1){

set Custom,1;      ->     set #Custom,1;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   5
  • Joined:  07/19/15
  • Last Seen:  

 #name  - permanent local account integer

##name  - permanent global account integer variableariable

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  08/13/18
  • Last Seen:  

muchísimas gracias bro

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