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

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 03-08-2003, 07:44 PM   #1 (permalink)
 
Join Date: Sep 2002
Posts: 162
Default Regs for Staff

Not sure if this was requested before, but id like to have my staff members not need regs to cast spells.

Ariel
Ariel is offline   Reply With Quote
Old 03-09-2003, 07:43 AM   #2 (permalink)
 
Join Date: Jan 2003
Age: 23
Posts: 177
Default

i finally did it. my first code edit which works! tested on both admin account and player account. my admin is greater than a gm, so it works

[code:1]
public virtual bool ConsumeReagents()
{
if ( m_Caster.AccessLevel >= AccessLevel.GameMaster )
return true;

else if ( m_Scroll != null || !m_Caster.Player )
return true;

Container pack = m_Caster.Backpack;

if ( pack == null )
return false;

return ( pack.ConsumeTotal( m_Info.Reagents, m_Info.Amounts ) == -1 );

}
[/code:1]

in /scripts/spells/base/spell.cs find and overwrite the ConsumeReagents bool for gm or higher casting without regs

*feels proud of self*
el_scrubo 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