Jump to content

Fishing Script


Recommended Posts


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

how to insert antibot codes into this script. i want to make it trigger when certain random number occur. (e.g if( variable = 9 ) do antibot))

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Antibot scripts are useless. You're just creating a hassle for your players.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

can this fishing script can increase the casting time? i feel so fast and easy to get item. with just a single minit i get alot item already hmm. = ="

Edited by manabeast
Link to comment
Share on other sites


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

can this fishing script can increase the casting time? i feel so fast and easy to get item. with just a single minit i get alot item already hmm. = ="

increase the value for this

set .@fcast,15;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

thx

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

what is the percentage we can get from the fishing??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   136
  • Joined:  02/26/14
  • Last Seen:  

It varies; There's many different %'s and you can control them all

Link to comment
Share on other sites


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

what is the percentage we can get from the fishing??

  
 set .@rhea_ran,rand(1,70);
 if (.@rhea_ran < 20) {
  getitem 579,1; //Fresh Fish
 }
 else if (.@rhea_ran == 20) {
  getitem 908,1; //Spawn
 }
 else if (.@rhea_ran == 21) {
  getitem 909,1; //Jellopy
 }
 else if (.@rhea_ran == 22) {
  getitem 963,1; //Sharp_Scale
 }
 else if (.@rhea_ran == 23) {
  getitem 956,1; //Gill
 }
 else if (.@rhea_ran == 24) {
  getitem 6049,1; //Marlin
 }
 else if (.@rhea_ran == 25) {
  getitem 918,1; //Sticky_Webfoot
 }
 else if (.@rhea_ran == 26) {
  getitem 960,1; //Nipper
 }
 else if (.@rhea_ran == 27) {
  getitem 910,1; //Garlet
 }
 else if (.@rhea_ran == 28) {
  getitem 938,1; //Sticky_Mucus
 }
 else if ((.@rhea_ran > 28) && (.@rhea_ran < 40)) {
  getitem 624,1; //Rotten Fish
 }
 else {
  mes "Nothing was caught.";
  close;
 }
 if (rand(1,200) == 3) {
  getitem 644,1; //Gift_Box
  mapannounce "brasilis","" + strcharinfo(0) + " has caught a Gift Box!!",bc_map,"0x00ffff";
 }
 if (rand(1,500) == 3) {
  getitem 603,1; //Old_Blue_Box
  mapannounce "brasilis","" + strcharinfo(0) + " has caught an Old Blue Box!!",bc_map,"0x00ffff";
 }
 if (rand(1,3000) == 3) {
  getitem 617,1; //Old_Violet_Box
  mapannounce "brasilis","" + strcharinfo(0) + " has caught an Old Purple Box!!",bc_map,"0x44ff44";
 }

to calculate the rate....read above post...i have posted above...

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  02/18/12
  • Last Seen:  

can we make the fishing session continuous? 1 click and you can do other stuff and let it fish by itself? i think we need to remove the "Nothing was caught." message also.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   136
  • Joined:  02/26/14
  • Last Seen:  

Im not that good with scripting Silver ^^;

The Nothing Was Caught I put there for people to know if nothing was caught so they dont think its broken

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

i agree with pneuma. if no put there nothing was caught ppl will think this is broken. you can edite to something else. just go to script and find those "The Nothing Was Caught" to something else you like.. No response/Fish run away/fail to catch fish.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  02/18/12
  • Last Seen:  

Thank you for the replies. What I meant is that if you click the "School of Fish" npc, you will fish continuously.

Picture out continuous fishing cast. Fish>get item, fish>get item without clicking it again. The purpose is to fish while afk'ing.

Anyway, I'll try also to think of this. I'm just new here. Thanks!

Link to comment
Share on other sites


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

if you want..maybe you can try it like this ? xD

go near the NPC and say "start" or "stop"

