Motoharo Posted June 6, 2019 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 14 Reputation: 1 Joined: 05/18/19 Last Seen: 1 hour ago Share Posted June 6, 2019 Could someone help me create an NPC that uses the @cart command for the player to choose between the 1 ~ 12 appearance of the carts? Quote Link to comment Share on other sites More sharing options...
0 pajodex Posted June 6, 2019 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share Posted June 6, 2019 Or you can enable the use of @cart to players instead Quote Link to comment Share on other sites More sharing options...
0 Motoharo Posted June 6, 2019 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 14 Reputation: 1 Joined: 05/18/19 Last Seen: 1 hour ago Author Share Posted June 6, 2019 10 hours ago, pajodex said: Or you can enable the use of @cart to players instead Yes, but I want to choose a cost Quote Link to comment Share on other sites More sharing options...
0 pajodex Posted June 7, 2019 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share Posted June 7, 2019 // Note: the character needs to have the skill MC_PUSHCART to gain a cart prontera,149,180,0 script Cart Select 100,{ // zeny cost of cart. setarray .@cart_cost[1], 100, // cart 1 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200; // cart 12 if (!checkcart()) { mes "You must have a cart."; close; } mes "Choose a cart:"; next; .@menu$ = ""; for (.@i=1; .@i<13; .@i++) { .@menu$ += "Cart #"+.@i; .@menu$ += ":"; } .@s = select(.@menu$); mes "You selected Cart #"+ .@s; mes " "; mes "Cost price is "+ F_InsertComma(.@cart_cost[.@s]) +"z."; next; if(select("Yes","No")==2) close; if (Zeny < .@cart_cost[.@s]) { mes "Not enough zeny,"; close; } Zeny -= .@cart_cost[.@s]; setcart .@s; mes "Goodluck!"; close; } Quote Link to comment Share on other sites More sharing options...
Question
Motoharo
Could someone help me create an NPC that uses the @cart command for the player to choose between the 1 ~ 12 appearance of the carts?
Link to comment
Share on other sites
3 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.