Jump to content
  • 0

PODS to Rok converter ratio


Question

Posted (edited)

Good day to all,

I currently have this code from @Cyro. its working fine but i need to increase the conversion to 1 pod = 50 rok points.

can anyone teachme how to change it?
 

prontera,104,77,5     script    Meleis    97,{

set .@coinid,7179;
mes "[^0000FFMelies^000000]";
mes "Hi ^ff8800"+strcharinfo(0)+"^000000,";
mes "What can i do for you?";
mes "The Exchange ratio is 1:1";
mes "Your RoK Point: [^ff0000"+#ROK_POINTS+"^000000]";

switch(select("Cancel:Proof Of Donation  to RoK points"))
{

    case 1: break;

    case 2:
        next;

        mes "[^0000FFMelies^000000]";
        mes "Please input the amount of coins that you want to exchange.";
        mes "Note: Put ^0000ff0^000000 to exit.";

            L_inpcoin:
        input @hcoins;
        set @hhcoins,@hcoins;
        if(@hhcoins == 0) { break; }
        if(countitem(.@coinid) < @hhcoins) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcoin; }
        
        next;

        delitem .@coinid,@hhcoins;
        set #ROK_POINTS,#ROK_POINTS+@hhcoins;
        mes "[^0000FFMeleis^000000]";
        mes "You've exchanged (^ff0000"+@hhcoins+"^000000) "+getitemname(.@coinid)+"(s). Total RoK Points: [^0000ff"+#ROK_POINTS+"^000000]";
        dispbottom "[Meleis] You've exchanged ("+@hhcoins+") "+getitemname(.@coinid)+"(s). Total RoK Points: ["+#ROK_POINTS+"]";
        
        break;

//I know they weight 0 but just in case you change its weight

if (!checkweight(.@coinid,@hhcash)) { mes "* ^ff0000You're overweight please store some items.^000000"; dispbottom "[Meleis] You're overweight please store some items."; break; }
next;
set #ROK_POINTS,#ROK_POINTS - @hhcash;
getitem .@coinid,@hhcash;
mes "[^0000FFMeleis^000000]";
mes "You've exchanged (^ff0000"+@hhcash+"^000000) RoK Points to "+getitemname(.@coinid)+"(s). Total RoK Points: [^0000ff"+#ROK_POINTS+"^000000]";
dispbottom "[Meleis] You've exchanged ("+@hhcash+") RoK Points to "+getitemname(.@coinid)+"(s). Total RoK Points: ["+#ROK_POINTS+"]";
break;
}

close;

OnInit:
    waitingroom "Pods Converter",0;
    end;

}


 

Edited by Cyro
Please use code box next time

1 answer to this question

Recommended Posts

  • 0
Posted
I Think just This Line

set #ROK_POINTS,#ROK_POINTS+@hhcoins;
to
set #ROK_POINTS,#ROK_POINTS + @hhcoins*50;
//

set #ROK_POINTS,#ROK_POINTS - @hhcash
to
set #ROK_POINTS,#ROK_POINTS - @hhcash*50;

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...