Do you want random amount or just a set amount?
|
Well i just wrote this void up... and i need it too add the amount of GP i tell it to
Code:public void Stalls(int XpToAdd, int ThieveReq, int add) {//Start of method Stalls() if (playerLevel[17] < ThieveReq) {//If you don't have the level required, you won't do it sendMessage("You need an Thieving level of "+ThieveReq);//Tells you what level you need to be to steal. return; } addSkillXP(XpToAdd, 17);//Simply put, this adds Thieving experience sendMessage("You successfully steal some gp."); addItem(add, 995);//Adds the money setAnimation(881);//Animation for Thieving animationReset = System.currentTimeMillis() + 3000;//Resets the animation in 500 MS }//End of method Stalls()
And the line would be something like
Code:if (objectID == 2561) { Stalls(300, 1, 200); }
But whenever i click it nothing happens...
Stalls(XP AMT, LVL REQUIRED, XP TO ADD?, MONEY U GET.)Code:public void Stalls(int XpToAdd, int ThieveReq, int add, int money) {//Start of method Stalls() if (playerLevel[17] < ThieveReq) {//If you don't have the level required, you won't do it sendMessage("You need an Thieving level of "+ThieveReq);//Tells you what level you need to be to steal. return; } addSkillXP(XpToAdd, 17);//Simply put, this adds Thieving experience sendMessage("You successfully steal some gp."); addItem(0995, money);//Adds the money setAnimation(881);//Animation for Thieving animationReset = System.currentTimeMillis() + 3000;//Resets the animation in 500 MS }//End of method Stalls()
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |