Jump to content
  • 0
Sign in to follow this  
sabuross

Fishing Script

Question

Having some errors, with this script, for the first NPC, dialogue won't go to the next section and just freezes there.

 

Picture:

 

dc8399e52d04f9cbd00cca2629c924fb.jpg

 

 

 

 

prontera,156,150,4	script	Fishing Guru	560,{	goto FishGuru;                       	 FishGuru:		mes [email protected]_Fishing$;		 mes "Im the known ^ff007fFishing-Guru^000000.";		 //cutin $FishingGuru$,3;		next;		 goto Selection;		 close;	 Selection:		 mes [email protected]_Fishing$;		mes "What do you want from me?";		//cutin [email protected]$,3;		next;		// =============================================================== DONT CHANGE ANYTHING HERE.		if([email protected] == 0 || [email protected] == 1 || [email protected] == 2 ) { menu "^007744[ Fishing Rank ]^000000",FishingRank,"^3333ff[ Fish Box Level ]^000000",FishingBox; }			if([email protected] == 3 || [email protected] == 4) { if(CanFishNow == 1) menu "^007744[ Fishing Rank ]^000000",FishingRank,"^3333ff[ Fish Box Level ]^000000",FishingBox; }		if([email protected] == 3 || [email protected] == 4) { if(CanFishNow == 0) menu "^00007f[ How to fish? ]^000000",FishInformation; }		// =============================================================== DONT CHANGE ANYTHING HERE.			close;			FishInformation:			 next; callfunc "FishingManualQuest"; close;		 FishingRank:			 next; goto FishRank; close;		 FishingBox:			 next; goto FBLevel; close; 			FishRank:			 mes [email protected]_Fishing$ ;			 mes "[ ^ff5500Fishing Rank^000000 ]";			 mes "Level: [ ^ffaa00" + FishingLevel + "^000000 ]";			mes "Title: [ ^ff0000" + [email protected]$[ FishingLevel ] + "^000000 ]";			mes "Experience: [ ^ff007f" + FishingNowExp + "^000000 / ^55007f" + [email protected][ FishingLevel ] + "^000000 ]";			 //cutin [email protected]$,3;			 next;			 menu "^00ff00[ Main Menu ]^000000",Selection;			 close;

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

        FishingBox:             next; goto FBLevel; close;  
you didn't post the full script that contain FBLevel label,

or it is missing

Share this post


Link to post
Share on other sites
  • 0

@@AnnieRuru

 

My bad, here's the full script of this NPC's section.

 

 

///////////////////////////////////////////////////////////////////////////                         FISHING GURU                                ///////////////////////////////////////////////////////////////////////////prontera,156,150,4	script	Fishing Guru	560,{	goto FishGuru;                       	 FishGuru:		mes [email protected]_Fishing$;		 mes "Im the known ^ff007fFishing-Guru^000000.";		 //cutin $FishingGuru$,3;		next;		 goto Selection;		 close;	 Selection:		 mes [email protected]_Fishing$;		mes "What do you want from me?";		//cutin [email protected]$,3;		next;		// =============================================================== DONT CHANGE ANYTHING HERE.		if([email protected] == 0 || [email protected] == 1 || [email protected] == 2 ) { menu "^007744[ Fishing Rank ]^000000",FishingRank,"^3333ff[ Fish Box Level ]^000000",FishingBox; }			if([email protected] == 3 || [email protected] == 4) { if(CanFishNow == 1) menu "^007744[ Fishing Rank ]^000000",FishingRank,"^3333ff[ Fish Box Level ]^000000",FishingBox; }		if([email protected] == 3 || [email protected] == 4) { if(CanFishNow == 0) menu "^00007f[ How to fish? ]^000000",FishInformation; }		// =============================================================== DONT CHANGE ANYTHING HERE.			close;			FishInformation:			 next; callfunc "FishingManualQuest"; close;		 FishingRank:			 next; goto FishRank; close;		 FishingBox:			 next; goto FBLevel; close;			 FishRank:			 mes [email protected]_Fishing$ ;			 mes "[ ^ff5500Fishing Rank^000000 ]";			 mes "Level: [ ^ffaa00" + FishingLevel + "^000000 ]";			mes "Title: [ ^ff0000" + [email protected]$[ FishingLevel ] + "^000000 ]";			mes "Experience: [ ^ff007f" + FishingNowExp + "^000000 / ^55007f" + [email protected][ FishingLevel ] + "^000000 ]";			 //cutin [email protected]$,3;			 next;			 menu "^00ff00[ Main Menu ]^000000",Selection;			 close;		FBLevel: 			 mes [email protected]_Fishing$ ;			mes "[ ^005500Fishing-Box Information^000000 ]";			 mes "Level: [ ^ff0000"+FishingBoxLevel+"^000000 ] ";			 mes "Item Requirement to Level: ";			mes "[ ^ff557f" + getitemname([email protected]mCountNeed) + "^000000 ] [ ^55007f" + [email protected][ FishingBoxLevel ] + "^000000 ]" ;			 //cutin [email protected]$,3;			next ;			if ( FishingBoxLevel >= 10 ) { mes [email protected]_Fishing$; mes "Your Fishing Box cannot increase another Level."; next;				menu "^aa55ff[ Return ]^000000",FBLevel,"^00ff00[ Main Menu ]^000000",Selection; close; }			else				 menu "[ ^ff0000Level your Fishing Box^000000 ]",LevelBox,"[ ^55ff7fMain Menu^000000 ]",Selection;				// =============================================================== DONT CHANGE ANYTHING HERE.				LevelBox:					if (countitem([email protected]) >= [email protected][[email protected]]) {						delitem [email protected],[email protected][FishingBoxLevel] ;						set FishingBoxLevel,FishingBoxLevel+1;				 // =============================================================== DONT CHANGE ANYTHING HERE.									dispbottom "Your fishing box level is now: "+FishingBoxLevel+"";						 specialeffect2 248 ; next;						 menu "^aa55ff[ Return ]^000000",FBLevel,"^00ff00[ Main Menu ]^000000",Selection;  close;					 }				 else					 dispbottom "You do not have the requirements." ;  next;					 menu "^aa55ff[ Return ]^000000",FBLevel,"^00ff00[ Main Menu ]^000000",Selection; close;		FishingInformation:			 mes [email protected]_Fishing$ ;			 mes "So you wanted to know how to fish eh..";			//cutin $FishingInformation$,3;			 next;			mes [email protected]_Fishing$ ;			mes "For you to be able to fish, first you must get ^ff0000The Fishing Manual^000000 and ^00aa00Main Fishing Equipments^000000";			//cutin $FishingInformation$,3;			 next;			mes [email protected]_Fishing$ ;			mes "Ofcourse I wont give it to you for free without achieving some certain condition";			//cutin $FishingInformation$,3;			next;			mes [email protected]_Fishing$ ;			mes "You really want to get the items eh?..";			//cutin $FishingInformation$,3;			 menu "^00ff00[ Proceed ]^000000",Quest,"[ Not yet ready! ]",NYetR;				NYetR:					mes [email protected]_Fishing$ ;					mes "Ok see you nextime arround! Get back when you are ready!";					//cutin $FishingInformation$,3;					 close;				Quest:					callfunc "NPC_QUEST";					close;	return; }
Edited by sabuross

Share this post


Link to post
Share on other sites
  • 0

I am actually curious where the [email protected] variable been set

since it not in this script, it always goes to the 1st one

 

there are also some variables like [email protected]_Fishing$, [email protected], [email protected]

that are not set in this script

 

callfunc "FishingManualQuest"; also dunno where is that function

 

so this is just a small part of a whole system

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.