Movepc() - wrong coords?
I'm setting up the translocator from Buther docks to east freeport and having troubles.
I went to freporte and stood on the dock in front of the translocator there to get a /loc. I put that into my movepc() call (aiming slightly higher on the Z). When I use the script, I end up in east freeport but out near the zoneline for the desert instead of on the dock. I tried the coords for a couple other places and always ended up by the desert. The command I'm using is quest::movepc(10,11,-860,-50); (this one should put you at the start of the dock, slightly in the air). Any idea what I'm doing wrong? |
Heres a copy of a translocator quest file from my server. Format your quest exactly like mine, changing the Zoneid and locs of course and it should work. Also your post should have gone into the quests section of the forums :)
Code:
sub EVENT_SAY{ |
Quote:
Quests section huh? Lol, when I think Quests, I think of questing itself - which a translocator script does not usually bring to mind. I guess if I just pretend I see "scripting" where it says "questing" I won't go off on an obsessive compulsive fit :D |
Good luck, if you get home and still can't get it to work, let me know and I'll try to help you work it out.
|
Lunchtime!
I had a thought. I didn't use floating point numbers. I wonder if there is a casting issue and the integers get converted wrong - making the engine choose a default location instead of the specified one. Lol, I hate having to work when I want to be home digging through databases and code :x |
try using a #loc and see what happens
|
You do know the /loc in game is not the same as #goto x y z, right? For some reason, the /loc x and y are reversed. So if you /loc and you are at 10, 20, 30, you would #goto 20 10 30.
Kind of annoying. But I think #loc targetting yourself gives better results? And this may not be your problem at all, since the TL to Tim Deep is WAYYY off, and nothing I did ported me to the islands... I always ended up way out by the sunken ruins and had to swim for it. |
All times are GMT -4. The time now is 01:05 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.