I would like to seek help on this particular script
I know its possible but i cant seem to make it work
Adding a createchatroom command to the script
So it goes like, When the Player starts fishing it'll create a chatroom Saying something like "Fishing or watever"
this is my script >
jawaii,191,299,0 script School of Fish 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";
dispbottom "[Fishing] Casting...";
set .@fcast,50;
if (isequipped(2550)) { //Fisher's Muffler
set .@fcast,.@fcast - 2;
}
if (isequipped(2443)) { //Fisher's Boots
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,40) == 2){
getitem 6096,1; //Fish with Blue Back
specialeffect2 EF_TEMP_OK;
mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Blue Fish!",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],579,908,909,963,956,6049,918,960,910,938,624;// 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 (rand(1,100) == 3){
setarray .@Rare[0],644,603,617;
set .@RareCatch, .@Rare[rand(getarraysize(.@Rare))];
getitem .@RareCatch,1; //Reward
mapannounce strcharinfo(3),strcharinfo(0)+" has caught a "+getitemname(.@RareCatch)+"!",bc_map,"0x33CC00";
}
if(.@Auto == 1){
goto Fish;} else{
end;}
}
else {
dispbottom "[Fishing] You need a Rod and Lure.";
end;
}
}
jawaii,191,290,0 duplicate(School of Fish) School of Fish#1 1158
jawaii,217,296,0 duplicate(School of Fish) School of Fish#2 1255
jawaii,216,288,0 duplicate(School of Fish) School of Fish#3 1158
jawaii,213,283,0 duplicate(School of Fish) School of Fish#4 1266
jawaii,208,282,0 duplicate(School of Fish) School of Fish#5 1158
jawaii,214,299,0 duplicate(School of Fish) School of Fish#6 1158
jawaii,194,287,0 duplicate(School of Fish) School of Fish#7 1256
jawaii,201,280,0 duplicate(School of Fish) School of Fish#8 1158
jawaii,195,299,0 duplicate(School of Fish) School of Fish#9 1279
jawaii,200,301,0 duplicate(School of Fish) School of Fish#10 1158
Question
St1ng
@all!
Hi and good day!
I would like to seek help on this particular script
I know its possible but i cant seem to make it work
Adding a createchatroom command to the script
So it goes like, When the Player starts fishing it'll create a chatroom Saying something like "Fishing or watever"
this is my script >
jawaii,191,299,0 script School of Fish 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"; dispbottom "[Fishing] Casting..."; set .@fcast,50; if (isequipped(2550)) { //Fisher's Muffler set .@fcast,.@fcast - 2; } if (isequipped(2443)) { //Fisher's Boots 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,40) == 2){ getitem 6096,1; //Fish with Blue Back specialeffect2 EF_TEMP_OK; mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Blue Fish!",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],579,908,909,963,956,6049,918,960,910,938,624;// 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 (rand(1,100) == 3){ setarray .@Rare[0],644,603,617; set .@RareCatch, .@Rare[rand(getarraysize(.@Rare))]; getitem .@RareCatch,1; //Reward mapannounce strcharinfo(3),strcharinfo(0)+" has caught a "+getitemname(.@RareCatch)+"!",bc_map,"0x33CC00"; } if(.@Auto == 1){ goto Fish;} else{ end;} } else { dispbottom "[Fishing] You need a Rod and Lure."; end; } } jawaii,191,290,0 duplicate(School of Fish) School of Fish#1 1158 jawaii,217,296,0 duplicate(School of Fish) School of Fish#2 1255 jawaii,216,288,0 duplicate(School of Fish) School of Fish#3 1158 jawaii,213,283,0 duplicate(School of Fish) School of Fish#4 1266 jawaii,208,282,0 duplicate(School of Fish) School of Fish#5 1158 jawaii,214,299,0 duplicate(School of Fish) School of Fish#6 1158 jawaii,194,287,0 duplicate(School of Fish) School of Fish#7 1256 jawaii,201,280,0 duplicate(School of Fish) School of Fish#8 1158 jawaii,195,299,0 duplicate(School of Fish) School of Fish#9 1279 jawaii,200,301,0 duplicate(School of Fish) School of Fish#10 1158
Link to comment
Share on other sites
1 answer 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.