Jump to content
  • 0
Jedzkie

Navigation Error

Question

hi! i copied rathena's new guides in renewal it support the navigation script but my problem is there's an error,

 

 

	mes "Do you need help navigating the city?";	F_Navi("[Prontera Guide]"); <----------------- this part is the error, it not recognize by the server even i copy its function.	next;	set .@str$,"Would you like to check any other locations?";

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

does Hercules has this ?? what script command is this ? custom made ? or it's a function in the script ?

F_Navi("[Prontera Guide]");

 

as far as i know...we only got this..

mes "go to <NAVI>[Hat Maker]<INFO>izlude,131,148,</INFO></NAVI> to make hats";

Share this post


Link to post
Share on other sites
  • 0

 

I was able to find a global function that Euphy wrote titled F_Navi in their trunk.

 

 

Paste this in a file somewhere, load it up, and your scripts that use this function should run without error:

function    script    F_Navi    {    // Uncomment to disable the navigation system.    //set .@disabled,1;    // This function takes 0 ~ 3 parameters.    switch(getargcount()) {    case 0:    // Check if system is disabled.        return .@disabled;    case 1:    // Display information message, if enabled.        if (!.@disabled) {            next;            mes getarg(0);            mes "When you click on the ^B9062F[location name]^000000, you'll receive the most advanced ^B9062FNavigation^000000 services!";        }        return;    default:    // Display navigation link, if enabled; else set text color, if available.        if (!.@disabled)            return "<NAVI>[" + getarg(0) + "]<INFO>" + getarg(1) + ",0,000,0</INFO></NAVI>";        else if (getargcount() == 3)            return getarg(2)+getarg(0)+"^000000";        else            return getarg(0);    }}

 

 

 

Note:

Untested.

Edited by Via

Share this post


Link to post
Share on other sites
  • 0

i already add that, and still the same problem.

Share this post


Link to post
Share on other sites
  • 0

@Via ... aw...how come i never thought that was  a custom function .. >.< damn.. i keep search the src ..and doc folder ...and failed...

 

@ts

you said you get error...what's the error ?

 

navigation only work in 2011 client and above...

Share this post


Link to post
Share on other sites
  • 0

im using 2012-07-06 client. the error shows when i start the emulator.

Share this post


Link to post
Share on other sites
  • 0

@Via ... aw...how come i never thought that was  a custom function .. >.< damn.. i keep search the src ..and doc folder ...and failed...

 

@ts

you said you get error...what's the error ?

 

navigation only work in 2011 client and above...

 

@Emistry - No worries; I actually had to dig around a bit in rAthena's files to find this function lol.

 

@Frost - I went ahead and tested this on the latest release of Hercules with a 2010-07-30a client. The navigation part doesn't really work, but markers are displayed perfectly fine on the map.

 

This solution isn't pretty, but I literally just dropped the F_Navi function at the top of the file; this will enable the function within this file only, I believe (someone correct me if I'm wrong). If you want it to be a global function, I suggest you use the script function method shown in my previous reply; just be mindful of your tabs, as I came across dropped tab indentation when I initially loaded the script. If you're still erroring, screenshot or paste a copy of the error(s) [whichever is more appropriate] so that we can get a more specific look at what's going on.

 

Solution (edit header and duplicate as needed):

 

