Search found 8 matches
- August 28th, 2012, 4:00 pm
- Forum: Modding
- Topic: XML Loading/Saving
- Replies: 2
- Views: 6411
Re: XML Loading/Saving
It shouldn't, just don't forget to close and clean everything up.
- May 16th, 2012, 7:19 am
- Forum: Modding
- Topic: XML Loading/Saving
- Replies: 2
- Views: 6411
XML Loading/Saving
Basic demonstration of how-to load and save custom configuration by using XML. A xml file must consist of atleast one line (otherwise its deemed invalid): <?xml version="1.0" encoding="utf-8"?> The layout of an xml file is build with elements and attributes, the most important on...
- May 16th, 2012, 6:40 am
- Forum: Modding
- Topic: JoinWorld Restrictions
- Replies: 0
- Views: 5613
JoinWorld Restrictions
Used in my faction system but can be used for anything. Place this method in the OnJoinWorld Event and you'll be able to either deny or allow the player to Join any world based on certain criteria. Put this in a new class (static) so that it's accessible. Note: might want to adjust the criteria and ...
- May 16th, 2012, 6:08 am
- Forum: Modding
- Topic: Factions in classic -territorys
- Replies: 6
- Views: 8686
Re: Factions in classic -territorys
I have a working faction system on my server. Basically rhere are 2 factions, when a player joins they can choose one faction or get chosen automatically by a faction. Each faction has their own main-world and freebuilding world. Faction information is loaded from an .xml file at server startup. I c...
- October 18th, 2011, 11:35 pm
- Forum: Modding
- Topic: Post your custom code here
- Replies: 86
- Views: 51913
Re: Post your custom code here
Just some bug... lol.
What is au70? why even have a forum for it, no offence but the code is just written so poorly and it looks so messy.
Edit: its a scripts package right? i saw something at sourceforge.
What is au70? why even have a forum for it, no offence but the code is just written so poorly and it looks so messy.
Edit: its a scripts package right? i saw something at sourceforge.
- October 18th, 2011, 1:20 pm
- Forum: Modding
- Topic: Post your custom code here
- Replies: 86
- Views: 51913
ZingaRandomizer
It does just that what the name says, you add a series of words or sentences inside the list items and by using the randomText function it picks a random sentence or word from the list defined by the MessageType enum. It really makes people crazy lol. using System; using System.Collections.Generic; ...
- October 15th, 2011, 11:02 pm
- Forum: Resolved Bugs and Requests
- Topic: [RESOLVED] BoundingBox & Player.Position
- Replies: 3
- Views: 3086
Re: BoundingBox & Player.Position
So divide by 32?
- October 15th, 2011, 11:14 am
- Forum: Resolved Bugs and Requests
- Topic: [RESOLVED] BoundingBox & Player.Position
- Replies: 3
- Views: 3086
[RESOLVED] BoundingBox & Player.Position
Position pos = player.Position; return this.container.Contains(pos.GetFixed()) || this.container.Contains(pos) || this.container.Contains(pos.ToVector3I()); This piece of code always returns false, its used for my new portal system. container contains 2 position, 1 from the bottom left corner, 1 fr...