Jump to content
  • 0

R>De-Refiner


Budots

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

I have here a working Instant Refiner

 

can you please add de-refiner option on this?

 

players will choose if they will REFINE or DE-REFINE there items.

 

Thanks!

quick_refine.txt

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

prontera,155,187,3	script	Instant Refiner	710,{
	select "Refine", "Derefine";
	for ( .@i = 1; .@i <= 10; .@i++ ) {
		if ( getequipisequiped( .@i ) ) {
			if ( getequipisenableref( .@i ) ) {
				if ( @menu == 1 ) {
					while ( getequiprefinerycnt( .@i ) < 10 )
						successrefitem .@i;
				}
				else {
					while ( getequiprefinerycnt( .@i ) > 0 )
						downrefitem .@i; // me still using old emu ...
				//	downrefitem .@i, getequiprefinerycnt( .@i ); // perhaps you also using old version like me
				}		
			}
		}
	}
	close;
}
actually I just realise that *getequipis.... command always return 0 when nothing equip there ... erm ...

my previous statement was incorrect

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

This command may help you:

downrefitem <equipment slot>{,<count>};
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

 

This command may help you:

downrefitem <equipment slot>{,<count>};

Can you add it on my script sir? I'm poor in scripting :(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

 

I think its not working, NPC just appear in game but doesn't something. /oops

Gladly i found this script credits to Rikimaru.

Can you edit the script so that it will only REFINE items that are allowed to be refine.

 

It is working well but then it will refine all items including the items that are not allowed to be refine on my server.

Refiner_Repairman2.txt

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

just some typo...already updated the contents.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

 

just some typo...already updated the contents.

 

Did you fix it sir? Where?

Edited by Budots-RO
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

if( .@refine == 1 ){

refresh that page .. clear the cache of that page..sometime it wont update the  raw contents with just normal refresh.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

if( .@refine == 1 ){

refresh that page .. clear the cache of that page..sometime it wont update the  raw contents with just normal refresh.

 

 

I already do @reloadscript but still NPC just appear in game but totally not working.

Edited by Budots-RO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

muahahaha me already got a support PM on the 1st day on return, I can't even believe it

 

prontera,155,187,3	script	Instant Refiner	710,{
	select "Refine", "Derefine";
	for ( .@i = 1; .@i <= 10; .@i++ ) {
		if ( getequipisequiped( .@i ) ) {
			if ( getequipisenableref( .@i ) ) {
				if ( @menu == 1 ) {
					while ( getequiprefinerycnt( .@i ) < 10 )
						successrefitem .@i;
				}
				else {
				//	while ( getequiprefinerycnt( .@i ) > 0 )
				//		downrefitem .@i; // me still using old emu ...
					downrefitem .@i, getequiprefinerycnt( .@i );
				}		
			}
		}
	}
	close;
}
Emistry problem is because he didn't add *getequipisequiped check

after read the source script.c file only realise it doesn't cause that error

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

muahahaha me already got a support PM on the 1st day on return, I can't even believe it

 

prontera,155,187,3	script	Instant Refiner	710,{
	select "Refine", "Derefine";
	for ( .@i = 1; .@i <= 10; .@i++ ) {
		if ( getequipisequiped( .@i ) ) {
			if ( getequipisenableref( .@i ) ) {
				if ( @menu == 1 ) {
					while ( getequiprefinerycnt( .@i ) < 10 )
						successrefitem .@i;
				}
				else {
				//	while ( getequiprefinerycnt( .@i ) > 0 )
				//		downrefitem .@i; // me still using old emu ...
					downrefitem .@i, getequiprefinerycnt( .@i );
				}		
			}
		}
	}
	close;
}
Emistry problem is because he didn't add *getequipisequiped check

 

Still not working, although NPC APPEARS in game but then its not doing anything.

post-20873-0-53454700-1387300208_thumb.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

WORKS LIKE A CHARM. BIG THANKS ANNIE :D :D :D

AND WELCOME BACK

Edited by Budots-RO
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...