Bumpersaurus Rex
|
|

I'be been trying to use the Skill classes already used by sanity to make them move versatile and stable, and I was woundering if I can modify this method to work for NPC, Stall & Chest thieving by changing the intergers's around?
Code:Code:public void stealFromStall(int id, int xp, int level) { if (System.currentTimeMillis() - c.lastThieve < 2500) return; if (Misc.random(100) == 0) { return; } if (c.playerLevel[c.playerThieving] >= level) { if (c.getItems().addItem(id,1)) { c.startAnimation(832); c.getPA().addSkillXP(xp * Config.THIEVING_EXPERIENCE, c.playerThieving); c.lastThieve = System.currentTimeMillis(); c.sendMessage("You steal a " + server.model.items.Item.getItemName(id) + "."); } } else { c.sendMessage("You must have a thieving level of " + level + " to thieve from this stall."); } } //npc, level, exp, coin amount public int[][] npcThieving = {{1,1,8,200,1},{18,25,26,500,1},{9,40,47,1000,2},{26,55,85,1500,3},{20,70,152,2000,4},{21,80,273,3000,5}};

Bumpersaurus Rex

Well, I was thinking that I could change the bottom aray to support ID's from NPC, Chests and stalls by changeing the intergers?
Am I using the correct terms?

I aint no leecher, and I never will be...
I want to learn, so to learn I learn by my self.
End of.

Exactly if you want to learn then download a source with it and look into the coding of it and how it works then if you want to re-make it then do that? Get a feel for how to do it get some ideas if you are unsure of what to do.. I'm not going to sit here and explain how to add it from scratch I would if I had the time lolGl mate.

| « A decent Webclient Tutorial for PI? | auto donation system error » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |