Jump to content
  • 0

fishing script


Blazing Spear

Question


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

How to make this script work with check 632 item first before fishing then if the player dont have enough item message like this "You do not have Fatty Chubby"

comodo,196,112,6 script School of Fish 723,{
if(countitem(632) < 1) goto L_Exit;
L_Exit:
mes "You do not have Fatty Chubby.";
close;
delitem 632,1;
if (isequipped(2764)) && (isequipped(2775)){
specialeffect2 EF_BUBBLE;
set .@fcast,15;
if (isequipped(2550)) set .@fcast,.@fcast-3; //Fisher's Muffler.
}
if (isequipped(2443)) set .@fcast,.@fcast-2; //Fish_Shoes
}
if (isequipped(5380)) set .@fcast,.@fcast-5; //Fish_Shoes
}
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) {
specialeffect2 610;
getitem 29183,1; //Anchovy

}
else if (.@rhea_ran == 20) {
specialeffect2 610;
getitem 29184,1; //Bass

}
else if (.@rhea_ran == 21) {
specialeffect2 610;
getitem 29185,1; //Crab

}
else if (.@rhea_ran == 22) {
specialeffect2 610;
getitem 29186,1; //Eel

}
else if (.@rhea_ran == 23) {
specialeffect2 610;
getitem 29187,1; //Jelly Fish

}
else if (.@rhea_ran == 24) {
specialeffect2 610;
getitem 29188,1; //Lobster

}
else if (.@rhea_ran == 25) {
specialeffect2 610;
getitem 29189,1; //Perch

}
else if (.@rhea_ran == 26) {
specialeffect2 610;
getitem 29190,1; //Pike

}
else if (.@rhea_ran == 27) {
specialeffect2 610;
getitem 29191,1; //Puffer

}
else if (.@rhea_ran == 28) {
specialeffect2 610;
getitem 9192,1; //Salmon
}
else if ((.@rhea_ran > 28) && (.@rhea_ran < 40)) {
specialeffect2 610;
getitem 632,1; //Fatty Chubby Earthworm

}
else {
mes "Nothing was caught.";
specialeffect2 611;
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
//Shop
comodo,205,112,4 shop Bulantiro 1543,2764:50000000,2775:50000000,2550:100000000,2443:200000000

Edited by AnnieRuru
use [codebox] if the script > 10 lines
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

if( countitem(632) < 1 ) {
  mes "You do not have Fatty Chubby.";
  close;
}
delitem 632,1;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

Done!!

Edited by SureOneHit
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...