Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-18-2004, 03:30 PM   #1 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default Additions to Point3D and Point2D structs

When you have a Point3D, you can do
Point3D.ToString(). Although you cannot go back the other way from string to Point3D. The problem is that when I try to set location in-game, it becomes frivolous.

Also, I cannot do [global or [area wipes of items at a certain location (for internal map pruning) because there is no Point3D to string equality operator.

If a regular format is established (easily done, just use the format for ToString()), then there should be no problem to add these, and would make great additions to the power you can acheive in-game and out.

All ideas are welcome as always.
XxSP1DERxX is offline   Reply With Quote
Old 07-18-2004, 03:49 PM   #2 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

you mean like

[global delete where type location == (x,y,z)

this works. You just have to remember to format the location string to compare using (x,y,z) with the parens included.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 07-18-2004, 03:51 PM   #3 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

It never works when I try it... hrrmm I'll try that again.

EDIT: I don't know why it didn't work in the past, but this works. Thanks Arte. I retract my suggestion
XxSP1DERxX is offline   Reply With Quote
Old 07-18-2004, 03:58 PM   #4 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

note, you can also assign point3d props in the same way, like

[set location (x,y,z)

basically, point3d structures can parse from strings as you were asking (just have to remember those parens)
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 07-18-2004, 09:17 PM   #5 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

you have to parse each x, y and z strings into integers and create a new Point3D struct with those values.
TheOutkastDev is offline   Reply With Quote
Old 07-18-2004, 09:34 PM   #6 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

yeah, you have to have actual numbers in there for the x,y,z like

[set location (1544,975,0)
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5