PDA

View Full Version : Gather character information and display them in your script.



fgamer
03-10-2015, 11:35 PM
Is it possible to gather information about the amount of XP someone has with his current logged in character?

If so, how?
I want to script a paintproggy wich displays a player his current level plus how many times he leveled running the bot.

KeepBotting
03-10-2015, 11:53 PM
BMWxi's getLevelFromXp() might be just what you're looking for, https://villavu.com/forum/showthread.php?t=108474

He explains usage and practicality in the thread

riwu
03-10-2015, 11:55 PM
tabStats.getSkillInfo({skill}, INFO_CURRENT_XP)
tabStats.getSkillLevel()

chatbox.getXPBar() gets you the xp on the xp tracker but requires it to be positioned at the certain place.

fgamer
03-11-2015, 01:31 AM
Awesome, thanks for the information!
I'll release the script I'm creating soon.

I called it "All-in-one fisher"
it contains a GUI including the following locations:
Draynor Village. (Net fishing) (supports powerfishing & banking)
Barbian Village. (Net fishing, fly fishing) (supports powerfishing & banking)
Karamja. (Net fishing, Harpoon fishing, cage fishing.) (supports powerfishing & noting)
Al kharid. (Net fishing) (supports powerfishing & banking.)
I've added a fresh paintproggy. Containing the following information:

Total EXP gained: **** EXP (** Levels gained)
EXP/Hour:
Fishes caught:
Fishes/Hour:
Profit: I currently have to change the price for one fish manually. I was hoping to find a function wich is collecting G.E data.
Profit/Hour: Profit per hour made, calculating on how many fishes you've caught.
Time ran:

Also I'm finding out if it's possible to add a small button wich allow people to minimize the paintproggy. :)

I was asking myself if it's possible to collect a character his current location, no matter where..
And make the script walk 'm to the selected location?

Myn
03-23-2015, 04:32 AM
I was asking myself if it's possible to collect a character his current location, no matter where..
And make the script walk 'm to the selected location?
Yeah, could anyone guide us how to find current player location?

General_Patrick
01-24-2016, 04:22 AM
Yeah, could anyone guide us how to find current player location?

sps.getPlayerPos();

put that into your script so that you can find the player position.