Jump to content

Question

Posted

I want to request an NPC which getcart; to the players(merchant class) who enter to a map called prt_are01.
Since the cart vanishes when merchant class enters to prt_are01,
I tried to find the npc which does that and I couldn't find it.

Thanks ~

4 answers to this question

Recommended Posts

Posted

http://rathena.org/board/topic/59956-breeder-universal-rental-npc-in-swordman-type/?p=83950

 

prontera,155,181,5    script    Sample    757,{
mes "[Universal Rental Npc]";
mes "Hi, would you like to rent a cart?";
next;
switch(select("Yes ofcourse!:No, thanks.")){
Case 1:
    if( checkcart() || !getskilllv("MC_PUSHCART") ){
        mes "Sorry you don't meet the requirements.";
    }else
        setcart;
    break;
Case 2:
        mes "As you wish sir.";
    break;
}
        mes "Have a nice day!";
close;
}
Posted (edited)

 

http://rathena.org/board/topic/59956-breeder-universal-rental-npc-in-swordman-type/?p=83950

prontera,155,181,5    script    Sample    757,{
mes "[Universal Rental Npc]";
mes "Hi, would you like to rent a cart?";
next;
switch(select("Yes ofcourse!:No, thanks.")){
Case 1:
    if( checkcart() || !getskilllv("MC_PUSHCART") ){
        mes "Sorry you don't meet the requirements.";
    }else
        setcart;
    break;
Case 2:
        mes "As you wish sir.";
    break;
}
        mes "Have a nice day!";
close;
}

You din't get my point :/

I already have the npc, My problem is not that.

I just want the setcart; if people warp to prt_are01

Edited by vijay30393
Posted

you can try this


-	script	Sample#autocart	-1,{
OnPCLoadMapEvent:
	if( strcharinfo(3) == .map$ && !checkcart() && getskilllv( "MC_PUSHCART" ) )
		setcart;
	end;

OnInit:
	.map$ = "prt_are01";
	setmapflag( .map$,mf_loadevent );
	end;
}

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...