Jump to content
  • 0

i have a question npc seller input confirm


Boneash

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/28/20
  • Last Seen:  

I made an npc seller with input confirm it's ok but my problem when buying 100 slim potions for 5 tcg is given to me is only 100 slim potions should only be 500. 1 tcg per 100 slim potion.


here my script

    case 1:
            input @amount,0,countitem(7227);
            if (countitem(7227) < 1) goto L_NE;
        if (countitem(547) >= 100) goto L_GA;
        delitem 7227,@amount;
        getitem 547,1000;
        close;

Edited by Boneash
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

Better you give your full script in CODE BOX for fast response.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/28/20
  • Last Seen:  

prontera,149,159,5    script    Alex Seller    612,{
    mes "[Alex Seller]";
    mes "What would you like to do?";
    next;
    switch(select("White Slim Potion")) {
    
    case 1:
            input @amount,0,countitem(7227);
            if (countitem(7227) < 1) goto L_NE;
        if (countitem(547) >= 100) goto L_GA;
        delitem 7227,@amount;
        getitem 547,1000;
        close;

L_NE:
        mes "[Alex Seller]";
        mes "I'm Sorry but you don't have enough TCG CARD.";
        close;
    L_GA:
        mes "[Alex Seller]";
        mes "Please use all your White Slim Potion first before buying.";
        close;    
    case 7:
        next;
        mes "[Alex Seller]";
        mes "Okay bye!";
        close;
    }
OnInit:
end;

}

what i mean is npc trader for consumbles
example
selling 100 potion for 1 tcg how many tcg do you want to spend.
then admin can set how many btix per 1tcg?

Edited by Boneash
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...