sabuross 0 Posted December 13, 2015 Having some errors, with this script, for the first NPC, dialogue won't go to the next section and just freezes there. Picture: 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; Quote Share this post Link to post Share on other sites
0 AnnieRuru 952 Posted December 13, 2015 FishingBox: next; goto FBLevel; close; you didn't post the full script that contain FBLevel label,or it is missing Quote Share this post Link to post Share on other sites
0 sabuross 0 Posted December 13, 2015 (edited) @@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]) + "^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 December 13, 2015 by sabuross Quote Share this post Link to post Share on other sites
0 AnnieRuru 952 Posted December 13, 2015 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 Quote Share this post Link to post Share on other sites
Having some errors, with this script, for the first NPC, dialogue won't go to the next section and just freezes there.
Picture:
Share this post
Link to post
Share on other sites