Multiple Waypointpackages

05/21/2005 18:20 chr0nos#1
Ok here the source from my bot to save and load more than one waypointpackage via a prefix defined in gui.
Load and Save.inc attached.

Insert this in gui.inc
__

eb_prefix = AddEditBox(gui,"prefix",310,60+70,120,20)
lb_prefix = AddLabel(gui,"prefix for Save/Load waypoints",310,80+70,180,15)
clearwp = AddButton(gui,"Clear all Waypoints",310,100+70,180,25)
__

And this in the mainloop of your fss - file:

__

if IsButtonPressed(clearwp) == 1 then
EraseRegistryDir("HKEY_CURRENT_USER","Software&#09 2;Blizzbot\Waypoints")
end

__

__