Creek 1 Posted July 25, 2014 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;} Quote Share this post Link to post Share on other sites
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
Share this post
Link to post
Share on other sites