Teleport
Moderator: Team Members
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Teleport
Everyone remembers these things in South Qeynos, they are not a zone object, more like some type of emitter. If I wanted to use these as a teleporter, what are my options? I could put an invisible NPC in place but I am not seeing how to make a spawn invis.
You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Teleport
`transporters` table should allow you to set a location that when a player enters it they are automatically teleported to the destination.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Teleport
Not seeing anywhere in the editor to modify this, guess I know what I will be doing today.
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Teleport
In case anyone else has the same questions as me, here is the original thread by LethalEncounter.
http://eq2emulator.net/phpBB3/viewtopic ... port#p8930
http://eq2emulator.net/phpBB3/viewtopic ... port#p8930
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Teleport
This is working perfectly except the heading on the destination appears to always go to 180 degrees no matter what I set it for.
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Teleport
Heading is not used when it is a port within the same zone.
LethalEncounter wrote:Notes:
1. destination_heading is only used if the player leaves the zone.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Teleport
So you cannot steer the player's heading when they are in the same zone? I would think you would want to. We may really want to change that.
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Teleport
So minor change to zoneserver.cpp, mostly works except that thing where some headings seem to spin you in the wrong direction. Case in point a heading of 120 puts you at 300, exactly 180 degrees off. Your previous code solved that issue so my source now has this in zoneserver.ccp around line 2596
Code: Select all
EQ2Packet* packet = client->GetPlayer()->Move(loc->destination_x, loc->destination_y, loc->destination_z, client->GetVersion(), (loc->destination_heading == 0 ? -1.0f : (loc->destination_heading + 180.0f)));Resident Dirty Hippy
Who is online
Users browsing this forum: No registered users and 0 guests