brasilis,258,60,0 script School of Fish#1 844,{
OnStart:
set @Fishing,1;
while( @Fishing ){
 if (isequipped(2764)) && (isequipped(2775)){
  specialeffect2 EF_BUBBLE;
  set .@fcast,15;
  if (isequipped(2550)) { //Fisher's_Muffler
   set .@fcast,.@fcast - 3;
  }
  if (isequipped(2443)) { //Fish_Shoes
   set .@fcast,.@fcast - 2;
  }
  progressbar "ffffff",.@fcast;
   if (rand(1,20) == 2) {
 getitem 6096,1; //Big Fish
 specialeffect EF_BUBBLE;
 mapannounce "brasilis","" + strcharinfo(0) + " has caught a Blue Fish!!!",bc_map,"0xff77ff";
 end;
   }
  set .@rhea_ran,rand(1,70);
  if (.@rhea_ran < 20) {
   getitem 579,1; //Fresh Fish
  }
  else if (.@rhea_ran == 20) {
   getitem 908,1; //Spawn
  }
  else if (.@rhea_ran == 21) {
   getitem 909,1; //Jellopy
  }
  else if (.@rhea_ran == 22) {
   getitem 963,1; //Sharp_Scale
  }
  else if (.@rhea_ran == 23) {
   getitem 956,1; //Gill
  }
  else if (.@rhea_ran == 24) {
   getitem 6049,1; //Marlin
  }
  else if (.@rhea_ran == 25) {
   getitem 918,1; //Sticky_Webfoot
  }
  else if (.@rhea_ran == 26) {
   getitem 960,1; //Nipper
  }
  else if (.@rhea_ran == 27) {
   getitem 910,1; //Garlet
  }
  else if (.@rhea_ran == 28) {
   getitem 938,1; //Sticky_Mucus
  }
  else if ((.@rhea_ran > 28) && (.@rhea_ran < 40)) {
   getitem 624,1; //Rotten Fish
  }
  else {
   mes "Nothing was caught.";
   close;
  }
  if (rand(1,200) == 3) {
   getitem 644,1; //Gift_Box
   mapannounce "brasilis","" + strcharinfo(0) + " has caught a Gift Box!!",bc_map,"0x00ffff";
  }
  if (rand(1,500) == 3) {
   getitem 603,1; //Old_Blue_Box
   mapannounce "brasilis","" + strcharinfo(0) + " has caught an Old Blue Box!!",bc_map,"0x00ffff";
  }
  if (rand(1,3000) == 3) {
   getitem 617,1; //Old_Violet_Box
   mapannounce "brasilis","" + strcharinfo(0) + " has caught an Old Purple Box!!",bc_map,"0x44ff44";
  }
  end;
 }
}
end;

OnStop:
message strcharinfo(0),"Auto Fishing Stopped.";
set @Fishing,0;
end;
OnInit:
defpattern 1, "start", "OnStart";
defpattern 1, "stop", "OnStop";
activatepset 1;
end;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  02/18/12
  • Last Seen:  

wow! i've read about this function just recently here.

Although i'm getting an error.

run_scrip: infinity loop!

Is it because of this part?

mes "Nothing was caught.";
close;

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

how to add item that has a percentage of catch to 3% to 5% the item is proof of donation

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   136
  • Joined:  02/26/14
  • Last Seen:  

I dont know how to make it 3-5 but I can help you make it 3 or 5 xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

ok i want 5% same script but added with proof of donation item and has a 5% chance to catch the POD item

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  9
  • Reputation:   0
  • Joined:  05/11/12
  • Last Seen:  

comodo,196,112,6 script School of Fish 723,{
if (isequipped(2764)) && (isequipped(2775)){
specialeffect2 EF_BUBBLE;
set .@fcast,15;
if (isequipped(2550)) { //Fisher's_Muffler
set .@fcast,.@fcast - 3;
}
if (isequipped(2443)) { //Fish_Shoes
set .@fcast,.@fcast - 2;

}
if (isequipped(5380)) { //Fish_Shoes
set .@fcast,.@fcast - 5;

}
progressbar "ffffff",.@fcast;
if (rand(1,20) == 2) {
getitem 6096,5; //Big Fish
specialeffect EF_BUBBLE;
mapannounce "comodo","" + strcharinfo(0) + " has caught a 5 Tuna!!!",bc_map,"0xff77ff";
end;
}
set .@rhea_ran,rand(1,70);
if (.@rhea_ran < 20) {
getitem 6096,1; //Fresh Fish


}
else if (.@rhea_ran == 20) {
getitem 6096,1; //Spawn


}
else if (.@rhea_ran == 21) {
getitem 7405,1; //Jellopy


}
else if (.@rhea_ran == 22) {
getitem 6096,2; //Sharp_Scale


}
else if (.@rhea_ran == 23) {
getitem 6096,2; //Gill


}
else if (.@rhea_ran == 24) {
getitem 7405,1; //Marlin


}
else if (.@rhea_ran == 25) {
getitem 6096,1; //Sticky_Webfoot


}
else if (.@rhea_ran == 26) {
getitem 6096,1; //Nipper


}
else if (.@rhea_ran == 27) {
getitem 7405,1; //Garlet


}
else if (.@rhea_ran == 28) {
getitem 6096,1; //Sticky_Mucus

}
else if ((.@rhea_ran > 28) && (.@rhea_ran < 40)) {
getitem 7405,1; //Rotten Fish


}
else {
mes "Nothing was caught.";
close;
}
if (rand(1,200) == 3) {
getitem 6096,20; //Gift_Box
mapannounce "comodo","" + strcharinfo(0) + " has caught a 20 Tuna Fish!!",bc_map,"0x0000ff";

}
if (rand(1,500) == 3) {
getitem 6096,30; //Old_Blue_Box
mapannounce "comodo","" + strcharinfo(0) + " has caught an 30 Tuna Fish!",bc_map,"0x00ffff";
}
if (rand(1,3000) == 3) {
getitem 6096,50; //Old_Violet_Box
mapannounce "comodo","" + strcharinfo(0) + " has caught an 50 Tuna Fish!!",bc_map,"0x44ff44";

}
end;
}
else {
mes "Fish are swimming in the water.";
close;
}
}