izlude,146,133,4    script    navtest    105,{    function F_Navi    {        // Uncomment to disable the navigation system.        //set .@disabled,1;        // This function takes 0 ~ 3 parameters.        switch(getargcount()) {        case 0:    // Check if system is disabled.            return .@disabled;        case 1:    // Display information message, if enabled.            if (!.@disabled) {                next;                mes getarg(0);                mes "When you click on the ^B9062F[location name]^000000, you'll receive the most advanced ^B9062FNavigation^000000 services!";            }            return;        default:    // Display navigation link, if enabled; else set text color, if available.            if (!.@disabled)                return "<NAVI>[" + getarg(0) + "]<INFO>" + getarg(1) + ",0,000,0</INFO></NAVI>";            else if (getargcount() == 3)                return getarg(2)+getarg(0)+"^000000";            else                return getarg(0);        }    }	    cutin "prt_soldier",2;	    mes "[Alberta Guide]";	    mes "Welcome to ^8B4513Alberta^000000,";	    mes "the Port City.";	    mes "Do you need help navigating the city?";	    F_Navi("[Alberta Guide]");	    next;	    set .@str$,"Would you like to check any other locations?";	    while (1) {			    switch(select("[ Main Facilities ]:[ Merchants & Helpers ]:[ Destination Ports ]:Remove Marks from Mini-Map:Cancel")) {			    case 1:					    set .@loop,1;					    while (.@loop) {							    switch(select("[ Tool Shop ]:[ Forge ]:[ Weapon & Armor Shop ]:[ Inn ]:[ Beauty Salon ]:[ Merchant Guild ]:Previous Menu")) {							    case 1:									    mes "[Alberta Guide]";									    mes "Let me mark the location of the";									    mes "the "+F_Navi("Tool Shop","alberta,98,154","^0000FF");									    mes "on your mini-map.";									    mes .@str$;									    viewpoint 1,98,154,0,0x0A82FF;									    next;									    break;							    case 2:									    mes "[Alberta Guide]";									    mes "The "+F_Navi("Forge","alberta,35,41","^B9062F")+" is currently";									    mes "located inside the Merchant Guild building.";									    mes .@str$;									    viewpoint 1,35,41,1,0xFF0000;									    next;									    break;							    case 3:									    mes "[Alberta Guide]";									    mes "Let me mark the location of the";									    mes "the "+F_Navi("Weapon & Armor Shop","alberta,117,37","^FF5400");									    mes "on your mini-map.";									    mes .@str$;									    viewpoint 1,117,37,2,0xFFB400;									    next;									    break;							    case 4:									    mes "[Alberta Guide]";									    mes "Let me mark the location of the";									    mes "the "+F_Navi("Inn","alberta,65,233","^006400");									    mes "on your mini-map.";									    mes .@str$;									    viewpoint 1,65,233,3,0xAAFF00;									    next;									    break;							    case 5:									    mes "[Alberta Guide]";									    mes "Let me mark the location of the";									    mes "the "+F_Navi("Beauty Salon","alberta,48,145","^7F3300");									    mes "on your mini-map.";									    mes .@str$;									    viewpoint 1,48,145,4,0xD2691E;									    next;									    break;							    case 6:									    mes "[Alberta Guide]";									    mes "The "+F_Navi("Merchant Guild","alberta,33,41")+" is where";									    mes "you can change your job to ^800080Merchant^000000.";									    mes "Let me mark its location";									    mes "on your mini-map.";									    mes .@str$;									    viewpoint 1,33,41,5,0xDA70D6;									    next;									    break;							    case 7:									    set .@loop,0;									    break;							    }					    }					    break;			    case 2:					    set .@loop,1;					    while (.@loop) {							    switch(select("[ Eden Teleport Officer ]:[ Kafra Employee ]:[ Cool Event Employee ]:[ Bullet Merchant ]:[ Cooking Ingredient Merchant ]:Previous Menu")) {							    case 1:									    mes "[Alberta Guide]";									    mes "^B9062FEden Teleport Officers^000000 are located in "+F_Navi("south Alberta","alberta,121,68");									    mes "and inside the "+F_Navi("Merchant Guild","alberta,33,41")+" building.";									    mes "Let me mark their locations on your mini-map.";									    mes .@str$;									    viewpoint 1,33,41,6,0xFF0000;									    viewpoint 1,121,68,7,0xFF0000;									    next;									    break;							    case 2:									    mes "[Alberta Guide]";									    mes "Let me mark the location of the";									    mes "^0000FFKafra Employees^000000";									    mes "on your mini-map.";									    mes .@str$;									    viewpoint 1,33,41,8,0x0A82FF;									    viewpoint 1,113,60,9,0x0A82FF;									    next;									    break;							    case 3:									    mes "[Alberta Guide]";									    mes "When you win event items,";									    mes "you can claim them through the "+F_Navi("Cool Event Employee","alberta,148,57","^FF5400")+".";									    mes .@str$;									    viewpoint 1,148,57,10,0xFFB400;									    next;									    break;							    case 4:									    mes "[Alberta Guide]";									    mes "The ^7F3300Bullet Merchants^000000 for ^7F3300Gunslingers^000000";									    mes "are located";									    mes "near the "+F_Navi("center of the city","alberta,117,158")+".";									    mes .@str$;									    viewpoint 1,117,158,11,0xD2691E;									    next;									    break;							    case 5:									    mes "[Alberta Guide]";									    mes "The "+F_Navi("Chef Assistant","alberta,167,135","^006400")+" in Alberta";									    mes "has many regular customers,";									    mes "especially for his ^006400Delicious Fishes^000000.";									    mes .@str$;									    viewpoint 1,167,135,12,0xAAFF00;									    next;									    break;							    case 6:									    set .@loop,0;									    break;							    }					    }					    break;			    case 3:					    set .@loop,1;					    while (.@loop) {							    switch(select("[ Port - Northern Dock ]:[ Port - Central Dock ]:[ Port - Southern Dock ]:Previous Menu")) {							    case 1:									    mes "[Alberta Guide]";									    mes "You can use the "+F_Navi("Northern Dock","alberta,192,196");									    mes "to go to ^0000FFPort Malaya^000000 or ^0000FFDewata^000000.";									    mes .@str$;									    viewpoint 1,192,196,13,0xFF0000;									    next;									    break;							    case 2:									    mes "[Alberta Guide]";									    mes "You can use the "+F_Navi("Central Dock","alberta,192,151");									    mes "to go to the ^B9062FSunken Ship^000000 or ^B9062FIzlude Marina^000000.";									    mes .@str$;									    viewpoint 1,192,151,14,0xFF0000;									    next;									    break;							    case 3:									    mes "[Alberta Guide]";									    mes "You can use the "+F_Navi("Southern Dock","alberta,245,86");									    mes "to go to ^0000FFTurtle Island^000000, ^0000FFBrasilis^000000, ^0000FFAmatsu^000000, ^0000FFKunlun^000000, ^0000FFMoscovia^000000, ^0000FFLouyang^000000, or ^0000FFAyothaya^000000.";									    mes .@str$;									    viewpoint 1,245,86,15,0xFF0000;									    next;									    break;							    case 4:									    set .@loop,0;									    break;							    }					    }					    break;			    case 4:					    mes "[Alberta Guide]";					    mes "Sure, I'll remove all marks from your mini-map.";					    mes "Is there anything else I can do for you?";					    viewpoint 2,1,1,0,0xFFFF00;					    viewpoint 2,1,1,1,0x000000;					    viewpoint 2,1,1,2,0xFF0000;					    viewpoint 2,1,1,3,0xFFFF00;					    viewpoint 2,1,1,4,0xFFFF00;					    viewpoint 2,1,1,5,0xFFFF00;					    viewpoint 2,1,1,6,0xFFFF00;					    viewpoint 2,1,1,7,0xFFFF00;					    viewpoint 2,1,1,8,0xFFFF00;					    viewpoint 2,1,1,9,0xFFFF00;					    viewpoint 2,1,1,10,0xFFFF00;					    viewpoint 2,1,1,11,0xFFFF00;					    viewpoint 2,1,1,12,0x000000;					    viewpoint 2,1,1,13,0xFFFF00;					    viewpoint 2,1,1,14,0xFFFF00;					    viewpoint 2,1,1,15,0xFFFF00;					    next;					    break;			    case 5:					    mes "[Alberta Guide]";					    mes "Enjoy your stay.";					    close2;					    cutin "prt_soldier",255;					    end;			    }	    }}

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...

×
×
  • Create New...

Important Information

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