Jump to content
  • 0
Sign in to follow this  
Creek

Script não funcioma corretamente

Question

Pessoal achei esse script e fui tentar criar o ticket refine, não dá nenhum erro no map server oque apenas aconteçe é oque apareçe na imagem

 

// Item Type change to 11// ex. 7037,Trade_Coupon,Coupon,11,100,,10,,,,,,,,,,,,,{ callfunc "RefineTicket"; },{},{}function	script	RefineTicket	{//--- Mode Bitmasks ----//	1	-	Top Headgear//	2	-	Armor//	4	-	Left Hand//	8	-	Right Hand//	16	-	Garment//	32	-	Shoes//	64	-	Left Accessory//	128	-	Right Accessory//	256	-	Middle Headgear//	512	-	Lower Headgearset .Mode,959;			//	Add in the Bitmasks Value if you want to enable it.set .EquipCheck,0;		//	Check Equip is enabled for Refine.set .RefineMode,1;		//	0 - +1 per Refine		1 - Max Refineset .MaxRefine,10;		//	Max Refine of an Equipments.set .TicketID,20003;		//	ItemID for the Ticket.set .@a,select( ( .Mode & 1 && getequipisequiped(1) )?"^0000FF"+getequipname(1)+"^000000":"",				( .Mode & 2 && getequipisequiped(2) )?"^0000FF"+getequipname(2)+"^000000":"",				( .Mode & 4 && getequipisequiped(3) )?"^0000FF"+getequipname(3)+"^000000":"",				( .Mode & 8 && getequipisequiped(4) )?"^0000FF"+getequipname(4)+"^000000":"",				( .Mode & 16 && getequipisequiped(5) )?"^0000FF"+getequipname(5)+"^000000":"",				( .Mode & 32 && getequipisequiped(6) )?"^0000FF"+getequipname(6)+"^000000":"",				( .Mode & 64 && getequipisequiped(7) )?"^0000FF"+getequipname(7)+"^000000":"",				( .Mode & 128 && getequipisequiped(8) )?"^0000FF"+getequipname(8)+"^000000":"",				( .Mode & 256 && getequipisequiped(9) )?"^0000FF"+getequipname(9)+"^000000":"",				( .Mode & 512 && getequipisequiped(10) )?"^0000FF"+getequipname(10)+"^000000":"");if (  getequiprefinerycnt(1) >= .MaxRefine ){    mes "I cant refine this items. Because it is ^FF0000Un-Refineable^000000 already due to Max Refine is Reached..";    close;    }				if ( .EquipCheck == 1 && getequipisenableref( .@a ) == 0 ){	mes "I cant refine this items. Because it is ^FF0000Un-Refineable^000000.";	close;	}if( .RefineMode ){	while( getequiprefinerycnt( .@a ) < .MaxRefine )		successrefitem ( .@a );	}else{		successrefitem ( .@a );	}	delitem .TicketID,1;	mes "You have gained : ^FF0000+"+getequiprefinerycnt( .@a )+" ^0000FF"+getequipname(.@a)+"^000000";	close;}

 

 

XgTUSvN.jpg

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.