Jump to content
  • 0

Mining Script with progress bar


celeron0134

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   1
  • Joined:  12/13/16
  • Last Seen:  

//Mining Script//
	
prontera,156,177,3	script	Mining Ore	1288,{

set .@Auto,1;
set .@minecast,12;
if(@mining != 0) goto Dspottaken;
if(.mining != 0) goto Dstillmining;
if(countitem(28116) < 1) goto Dnopickaxe;
if (isequipped(15179)) {	set .@minecast,.@minecast - 2; }

Mine:
progressbar "ffffff",.@minecast;
if (rand(1,1000) <= 1){
setarray .@SRare[0],985,984,7620,7619;
set .@SRareCatch, .@SRare[rand(getarraysize(.@SRare))];
getitem .@SRareCatch,1; //Reward
specialeffect2 EF_TEMP_OK;
mapannounce strcharinfo(3),strcharinfo(0)+" has caught a "+getitemname(.@SRareCatch)+"!",bc_map,"0xff77ff";
if(.@Auto==1){
goto Mine;}else{
set .mining,0;
set @mining,0;
end;}
}


Dspottaken:
mes "Someone's already mining here";
close;

Dstillmining:
mes "Relax , You Are still mining";
close;

Dnopickaxe:
mes "I'll be needing a ^008800Pickaxe^000000 for this..";
close;

hello  i need a mining script that uses progress bar , but the problems are when you try to move while casting ,  the .@mining and .mining don't go 0 , it stays 1 and i cant talk to the NPC anymore

 

 

 

 

Link to comment
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.   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...