I'm making a simple fishing script.
The rules are:
- Must equip a fishing rod (2764)
- 5 seconds cast time
- Get one reward per cast
- Rewards rate are: Red Herb 40%; Yellow Herb 30%; White Herb 20%, Blue Herb 10%, Yggdrasil Berry 0.01%
prt_fild00,278,237,0 script FishingSchool10065,{set.@Rod,2764;//Fishing rodif(isequipped(.@Rod)){
specialeffect EF_BUBBLE,"Fishing School";
soundeffect "_attack_axe.wav",0;
dispbottom "[Fishing] Casting...";set.@fcast,5;
progressbar "ffffff",.@fcast;if(rand(1,10)<=4)||(rand(1,10)<=3)||(rand(1,10)<=2)||(rand(1,10)<=1){
setarray .@Catch[0],507,508,509,510;// Red 40%, Yellow 30%, White 20%, Blue Herb 10%set.@CatchRand,.@Catch[rand(getarraysize(.@Catch))];
getitem .@CatchRand,1;
specialeffect2 610;
soundeffectall "see_otter_damage.wav",0,strcharinfo(3);
dispbottom("[Fishing] You got "+ getitemname(.@CatchRand)+".");}else{
dispbottom "[Fishing] Nothing was caught...";
specialeffect2 611;
end;}if(rand(1,100)==1){
setarray .@Rare[0],607;//Yggdrasil Berry 0.01%set.@RareCatch,.@Rare[rand(getarraysize(.@Rare))];
getitem .@RareCatch,1;
dispbottom("[Fishing] Congratulations you got "+ getitemname(.@RareCatch)+".");
specialeffect2 68;
end;}else{
end;}}else{
dispbottom "[Fishing] You need a Fishing Rod.";
end;}}
Question
jamesandrew
I'm making a simple fishing script.
The rules are:
- Must equip a fishing rod (2764)
- 5 seconds cast time
- Get one reward per cast
- Rewards rate are: Red Herb 40%; Yellow Herb 30%; White Herb 20%, Blue Herb 10%, Yggdrasil Berry 0.01%
are these rands correct?
Edited by jamesandrew2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.