where abouts have i gone wrong? Universal rental NPC

owned

New member
Messages
2
Points
0
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

Code:
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;}
 
Last edited by a moderator:
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..

 
 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.

 
Last edited by a moderator:
Back
Top