Thread: Thieving

Results 1 to 5 of 5
  1. #1 Thieving 
    Dev.
    Guest
    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...
    Reply With Quote  
     

  2. #2  
    ArcticM
    Guest
    Do you want random amount or just a set amount?
    Reply With Quote  
     

  3. #3  
    Dev.
    Guest
    I want a said amount.. But not All having the same amount.
    Reply With Quote  
     

  4. #4  
    DeclarationOfIndependence
    Guest
    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()
    Stalls(XP AMT, LVL REQUIRED, XP TO ADD?, MONEY U GET.)
    Reply With Quote  
     

  5. #5  
    Dev.
    Guest
    Quote Originally Posted by DeclarationOfIndependence View Post
    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()
    Stalls(XP AMT, LVL REQUIRED, XP TO ADD?, MONEY U GET.)


    Thanks for this... ill try it out.


    Edit: It doesnt work.. Anybody else have a formula to fix this?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •