i'm use below script for change cashpoint to coin, but have some problem, if i change point over then 3000 and above i received message cant received item because overweight and my cashpoint is deducted but item not received. i need help how to ensure npc not deducted cashpoint if i change point over 1000 cashpoint.
prontera,100,100,5 script Cashpoint to Coin 624,{
setarray .@CoinID[0],6242;
for( set .@i,0; .@i < getarraysize( .@CoinID ); set .@i,.@i + 1 )
set .@Menu$,.@Menu$ + getitemname( .@CoinID[.@i] )+":";
mes "Each 1 Cash Points.";
set .@i,( select( .@Menu$ ) - 1 );
if( #CASHPOINTS < 1 ){
mes "Sorry but you didnt have 1 Cash Points.";
}else{
mes "How many you want ?";
mes "Amount : 1 ~ "+( #CASHPOINTS / 1 );
input .@Amount,0,( #CASHPOINTS / 1 );
if( .@Amount ){
set #CASHPOINTS,#CASHPOINTS - ( .@Amount * 1 );
getitem .@CoinID[.@i],.@Amount;
mes "Done";
}
}
close;
}
Question
aqmal9008
Hye,
i'm use below script for change cashpoint to coin, but have some problem, if i change point over then 3000 and above i received message cant received item because overweight and my cashpoint is deducted but item not received. i need help how to ensure npc not deducted cashpoint if i change point over 1000 cashpoint.
prontera,100,100,5 script Cashpoint to Coin 624,{
setarray .@CoinID[0],6242;
for( set .@i,0; .@i < getarraysize( .@CoinID ); set .@i,.@i + 1 )
set .@Menu$,.@Menu$ + getitemname( .@CoinID[.@i] )+":";
mes "Each 1 Cash Points.";
set .@i,( select( .@Menu$ ) - 1 );
if( #CASHPOINTS < 1 ){
mes "Sorry but you didnt have 1 Cash Points.";
}else{
mes "How many you want ?";
mes "Amount : 1 ~ "+( #CASHPOINTS / 1 );
input .@Amount,0,( #CASHPOINTS / 1 );
if( .@Amount ){
set #CASHPOINTS,#CASHPOINTS - ( .@Amount * 1 );
getitem .@CoinID[.@i],.@Amount;
mes "Done";
}
}
close;
}
Link to comment
Share on other sites
2 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.