Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 12-25-2009, 08:10 PM
neiv2
Hill Giant
 
Join Date: Mar 2009
Location: CO
Posts: 183
Default quest::movepc()

Is there some way to determine the heading a PC ends up facing when using quest::movepc()? The current syntax allows for zoneid, x, y, z, but not heading; e.g.,

quest::movepc(117,-931,-3471,182);

Any workaround for this?
Reply With Quote
  #2  
Old 12-25-2009, 08:28 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

movepc does allow for heading. I added it myself ages ago.
Reply With Quote
  #3  
Old 12-26-2009, 12:28 PM
neiv2
Hill Giant
 
Join Date: Mar 2009
Location: CO
Posts: 183
Default

I'm using this list, which I assume is current. Taking my former example, namely:

quest::movepc(117,-931,-3471,182);

I want the pc to zone into Beholder at the specified x,y,z coords and face north. Here is what I've tried so far:

quest::movepc(117,-931,-3471,182); works, but faces south.

quest::movepc(117,-931,-3471,182, 3); works, but faces south. Faces south no matter what value I enter in place of 3.

quest::movepc(117,-931,-3471,182, heading=3); breaks quest script, will not zone pc.

The final example is the one provided in the QuestTutorial linked above. Am I misreading this somehow?
Reply With Quote
  #4  
Old 12-26-2009, 02:13 PM
Wesell
Sarnak
 
Join Date: Mar 2009
Location: none
Posts: 30
Default

What happens when you try this?
Code:
quest::movepc(117,-931,-3471,182, $client->GetHeading())
Reply With Quote
  #5  
Old 12-26-2009, 03:54 PM
neiv2
Hill Giant
 
Join Date: Mar 2009
Location: CO
Posts: 183
Default

That didn't make a difference since the client direction in the sending zone is opposite the intended client direction in the destination zone. The client direction when zoning is SE, but I want the client to face north in the destination zone.
Reply With Quote
  #6  
Old 12-26-2009, 05:35 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Create a second spawnpoint, despawn the NPC when it arrives and respawn it on that spawnpoint with whatever heading you want.
Reply With Quote
  #7  
Old 12-26-2009, 07:01 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

The syntax is quest::movepc(zone,x,y,z,h); I did update the wiki when I made the change, but it looks like those changes have been lost over time...

Heading worked when I was playing with it although I do remember it being buggy. I didn't actually work with the heading code, I just allowed movepc to have a user defined heading variable. If I remember, I had trouble too with north, but I think I finally got it by using a number out of the "normal" range (500 comes to mind for some reason) I find NPCs have the same trouble, and sometimes when I do a #spawnfix in-game, the NPC is given a really high heading number. It seems to work, though. I'm thinking it's because the client and the server have a different view on heading.

But then again, the change I made was probably over 2 years ago now. It is plausible that somebody could have made a change to something else that broke movepc, or heading in general.
Reply With Quote
  #8  
Old 12-26-2009, 11:15 PM
neiv2
Hill Giant
 
Join Date: Mar 2009
Location: CO
Posts: 183
Default

Yeah, it appears it is indeed broke. I tried using 255 (which generally faces north as well) in place of the 3, and then tried 500 (per your suggestion), and neither one makes any difference in the heading.

fyi, joligario, it looks like your reply was intended for a different thread : )
Reply With Quote
  #9  
Old 12-27-2009, 12:58 AM
Wesell
Sarnak
 
Join Date: Mar 2009
Location: none
Posts: 30
Default

Is the client turned to face south after movepc or is the heading simply left at whatever it was?
Reply With Quote
  #10  
Old 12-27-2009, 02:38 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

I'll take a look at it when I get a chance, I'm working on something else atm so it might be a bit if anyone else wants to.
Reply With Quote
  #11  
Old 12-27-2009, 07:05 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

This should be fixed in Rev1063.
Reply With Quote
  #12  
Old 12-27-2009, 07:34 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Quote:
Originally Posted by neiv2 View Post
fyi, joligario, it looks like your reply was intended for a different thread : )
Sorry, wasn't paying attention. Thought you were moving an NPC rather than PC... That's what I get for using an iPod!
Reply With Quote
  #13  
Old 12-27-2009, 04:36 PM
neiv2
Hill Giant
 
Join Date: Mar 2009
Location: CO
Posts: 183
Default

Wessel, the client faces the same direction in the destination zone that he faced when he ran into the proximity of the transporter from the departing zone (south in both cases). I'm trying to force him to face north in the destination zone.

KLS, thanks for your response.

Derision, I'm using the latest AX repack, which appears to be based on r1048.
Reply With Quote
  #14  
Old 12-28-2009, 05:44 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

As a workaround, until you are able to upgrade, you could call $client->SetHeading(<heading>) right before quest::movepc.
Reply With Quote
  #15  
Old 12-28-2009, 06:56 AM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

Thanks for the workaround Derision, works perfectly!
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:23 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3