Hi, can I know how to edit this Cash Converter Npc at below?
I want to make it like 6 TCG card to 1 cash point..
But I have tried several times to edit it but the Cash Point amount give out doesn't get what I want.
Can please point out where should I need to edit in details? Because I'm still new to here.
*lol
prt_in,44,100,3 script CP Converter 532,{
.@name$ = strcharinfo(0); // Char Name
.@item = 7227; // Item ID
.@amount = 1; // Amount
.@countitem = countitem( .@item* ); // Countitem
if( .@countitem < 1 ) {
mes "[ Cash Converter ]";
mes "You don't have any ^0000FF"+ getitemname(.@item) +"^000000 in your Inventory to be exchanged for Cash Points.";
mes "Please come back to me if you have it already.";
close;
}
mes "[ Cash Converter ]";
mes rand(2) ? ""+callfunc("F_Hi")+" I'm Cash Converter, of Prontera Rune-Midgard City."
: ""+callfunc("F_Hi")+" I can able to exchange your ^0000FF"+ getitemname(.@item) +"^000000 to Cash Points.";
mes " ";
mes "What would you like to do?";
next;
mes "[ Cash Converter ]";
mes "^FF0000Information:^000000";
mes "^777777 -------------------- ^000000";
mes "Exchange Rate: "+ .@countitem +" x "+ getitemname( .@item ) +" to "+ ( .@countitem * .@amount ) +" Cash Point"+ (.@countitem * .@amount > 1 ? "s" : "") +"";
next;
if( select("- Convert","- Cancel") == 1 ) {
progressbar "0x11CC99",1; specialeffect2 EF_REMOVETRAP;
delitem .@item,.@countitem;
#CASHPOINTS = #CASHPOINTS + ( .@countitem * .@amount );
message .@name$,"You have recieved "+ .@countitem * .@amount +" Cash Point"+ (#CASHPOINTS > 1 ? "s" : "") +" and a of Total: "+ #CASHPOINTS +" Cash Point"+ (#CASHPOINTS > 1 ? "s" : "") +"";
mes "[ Cash Converter ]";
mes "You have successfully exchanged.";
}
close;
}
Question
ahloi007
Hi, can I know how to edit this Cash Converter Npc at below?
I want to make it like 6 TCG card to 1 cash point..
But I have tried several times to edit it but the Cash Point amount give out doesn't get what I want.
Can please point out where should I need to edit in details? Because I'm still new to here.
*lol
prt_in,44,100,3 script CP Converter 532,{ .@name$ = strcharinfo(0); // Char Name .@item = 7227; // Item ID .@amount = 1; // Amount .@countitem = countitem( .@item* ); // Countitem if( .@countitem < 1 ) { mes "[ Cash Converter ]"; mes "You don't have any ^0000FF"+ getitemname(.@item) +"^000000 in your Inventory to be exchanged for Cash Points."; mes "Please come back to me if you have it already."; close; } mes "[ Cash Converter ]"; mes rand(2) ? ""+callfunc("F_Hi")+" I'm Cash Converter, of Prontera Rune-Midgard City." : ""+callfunc("F_Hi")+" I can able to exchange your ^0000FF"+ getitemname(.@item) +"^000000 to Cash Points."; mes " "; mes "What would you like to do?"; next; mes "[ Cash Converter ]"; mes "^FF0000Information:^000000"; mes "^777777 -------------------- ^000000"; mes "Exchange Rate: "+ .@countitem +" x "+ getitemname( .@item ) +" to "+ ( .@countitem * .@amount ) +" Cash Point"+ (.@countitem * .@amount > 1 ? "s" : "") +""; next; if( select("- Convert","- Cancel") == 1 ) { progressbar "0x11CC99",1; specialeffect2 EF_REMOVETRAP; delitem .@item,.@countitem; #CASHPOINTS = #CASHPOINTS + ( .@countitem * .@amount ); message .@name$,"You have recieved "+ .@countitem * .@amount +" Cash Point"+ (#CASHPOINTS > 1 ? "s" : "") +" and a of Total: "+ #CASHPOINTS +" Cash Point"+ (#CASHPOINTS > 1 ? "s" : "") +""; mes "[ Cash Converter ]"; mes "You have successfully exchanged."; } close; }
Link to comment
Share on other sites
7 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.