Hello! Anyone would be able to help me on this script? I would like to make a count on total of Silver Coins farmed/loot from fishing and then put in a NPC that will display the total of farmed silver coins. I also would like to reset the total count of farmed silver coins weekly every Friday.
Here's my script for my fishing:
brasilis,258,60,0 script Fishing Hole 1 723,{
//Fishing rod
set .@Rod,2764;
//Fishing Lure
set .@Lure,2775;
//Auto-Fish
set .@Auto,1;
//Auto-Fish on Fail
set .@AutoFail,1;
Fish:
if (isequipped(.@Rod)) && (isequipped(.@Lure)){
specialeffect EF_BUBBLE,"Fishing Hole";
soundeffect "fishingrod.wav",0;
dispbottom "[Fishing] Casting...";
set .@fcast,20;
if (isequipped(2550)) { //Fisher's Muffler
set .@fcast,.@fcast - 2;
}
if (isequipped(2443)) { //Fisher's Boots
set .@fcast,.@fcast - 2;
}
if (isequipped(5317)) { //Fish_Hat
set .@fcast,.@fcast - 2;
}
if (isequipped(2764)) { //Fishing Pole
set .@fcast,.@fcast - 3;
}
if (isequipped(2775)) { //Fishing Lure
set .@fcast,.@fcast - 1;
}
progressbar "ffffff",.@fcast;
if (rand(1,20) == 2){
getitem 30203,2; //Fish with Blue Back
specialeffect2 EF_TEMP_OK;
mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Silver Coin 2x!",bc_map,"0xff77ff";
if(.@Auto==1){
goto Fish;}else{
end;}
}
if (rand(1,6) == 1) ||(rand(1,6) == 3) || (rand(1,6) == 6){
setarray .@Catch[0],30203;// List of Junk/Other
set .@CatchRand,.@Catch[rand(getarraysize(.@Catch))];
getitem .@CatchRand,1;
}
else {
dispbottom "[Fishing] Nothing was caught...";
if(.@AutoFail == 1){
goto Fish;} else{
end;}
}
if(.@Auto == 1){
goto Fish;} else{
end;}
}
else {
dispbottom "[Fishing] You need a Rod and Lure.";
end;
}
}