i did something similar to this with my egate script...
what i ended up doing was creating a new data type that encased the name of the location, the map, and the coords into 1 data type.
and the gump has a dynamically generated list of the locations with page checking and cycling when drawing the gump.
probably be a good place to look. also, this new fad with all these small scripts all having tons of scripts and people rar/zip them is annoying to me. you can look at my system how i did it all inside 1 file and duplicate that for simplicity.
|