Jump to content
  • 0
cadz

item to points amount problem

Question

hi anyone can help me put an amount on this script i found master emistry script but i can't apply adding amount before the exchange i put the input amount but nothing happens even no error on the script .thanks in advance.

prontera,146,107,5    script    Board Lady    646,{

[email protected] = 7339;
[email protected] = 1;


    mes "[ Board Lady]
    mes "Hi ther adventurer";
    mes "do you have board tickets?";
    mes "i can convert it to kafra points";
    mes "so you can buy at the free cash shop NPC";
    next;
    mes "[ Board Lady]
    mes "^009900 1 ticket = 1 kafra points";
    mes "How many Board Quest Ticket do you have?";
    next;
    input [email protected];
    if ([email protected] == 0) {
        mes .NPC$;
        mes "Umm, please enter your amount!";
        close;
    }
    [email protected] = ([email protected] * .ID); 
    if ([email protected] > [email protected]) {
    mes .NPC$;
    mes "You dont' have enough ticket!!!";
    close;
    }
    if ([email protected] == 0){

    mes .NPC$;
    mes "You don't have ticket!!";
    close;
    }
    [email protected] = countitem( [email protected] );
    mes "Exchange "[email protected]+" x "+getitemname( [email protected] )+" to "+( [email protected] * [email protected] )+" Point ?";

    if( [email protected] )
    if( select( "YES","Cancel" ) == 1 ){
        delitem [email protected],[email protected];
        #KAFRAPOINTS = #KAFRAPOINTS + ( [email protected] * [email protected] );
        mes "Done";
    }
    close;
    }

 

Edited by Haruka Mayumi
Please Code Box
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
37 minutes ago, cadz said:

hi anyone can help me put an amount on this script i found master emistry script but i can't apply adding amount before the exchange i put the input amount but nothing happens even no error on the script .thanks in advance.

prontera,146,107,5    script    Board Lady    646,{

[email protected] = 7339;
[email protected] = 1;


    mes "[ Board Lady]
    mes "Hi ther adventurer";
    mes "do you have board tickets?";
    mes "i can convert it to kafra points";
    mes "so you can buy at the free cash shop NPC";
    next;
    mes "[ Board Lady]
    mes "^009900 1 ticket = 1 kafra points";
    mes "How many Board Quest Ticket do you have?";
    next;
    input [email protected];
    if ([email protected] == 0) {
        mes .NPC$;
        mes "Umm, please enter your amount!";
        close;
    }
    [email protected] = ([email protected] * .ID); 
    if ([email protected] > [email protected]) {
    mes .NPC$;
    mes "You dont' have enough ticket!!!";
    close;
    }
    if ([email protected] == 0){

    mes .NPC$;
    mes "You don't have ticket!!";
    close;
    }
    [email protected] = countitem( [email protected] );
    mes "Exchange "[email protected]+" x "+getitemname( [email protected] )+" to "+( [email protected] * [email protected] )+" Point ?";

    if( [email protected] )
    if( select( "YES","Cancel" ) == 1 ){
        delitem [email protected],[email protected];
        #KAFRAPOINTS = #KAFRAPOINTS + ( [email protected] * [email protected] );
        mes "Done";
    }
    close;
    }

alright i fix it. kindly close this thread thanks! 😄

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.