Jump to content
  • 0

Consumible item with callfunc...a refiner


ItsFree

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   7
  • Joined:  04/11/15
  • Last Seen:  

Hi i would like some help i found this i like it but i would like a edit but im not enough experienced to do by myself yet.

 

Similar like: 

but what i want... I want same but only work from +8 to +9 i mean NOT from 1~8 to +9, is just from +8 to +9, is possible to make it works?

 

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

Find

    //Check to see if the items is already +10
    if(getequiprefinerycnt(.@part) >= 10) {
        getitem 542,1;
        dispbottom "I can't refine this any more. This is as refined as it gets!";
        close;
    }

replace with

    //Check refinement
    if ( getequiprefinerycnt(.@part) < 8 || getequiprefinerycnt(.@part) >= 10 ) {
        getitem 542,1;
        dispbottom "I can only refine +8 and +9 items!";
        close;
    }

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   7
  • Joined:  04/11/15
  • Last Seen:  

Thanks!

tried but got this:

b132e9a86d7eecce7f99a5bf651fc331.png

whole script:

function	script	RefineScroll	{
			set .@menu$,"";
			for( set .@i,1; .@i = 8; set .@i,.@i+1 )
			{
				if( getequipisequiped(.@i) )
					set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";

				set .@menu$, .@menu$ + ":";
			}
	set .@part,select(.@menu$);
	
	// =========================    
	
	if(!getequipisequiped(.@part)) {
		getitem 60712,1;
		dispbottom "You're not wearing anything there that refines!";
		close;
	}
	//Check if the item is refinable...
	if(!getequipisenableref(.@part)) {
		getitem 60712,1;
		dispbottom "There is no way that this item could be refined!";
		close;
	}
	//Check refinement
    if ( getequiprefinerycnt(.@part) < 8 || getequiprefinerycnt(.@part) >= 10 ) {
        getitem 542,1;
        dispbottom "I can only refine +8 and +9 items!";
        close;
    }
	
		successrefitem .@part;
		dispbottom "There you go, Refine Scroll works like a charm :D";
		close;
	}

 

 

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
Answer this question...

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