vijay30393 Posted June 16, 2014 Posted June 16, 2014 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 ~ Quote
vijay30393 Posted June 18, 2014 Author Posted June 18, 2014 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/ Quote
Veracious Posted June 16, 2014 Posted June 16, 2014 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; } Quote
vijay30393 Posted June 16, 2014 Author Posted June 16, 2014 (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 June 16, 2014 by vijay30393 Quote
Emistry Posted June 16, 2014 Posted June 16, 2014 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; } Quote
Question
vijay30393
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.