Jump to content

Recommended Posts

Utility: Points to Item Exchanger

As per @koji42's request: http://herc.ws/board/topic/4048-pods-cashpoints-convertion/

 

Description:

Exchanges items for points and vice-versa at a fixed rate.

 

Preview:

 

Download:

https://github.com/datmumbles/Scripts/raw/master/util/points2item.txt

Share this post


Link to post
Share on other sites
5 hours ago, XtriC said:

Hello Mumbles any chance you can change how many cashpoints you can trade?  like 10 cashpoints = 1 POD

Change the value of .rate under Config

Share this post


Link to post
Share on other sites

@Mumbles another favor bro PLEASE? incase if you are not busy, i just need a small assistance on this script.
I'm really bad at conversion.

What i want is. Every 1 x .pod_id = 10 .points_var$ = "#CASHPOINTS";
Vice-Versa.

If you have 2 x .pod_id = 20 points (.point_var$)
https://raw.githubusercontent.com/datmumbles/Scripts/master/util/points2item.txt
 

Share this post


Link to post
Share on other sites
6 hours ago, REKT said:

@Mumbles another favor bro PLEASE? incase if you are not busy, i just need a small assistance on this script.
I'm really bad at conversion.

What i want is. Every 1 x .pod_id = 10 .points_var$ = "#CASHPOINTS";
Vice-Versa.

If you have 2 x .pod_id = 20 points (.point_var$)
https://raw.githubusercontent.com/datmumbles/Scripts/master/util/points2item.txt
 

If you want to change the rate of points per PoD, just change:

.rate = 20;

to your desired rate, in which case would be:

.rate = 10;

 It is located on Line 129, under the Configuration heading.

Share this post


Link to post
Share on other sites
12 minutes ago, Mumbles said:

If you want to change the rate of points per PoD, just change:

.rate = 20;


.rate = 20;

to your desired rate, in which case would be:

.rate = 10;


.rate = 10;

 It is located on Line 129, under the Configuration heading.

I tried this method before but it doesn't work. if you know what i mean......
Again,

I want to exchange the 1 Coin it's going to be 10 .points_var$
A. if i change 2 coins to points = 20 .points_var$
B. if i want to change exchange my 20 points to coin is going to be 2pcs Coin

Share this post


Link to post
Share on other sites
1 hour ago, REKT said:

I tried this method before but it doesn't work. if you know what i mean......
Again,

I want to exchange the 1 Coin it's going to be 10 .points_var$
A. if i change 2 coins to points = 20 .points_var$
B. if i want to change exchange my 20 points to coin is going to be 2pcs Coin

I wrote this script many years ago in response to a request, and it doesn't look like I designed it to be reconfigurable in that direction in a user-friendly manner. Some operations needed to be flipped around for the requested effect. You can view the diff for that here: https://www.diffchecker.com/PlW5DQYU/

 

I have uploaded an alternate version of this script that converts points to items, 10:1. You can download it here: https://github.com/datmumbles/Scripts/blob/master/util/points2item_v1.0a.txt

 

Now you should be able to change the value of .rate and it will convert the way you wanted.

 

I also realize @XtriC asked for this particular function many years ago, and I hadn't realized it wasn't going to do what he asked. Four years late, but this is the solution lol

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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