Jump to content
  • 0

Question

Posted

@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

 

1 answer to this question

Recommended Posts

  • 0
Posted
6 hours ago, St1ng said:

@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"

4

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6843

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...