Storm Trooper

Member

Total Posts: 156
Online Status: Offline
Sat Apr 3 20:16:28 EDT 2010

What does my Add-on actually do?
My addon serves 3 purposes, these include:
1 - Loads the World map when you have attacked an NPC
2 - Loads the Attack page after you have attacked a player
3 - Allows you to use your Spacial Jump Pack with the press of a key

How does my add-on achieve this?
My addon achieves this by simply using small snippets of Javascript, which have been coded by myself with the exclusion of the Keycode/Event Manager which Cyberkilla created for FutureRP, I have given credit to this within the Add-on.

How does the Add-on load the World map after you have attacked an NPC?
When you have attacked an NPC, my Add-on will make sure you have actually attacked the NPC before it runs any of it code, by checking the URL.
After it verifies that you have, it will then look for a spefic tag name (img) depending on how many icons you have on the right side of the stat bar.
When it finds its target, it will then run the image url against my preset identifier to make sure you have indeed attacked an NPC.
Now the script knows you have attacked an NPC, it will then proceed to load the World map almost instantaneously for you without the need to press any buttons or click your mouse allowing for a swifter attacking pace.

How does the Add-on load the Attack page after you have attack a player?
The Add-on does almost exactly what is does to load the World map after attacking the NPC except once the script realises that you haven't attack an NPC, but using the same URL, it will then proceed to loading the Attack page instead.

How does the Add-on allow you to use your Spacial Jump Pack by pressing a single key?
The Add-on makes use of Cyberkilla's Keycode/Event Manager function to aid in this section.
To allow me to use my Jump Pack with a simple key press, is done by a small function.
I needed the URL to use the Jump Pack without needing to confirm the use via Pop-up, which was done by viewing the source of the Backpack page and locating the neccessary URL.
After I found the URL all I have to do is hardcode each Jump Pack ID of the end user, as I don't have access to these myself.
When the ID is hardcoded then all the end user has to do is press a predesignated key to access it.
Which each ID being unique, this mean each Add-on is unique, allowing me to edit each one accordingly for each of the end user's desired settings.

Some of the current users
Storm Trooper
KittenInMyCerealz
Aurum KodEXo
Tw1nChromeGlocks



Edited 3 time(s). Last edited by Storm Trooper @ Sat Apr 3 21:12:36 EDT 2010

Cyberkilla

Admin

Total Posts: 5,982
Online Status: Offline
Sat Apr 3 20:26:54 EDT 2010

At what point does this become automation? There's a slippery slope here.

It is certainly impressive, but also worrying. I'll have to think about this in more detail before I respond fully..


Invisible War ][