Jump to content
  • 0

Need some help on cash shop item script overweight item not received


aqmal9008

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/11/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  11/14/17
  • Last Seen:  

1 Solution is to make 6242 weight to 0

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/11/17
  • Last Seen:  

On 1/11/2018 at 10:36 AM, Azrael- said:

1 Solution is to make 6242 weight to 0

thanks azreal

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...