Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2013, 09:47 PM
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
That makes a bit more sense. The whole doubling the heading might fix another unrelated issue I'm having. It seems like some zonelines I can't edit, and for a fix to that I've made invisible npcs that zone you when you enter their proximity.

Code:
    quest::movepc(4,-2425,1270,-1.2,142.1);
For some reason no matter what I change the "142.1" to it doesn't have any effect. I've also tried putting the heading in brackets like it says on the wiki, but nothing. Is there something I'm doing wrong with this?
Reply With Quote
  #2  
Old 11-14-2013, 10:12 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,604
Default

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.
Reply With Quote
  #3  
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
Reply

Thread Tools
Display Modes

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 08:40 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3