UOGamers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • To obtain new Razor updates, please reinstall Razor from our new website.

[SVN731] Arcane Circles not working

Status
Not open for further replies.

Shino

Forum Moderator
Staff member
Behavior on Demise:
The Arcane Circle spell does not work when standing on an arcane circle.



Behavior on OSI:
The Arcane Circle spell does work when standing on an arcane circle.

Supporting Documentation (URLs):
http://www.uoguide.com/Arcane_Circle_(Spell)
http://uo.stratics.com/php-bin/show_content.php?content=30718

Changes needed:
The problem is that arcane circles now have a height of 1, unlike before (and unlike pentagrams/abbatoirs). The Arcane Circle spell script doesn't account for this height when checking your Z coordinate, and since your Z coordinate is not the same as the Z coordinate of the arcane circle, it tells you you're not in a valid location. The change needed is simply accounting for the arcane circle's height.

Code:
The code is attached below. The height of the valid tiles is grabbed from the ItemData table, and will therefore automatically update in case OSI changes the heights for other platforms. I've also removed the Z coordinate check for the sanctuary, to prevent having to edit this script if your server is running on an older client which still has 0 height for arcane circles. The IsValidLocation function checks your Z coordinate already anyway.
 

Attachments

  • ArcaneCircleHeight.patch
    1.2 KB · Views: 15
Status
Not open for further replies.
Top