Jump to content
  • 0
Sign in to follow this  
owned

where abouts have i gone wrong? Universal rental NPC

Question

when i load the npc it loads and i can click on it all the way and once i get my cart/peco/mount it stops on the last chat with no close button to click on.

 

any help would be gratefully appreciated

 

 

prontera,146,163,6    script    Universal Rental NPC    726,{    .@price = 150000;    .@name$ = "[Universal Rental NPC]";        mes .@name$;    mes "Hello there how are we today";    mes "How may I help you?";    next;        mes .@name$;    mes " I can set you up with a Falcon, Cart or Mount for "+ .@price +"z";    next;        }    // close if second option is picked    if    (select("Yes Please, No Thanks") == 2)        close;                mes .@name$;                        // close if insufficent zeny        if (Zeny < .@price)    {                    mes " My services cost "+ .@price +"z";            mes " Please come back when you have enough money";            close;        }                mes "Congratulations";                if (ismounting()) {        message strcharinfo(0),"You must first remove your mount.";        end;    }    else if ((eaclass()&EAJ_THIRDMASK==EAJ_RANGER) && !countitem(6124)) {        if (!checkfalcon() && getskilllv("HT_FALCON") && !checkoption(Option_Wug) && !checkoption(Option_Wugrider)) {            if(select(" ~ Falcon: ~ Warg")==1) setfalcon;            else getitem 6124,1;            specialeffect2 EF_TEIHIT3;            close;        }        else getitem 6124,1;    }    else if ((eaclass()&EAJ_THIRDMASK==EAJ_MECHANIC) && !checkcart() && getskilllv("MC_PUSHCART")) {        if (!checkmadogear() && getskilllv("NC_MADOLICENCE")) {            if(select(" ~ Cart: ~ Mado")==1) setcart;            else setmadogear;            specialeffect2 EF_TEIHIT3;            close;        }        else setcart;    }    else if (!checkcart() && getskilllv("MC_PUSHCART")) setcart;    else if (!checkfalcon() && getskilllv("HT_FALCON") && !checkoption(Option_Wug) && !checkoption(Option_Wugrider)) setfalcon;    else if (!checkriding() && getskilllv("KN_RIDING")) {        if (eaclass()&EAJ_THIRDMASK==EAJ_RUNE_KNIGHT) setdragon;        else setriding;    }    else if (!checkmadogear() && getskilllv("NC_MADOLICENCE")) setmadogear;    else {        message strcharinfo(0),"You do not meet requirements to rent.";        end;    }            Zeny-= .@price;    specialeffect2 EF_TEIHIT3;    end;}
Edited by Via
Placed script inside of a codebox.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
    mes .@name$;    mes " I can set you up with a Falcon, Cart or Mount for "+ .@price +"z";    next;        } // <---------- REMOVE

your script doesnt even gave you the option to get these falcon , cart or mount..

Share this post


Link to post
Share on other sites
  • 0

    if    (select("Yes Please, No Thanks") == 2)

 

This should be:

    if (select("Yes Please:No Thanks") == 2)

 

Edit:

Might wanna change end; to close; as well.

Edited by Via

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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