how to zone in pok?
Posted: Fri Oct 29, 2004 3:43 pm
hi all, the impatient noob speaking again :-)
im trying to get a script spanning multiple zones working. as long as the zoning is a matter of move-in-this-direction, i dont have a problem, but in pok (and anywhere where you have to click on something to zone/teleport) im stuck
atm im standing at tranquility stone in pok, trying to make a script to zone in there.
this much i figured out from looking at other example code, but from here, i cant seem to figure out how to 100% accuratley make the click-on-stone zoning to happen. i have experimented a bit, for example:
works, IF mouse cursor is in center of screen, AND IF no other player/npc is in front of what im trying to click. also, i cant figure out how to center mouse cursor in screen (without having to define constants in the script depending on current resolution) with the /mouseto command
moves mouse cursor to top left corner, is there a variable somewhere that is storing the current x & y resolution? so i could something like (THIS CODE IS NOT VALID!!):
I apologize if that was a stupud question, but i've looked for an answer throughout in forums and chm manual
edit: added note about the window.width etc code is NOT VALID
im trying to get a script spanning multiple zones working. as long as the zoning is a matter of move-in-this-direction, i dont have a problem, but in pok (and anywhere where you have to click on something to zone/teleport) im stuck
atm im standing at tranquility stone in pok, trying to make a script to zone in there.
Code: Select all
|POKPTPORT500 is the 'door' name of potranquility stone in pok
/doortarget POKPTPORT500
/face nolook door
Code: Select all
/click left
Code: Select all
/mouseto 0 0
Code: Select all
/mouseto ${Math.Abs[${Window.Width}/2]} ${Math.Abs[${Window.Height}/2]}edit: added note about the window.width etc code is NOT VALID