Page 1 of 1
Widgets and heading
Posted: Sat Apr 30, 2016 1:37 pm
by Gangrenous
What I am finding is that boats rather leave you behind unless they are widgets. The problem then is that widgets do not seem to respond well on the heading for waypoints. The boat heading will always remain the last heading it was at, not changing when the direction of the waypoint changes.
Re: Widgets and heading
Posted: Sat Apr 30, 2016 4:04 pm
by Jabantiz
Headings should work on widgets, doors are widgets and to open them the heading is changed. Boats on the other hand have always been an issue, we have the raft in frostfang for an example but it never changes heading so I would have to look into that when I get time. There is those other boats that take you from ant to kunark for example, those aren't implemented yet.
Re: Widgets and heading
Posted: Sat Apr 30, 2016 5:04 pm
by Gangrenous
Yes I can change the heading manually but I cannot seem to find a way to do it during each waypoint change. Maybe there is an event on each waypoint change?
Re: Widgets and heading
Posted: Sat Apr 30, 2016 5:53 pm
by Jabantiz
If you are using the
movement loop lua function you can add a callback function when it reaches that location and then use
SpawnSet() in the call back function to change its heading, SpawnSet() is the same as /spawn set just the lua implementation. Odd that the widget is not facing the new location on its own like it should though.
Re: Widgets and heading
Posted: Sat Apr 30, 2016 7:00 pm
by Gangrenous
Nope, sure not. Works fine as just an NPC, but soon as I make it a widget it loses heading. Of course as just an NPC you cannot stay on the boat, you slide off.
Hell if I got the boats working in EQ1, which I did, I will figure these out.
Re: Widgets and heading
Posted: Sat Apr 30, 2016 7:05 pm
by Gangrenous
Jabantiz wrote: lua function you can add a callback function
Oh hell I just noticed there is an optional param at the end, missed that one

Re: Widgets and heading
Posted: Sat Apr 30, 2016 8:43 pm
by Gangrenous
Okay, making progress. Using the callback I was able to set the heading, a bit clunky but it is working. Another quirk, if you use the callback function the pause for the waypoint will quit working. I had to get the boat steered where I wanted it, then use another waypoint to get it to pause at the dock.
Overall, I am pretty happy with it. Later on, when pathing is perfected I will go back and do these routes cleaner, I am okay with how it currently is. I am going to get back to content at the moment but when I am done with Antonica I will work out getting players zoned around. I should be able to reuse some of my scripts from EqEmu.
Wondering though, do we have think like player globals or the ability to send signals betweem NPC's?
Re: Widgets and heading
Posted: Sat Apr 30, 2016 9:15 pm
by Jabantiz
Odd that callback now cancels the pause, that use to always work.
There is
SetPlayerHistory() and
GetPlayerHistory() that will store info in the DB, if you only need it to last while in the zone then
SetTempVariable() and
GetTempVariable() would be better. As for signals it is possible to get pointers to other spawns with the various GetSpawn functions and then use those pointers to do stuff.