Reagents

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
blendax
UOX3 Newbie
Posts: 1
Joined: Fri Aug 19, 2005 4:48 pm
Has thanked: 0
Been thanked: 0

Reagents

Post by blendax »

Okay, I've been on shards where spells didn't require reagents. How would I deactivate the need for reagents in order to cast spells?
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Off of the top of my head...

Open dfndata/spells.dfn. For each spell there is a section, halfway down the section you see a group of entries looking something like this:

ASH=0
DRAKE=1
GARLIC=1
GINSING=1
MOSS=0
PEARL=0
SHADE=0
SILK=0

Change those all to 0, and it won't use any reags.

There may be a better/easier way to do this, but like I say, this is the only way I know off the top of my head.
Scott
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Found an easier way to go about this.

Open uox.ini, scroll towards the bottom until you find

Code: Select all

[startup]
{
STARTGOLD=1000
STARTPRIVS=0
}
Change that to

Code: Select all

[startup]
{
STARTGOLD=1000
STARTPRIVS=0x8000
}
This should start every newly created character with the priv of NOT needing reagents to cast a spell.

If this does not work, please let me know, so I can look into fixing it. :)
Scott
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

giwo: Hmm the 0x8000 in STARTPRIVS isn't related to the 0x8000 in accounts.adm, right?
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Nope
Scott
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Sorry for the very short reply.

Here is a comprehensive list of Character Privledges (all are able to be set with that option there, just note that affects ALL NEW CHARACTERS).

0x0001 = GM
0x0002 = Can Broadcast (Serverwide Messages)
0x0004 = Invulnerable
0x0008 = "Show name" Displays Object Serial
0x0010 = No skill title displayed
0x0020 = Can be GM Paged
0x0040 = Can Open Character packs.
0x0080 = Counselor
0x0100 = Can move "immovable" objects.
0x0200 = Frozen
0x0400 = Can view houses as an "icon".
0x0800 = Unused
0x1000 = Does not need mana to cast spells.
0x2000 = Can be dispelled.
0x4000 = Has permanent magic reflection.
0x8000 = Does not need reagents to cast spells.


These are all HEX (meaning always use the 0x before your number), and are set as addition, so say you wanted a character to be able to cast spells without reagents and mana, you would use 0x9000 (0x1000 + 0x8000).

Note that 0xFFFF would set ALL of these properties, but there are at least a few that could be... problematic (Making your character dispellable, for one, I can only imagine the backflips the code would do). :)
Scott
Post Reply