Jump to content
  • 0

Request an npc.


vijay30393

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

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 ~

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

Anyway, Its because of the sc_all sc_end;
That will see the cart as buff, So it was removing the cart.
This post helped me. http://rathena.org/board/topic/71415-sc-end-to-exclude-cart-remove/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

 

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;
}

Link to comment
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.   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.

×
×
  • Create New...