Bump.
|
Hey guys I have searched and have not found the thread that I am looking for directly for a PI server. So if you could please link me to a thread that has a full guide on how to add auto donation points system that would be great. I just want to add the system in and be able to buy items with points, 1$ = 10 points. I can add the items myself I just need a thread to get started.
Bump.
Use this: http://www.rune-server.org/runescape...on-system.html
Replace the items with points.
How do you do that? Like I know what you said and I have seen the thread I just don't know how to change it to points.
Player.java you need to declare an integer for it like: public int donorPoints;
Playersave.java Make donorPoints save to peoples character files.
Martin provided you with this code server sided:
Change that to something like this:Code:if(prod == 1 && price == 3){ c.getItems().addItem(4151,1); b = true; } else if(prod == 2 && price == 6){ c.getItems().addItem(4151,1); b = true; } else if(prod == 3 && price == 9){ c.getItems().addItem(4151,1); b = true; }
Code:if(prod == 1 && price == 3){ c.donorPoints += 10; b = true; } else if(prod == 2 && price == 6){ c.donorPoints += 30; b = true; } else if(prod == 3 && price == 9){ c.donorPoints += 20; b = true; }
So once I do that I am done right? I will need to change stuff web sided to though right?
Not really, website sided you would just the text to say something like "10 Donor Points - 1$", and make sure you have the correct price and product id. Server-sided you would need to check that product id and price to tell how many points to give to that person.
Also don't forget to make a point shop for donor items using c.donorPoints.
Yeah see ima need a tutorial. im a new coder...
Add my skype? Jax.Edward.Fogle
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |