Thread: Ports
View Single Post
  #5  
Old 11-15-2013, 12:12 AM
Township EQ
Hill Giant
 
Join Date: Sep 2013
Posts: 118
Default

Quote:
Originally Posted by NatedogEZ View Post
Code:
                                x = spell.base[1];
				y = spell.base[0];
				z = spell.base[2];
				heading = spell.base[3];
Copied right from the source in spell_effects.cpp

so...

Y
X
Z
H -- seems to be half of what the H value is ... so if its 500 guessing the heading it ports you at would be 250? .. not 100% sure


In perl scripts I always DOUBLE the heading to get them to face the way I want them to... so if I want them to face 125 .. i put 250 ..ect ect.. not sure why it works that way.. but it seems to work
Quote:
Originally Posted by Kingly_Krab View Post
Brackets mean the field is optional and not necessary, I don't see anything that you're doing wrong, it's weird.
Code:
quest::movepc(zone id,x,y,z,[heading]) - Moves the user that triggered the Event to the provided zone and location.
I see.

Alright then, thanks guys!
Reply With Quote