imajhaynation Posted December 21, 2012 Share Posted December 21, 2012 can i request a script that socket midgears like elven link of sample http://ragnarok.levelupgames.ph/main/piercing-npc-guide/ like this ? Quote Link to comment Share on other sites More sharing options...
Sryx Posted December 21, 2012 Share Posted December 21, 2012 Try this but I don't know if it works I just edited the Lotti Gurl of Mr. Euphy prontera,150,50,5 script Piercing Expert 968,{ mes "[Piercing Expert]"; mes "I've been researching ways to use Auger of Spirit to put a socket on Elven Ears and Black Devil Mask"; next; mes "[Piercing Expert]"; menu "Auger of Spirit for Elven Ears [1]",-,"Auger of Spirit for Black Devil Mask [1]",bdm; if (countitem(.Cost[0]) < .Cost[1]) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Piercing Expert]"; mes "Here we go..."; progressbar "",2; delitem .Cost[0], .Cost[1]; set [email protected], rand(1,.Total); if (rand(1,100) > getd(".P"[email protected]+"[0]")) { for(set [email protected],0; [email protected]<getarraysize(.Default); set [email protected],[email protected]+2) { getitem .Default[[email protected]], .Default[[email protected]+1]; if ([email protected][0]) setarray [email protected][0], .Default[[email protected]], .Default[[email protected]+1]; } } else { for(set [email protected],1; [email protected]<getarraysize(getd(".P"[email protected])); set [email protected],[email protected]+2) { getitem getd(".P"[email protected]+"["[email protected]+"]"), getd(".P"[email protected]+"["+([email protected]+1)+"]"); if ([email protected][0]) setarray [email protected][0], getd(".P"[email protected]+"["[email protected]+"]"), getd(".P"[email protected]+"["+([email protected]+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "[email protected][1]+"x "+getitemname([email protected][0])+"!",0; specialeffect2 248; close; OnInit: // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],70,607,1; //607 = YGG change to you Black Devil Mask Id setarray .Default[0],0,0; setarray .Cost[0],6396,1;//6396 = Auger of Spirit set .Total,1; end; bdm: if (countitem(.Cost[0]) < .Cost[1]) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Piercing Expert]"; mes "Here we go..."; progressbar "",2; delitem .Cost[0], .Cost[1]; set [email protected], rand(1,.Total); if (rand(1,100) > getd(".P"[email protected]+"[0]")) { for(set [email protected],0; [email protected]<getarraysize(.Default); set [email protected],[email protected]+2) { getitem .Default[[email protected]], .Default[[email protected]+1]; if ([email protected][0]) setarray [email protected][0], .Default[[email protected]], .Default[[email protected]+1]; } } else { for(set [email protected],1; [email protected]<getarraysize(getd(".P"[email protected])); set [email protected],[email protected]+2) { getitem getd(".P"[email protected]+"["[email protected]+"]"), getd(".P"[email protected]+"["+([email protected]+1)+"]"); if ([email protected][0]) setarray [email protected][0], getd(".P"[email protected]+"["[email protected]+"]"), getd(".P"[email protected]+"["+([email protected]+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "[email protected][1]+"x "+getitemname([email protected][0])+"!",0; specialeffect2 248; close; OnInit: // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],70,607,1; //607 = YGG change to you Black Devil Mask Id setarray .Default[0],0,0; setarray .Cost[0],6396,1;//6396 = Auger of Spirit set .Total,1; end; } } Quote Link to comment Share on other sites More sharing options...
imajhaynation Posted December 23, 2012 Author Share Posted December 23, 2012 (edited) bdm: if (countitem(.Cost[0]) < .Cost[1]) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Piercing Expert]"; mes "Here we go..."; progressbar "",2; delitem .Cost[0], .Cost[1]; set [email protected], rand(1,.Total); if (rand(1,100) > getd(".P"[email protected]+"[0]")) { for(set [email protected],0; [email protected]<getarraysize(.Default); set [email protected],[email protected]+2) { getitem .Default[[email protected]], .Default[[email protected]+1]; if ([email protected][0]) setarray [email protected][0], .Default[[email protected]], .Default[[email protected]+1]; } } else { for(set [email protected],1; [email protected]<getarraysize(getd(".P"[email protected])); set [email protected],[email protected]+2) { getitem getd(".P"[email protected]+"["[email protected]+"]"), getd(".P"[email protected]+"["+([email protected]+1)+"]"); if ([email protected][0]) setarray [email protected][0], getd(".P"[email protected]+"["[email protected]+"]"), getd(".P"[email protected]+"["+([email protected]+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "[email protected][1]+"x "+getitemname([email protected][0])+"!",0; specialeffect2 248; close; OnInit2: // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],20,2204,1; // YGG change to you Black Devil Mask Id setarray .Default[0],0,0; setarray .Cost[0],6396,1;//6396 = Auger of Spirit set .Total,1; end; still getting the slotted elven ears >.< Edited December 23, 2012 by imajhaynation Quote Link to comment Share on other sites More sharing options...