comodo.gat,189,108,4 duplicate(School of Fish) School of Fish#1 1158
comodo.gat,183,111,4 duplicate(School of Fish) Tilapya#20 2082
comodo.gat,218,108,4 duplicate(School of Fish) School of Fish#21 1069
comodo.gat,228,108,3 duplicate(School of Fish) School of Fish#22 1158
comodo.gat,214,112,4 duplicate(School of Fish) School of Fish#23 723
comodo.gat,189,122,4 duplicate(School of Fish) Mr Crab#23 1073
comodo.gat,192,106,4 duplicate(School of Fish) Octopus#23 1144

---

try this One

~

comodo,205,112,4 shop Bulantiro 1543,2764:50000000,2775:50000000,2550:100000000,2443:200000000 

More Fun~

screenElementsRO013.jpg

if (rand(1,3000) == 3) {

getitem 7179,1; //Old_Violet_Box

mapannounce "comodo","" + strcharinfo(0) + " has caught an Proof Of Donation!!",bc_map,"0x44ff44";

Edited by elements
Codeboxed
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  09/18/12
  • Last Seen:  

Nice script you got there Sir Pneuma.

How if I want to delete the requirements for every use?

I mean, if I have the Fishing Pole + Lure then I caught an Item, both Fishing Pole + Lure will be deleted.

Is it possible?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

Small tip!

If you use an if statement and there's only 1 command afterwards you don't have to use curly brackets.

Example:

Your script:

if (isequipped(2550)) { //Fisher's_Muffler
set .@fcast,.@fcast - 3;
};

What you can do instead.

if (isequipped(2550)) set .@fcast,.@fcast-3; //Fisher's Muffler.

Edited by garet999
Link to comment
Share on other sites

  • 4 years later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  04/02/17
  • Last Seen:  

How can i activate this npc it's not working sorry newbie here i dont know how to add npc actually..

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  04/23/17
  • Last Seen:  

On 12/23/2011 at 2:01 PM, Emistry said:

i guess there might be something wrong with your script...

please check for the error....

 


brasilis,258,60,0 script School of Fish 723,{
if (isequipped(2764)) && (isequipped(2775)){
 specialeffect2 EF_BUBBLE;
 set .@fcast,15;
 if (isequipped(2550)) { //Fisher's_Muffler
  set .@fcast,.@fcast - 3;
 }
 if (isequipped(2443)) { //Fish_Shoes
  set .@fcast,.@fcast - 2;
 }
 progressbar "ffffff",.@fcast;
  if (rand(1,20) == 2) {
   getitem 6096,1; //Big Fish
   specialeffect EF_BUBBLE;
   mapannounce "brasilis","" + strcharinfo(0) + " has caught a Blue Fish!!!",bc_map,"0xff77ff";
   end;
  }
 set .@rhea_ran,rand(1,70);
 if (.@rhea_ran < 20) {
  getitem 579,1; //Fresh Fish
 }
 else if (.@rhea_ran == 20) {
  getitem 908,1; //Spawn
 }
 else if (.@rhea_ran == 21) {
  getitem 909,1; //Jellopy
 }
 else if (.@rhea_ran == 22) {
  getitem 963,1; //Sharp_Scale
 }
 else if (.@rhea_ran == 23) {
  getitem 956,1; //Gill
 }
 else if (.@rhea_ran == 24) {
  getitem 6049,1; //Marlin
 }
 else if (.@rhea_ran == 25) {
  getitem 918,1; //Sticky_Webfoot
 }
 else if (.@rhea_ran == 26) {
  getitem 960,1; //Nipper
 }
 else if (.@rhea_ran == 27) {
  getitem 910,1; //Garlet
 }
 else if (.@rhea_ran == 28) {
  getitem 938,1; //Sticky_Mucus
 }
 else if ((.@rhea_ran > 28) && (.@rhea_ran < 40)) {
  getitem 624,1; //Rotten Fish
 }
 else {
  mes "Nothing was caught.";
  close;
 }
 if (rand(1,200) == 3) {
  getitem 644,1; //Gift_Box
  mapannounce "brasilis","" + strcharinfo(0) + " has caught a Gift Box!!",bc_map,"0x00ffff";
 }
 if (rand(1,500) == 3) {
  getitem 603,1; //Old_Blue_Box
  mapannounce "brasilis","" + strcharinfo(0) + " has caught an Old Blue Box!!",bc_map,"0x00ffff";
 }
 if (rand(1,3000) == 3) {
  getitem 617,1; //Old_Violet_Box
  mapannounce "brasilis","" + strcharinfo(0) + " has caught an Old Purple Box!!",bc_map,"0x44ff44";
 }
 end;
}
else {
 mes "Fish are swimming in the water.";
 close;
}
}

brasilis,255,60,0 duplicate(School of Fish) School of Fish#1 723
brasilis,252,60,0 duplicate(School of Fish) School of Fish#2 723
brasilis,249,60,0 duplicate(School of Fish) School of Fish#3 723
brasilis,246,60,0 duplicate(School of Fish) School of Fish#4 723
 

 

this is another script i have modified for you....tested and working...

it will show you this in row....

1_shadow_npc.gif

i have one question how can i fix this one, because after clicking it, it will stop. what is the script for cotinues fishing they will just click it once. Thank you !

Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/26/17
  • Last Seen:  

how to make it looping??

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
Reply to this topic...

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