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

RunUO Post Archive The Archvie

Closed Thread
 
Thread Tools Display Modes
Old 12-30-2003, 05:55 PM   #1 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default Cleric Spells v1.0

Click here to download

Summary:
A set of cleric type spells to enhance any shard's magic system.


Description:
A set of mostly beneficial type cleric spells.

Players may speak the words, "I pray to the gods" to bring up a gump with a list of cleric prayers, required tithing points, mana, skill and a brief description of the prayer's effect.

Update 1/4
- Fixed duration bug on Trial by fire.
- Fixed incorrect display on required skill for Trial by Fire and Dampen Spirit.


Installation:
Unzip and install these in your desired directory

and

Open up your BaseWeapon.cs

Under the last using reference add
[code:1]
using Server.Spells.Custom;
[/code:1]

And at around line 1212 ( at the end of the OnHit method ), add this line

[code:1]
PlayerEvent.InvokeHitByWeapon( attacker, defender, damage, a );
[/code:1]
TheOutkastDev is offline  
Old 12-30-2003, 06:34 PM   #2 (permalink)
 
Join Date: Mar 2003
Posts: 66
Default

Great script !
arnaki3000 is offline  
Old 12-30-2003, 06:40 PM   #3 (permalink)
 
Join Date: Aug 2003
Location: London, England
Posts: 799
Send a message via ICQ to Anageth Send a message via MSN to Anageth
Default

What a GREAT idea!!!! Well done!
__________________


*Haiii ya! *
Anageth is offline  
Old 12-30-2003, 07:01 PM   #4 (permalink)
 
Join Date: Dec 2003
Posts: 16
Default

- Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0246: (line 1191, column 1) The
type or namespace name 'PlayerEvent' could not be found (are you missing a usin
g directive or an assembly reference?)
- Warning: Scripts\Items\Wands\BaseWand.cs: CS0219: (line 211, column 8) The va
riable 'number' is assigned but its value is never used
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

I have beta 36.....and not start
help me
angelovoconi is offline  
Old 12-30-2003, 07:19 PM   #5 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

under the last using reference in the baseweapon script you need to add

[code:1]
using Server.Spells.Custom;
[/code:1]
TheOutkastDev is offline  
Old 12-30-2003, 08:08 PM   #6 (permalink)
DeSpErAtLy SeEkInG sAnItY
 
phoenix_zhs's Avatar
 
Join Date: Oct 2002
Location: Cincinnati, Ohio
Posts: 194
Send a message via ICQ to phoenix_zhs
Default

Love the script....only one issue i see ahead. Would there be a way to eaither treat the hammer of faith as a summoned items that would disappear after a set time OR make it so that if the summoned one hammer they could not summon another until that hammer was trashed/destroyed or whatever. I can see people creating a pack full of them
phoenix_zhs is offline  
Old 12-30-2003, 08:14 PM   #7 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

The Hammer DOES disappear after a set amount of time and the hammer can only be equiped by the original caster anyways.
TheOutkastDev is offline  
Old 12-30-2003, 09:26 PM   #8 (permalink)
Forum Expert
 
Join Date: Jun 2003
Location: Ottawa, Canada
Age: 19
Posts: 320
Default

Thanks very much TheOutkastDev for sharing such a precious script!
Rylock is offline  
Old 12-30-2003, 09:38 PM   #9 (permalink)
Forum Novice
 
Join Date: Jul 2003
Posts: 229
Default

PlayerEvent.InvokeHitByWeapon( attacker, defender, damage, a );
i get errors because it doesn't reconize "a"
can you post exacty where you put you code?
ie. on damage //put here
wolf is offline  
Old 12-30-2003, 09:46 PM   #10 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

This is where I put it

[code:1]
if ( defender is BaseCreature )
((BaseCreature)defender).OnGotMeleeAttack( attacker );

if ( a != null )
a.OnHit( attacker, defender, damage );

PlayerEvent.InvokeHitByWeapon( attacker, defender, damage, a );
[/code:1]
TheOutkastDev is offline  
Old 12-30-2003, 11:42 PM   #11 (permalink)
 
Join Date: Sep 2002
Posts: 872
Default

very nice script what would be vey nice is to have check for a Cleric class
would make it perfect
Etalicus is offline  
Old 12-30-2003, 11:52 PM   #12 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

Quote:
Originally Posted by Etalicus
very nice script what would be vey nice is to have check for a Cleric class
would make it perfect
I had that in the original script :-) but since I haven't released the Exp/Class system, I had to remove it. The original scripts also used "piety" which players earned from praying. But again, required the class system which im not ready to release yet.
TheOutkastDev is offline  
Old 12-31-2003, 12:17 AM   #13 (permalink)
 
Join Date: Jun 2003
Age: 32
Posts: 204
Send a message via ICQ to Devious Send a message via AIM to Devious Send a message via Yahoo to Devious
Default

ok i know u said to change the baseweapon.cs. which i couldn't find by the way. But anyway i just started shard and it worked without changing it. i am not sure why but it started up normal. Cool Scripts though . Thx.
Devious is offline  
Old 12-31-2003, 01:21 AM   #14 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

Quote:
Originally Posted by Devious
ok i know u said to change the baseweapon.cs. which i couldn't find by the way. But anyway i just started shard and it worked without changing it. i am not sure why but it started up normal. Cool Scripts though . Thx.
The Sacrifice spell will not work without that addition to the BaseWeapon.cs
TheOutkastDev is offline  
Old 12-31-2003, 02:09 AM   #15 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

Thanks yet again *hopes he releases class system soon*
Tru is offline  
Old 12-31-2003, 03:13 AM   #16 (permalink)
 
Join Date: Dec 2003
Posts: 16
Default

Because this error.....

- Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0246: (line 1191, column 25) Th
e type or namespace name 'PlayerEvent' could not be found (are you missing a usi
ng directive or an assembly reference?)
angelovoconi is offline  
Old 12-31-2003, 03:15 AM   #17 (permalink)
 
Join Date: Dec 2003
Posts: 16
Default

Sorry i have correct th script whit Using server spell custom......


ops: ops: ops:
angelovoconi is offline  
Old 12-31-2003, 03:59 AM   #18 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Default need some help

deleted
mikeymaze is online now  
Old 12-31-2003, 04:12 AM   #19 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Default help please

how does one earn "piety" or Tithing points
mikeymaze is online now  
Old 12-31-2003, 04:19 AM   #20 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default Re: help please

Quote:
Originally Posted by mikeymaze
how does one earn "piety" or Tithing points
You tithe gold at ankhs.. This is no different then how paladins gain tithing points in the default RunUO distro.
TheOutkastDev is offline  
Old 12-31-2003, 04:41 AM   #21 (permalink)
Shard Director: Britannia
 
Knightshade's Avatar
 
Join Date: Oct 2003
Location: CA
Age: 30
Posts: 140
Send a message via ICQ to Knightshade Send a message via MSN to Knightshade
Default

Awesome system Outkast! I have one question though! I've installed everything and it works great, however I wanted to change the text you have to speak to get the gump. I found the speech.cs file, and the line of text:

[code:1] public static void Speech_Event( SpeechEventArgs e )
{
if ( e.Speech.ToLower().IndexOf( "i pray to the gods" ) != -1 )
{
if ( !e.Mobile.CheckAlive() )
{
e.Mobile.SendMessage( "You cannot pray while dead." );
}
else
{
e.Mobile.CloseGump( typeof ( ClericGump ) );
e.Mobile.SendGump( new ClericGump( e.Mobile ) );[/code:1]

However, I changed the text "I pray to the gods" to my own line of text, and it would not work. I looked through the other scripts, but couldn't find anything that was linked to this. How would I go about customizing this text?

Thanks again for all your hard work, this is a great system you've made here!
__________________
Coming Soon!
§Britannia§
Roleplaying, Ultima-based shard. Professionally Staffed and Designed. Epic Quests and Storyline. Based on Ultima lore. Massive support for player communities of all sorts.
Knightshade is offline  
Old 12-31-2003, 08:31 AM   #22 (permalink)
 
Join Date: Dec 2003
Posts: 16
Default

because in game i not look the hammer of faith? :shock:
i create whit pandorabox but i dont look when i create this in game
angelovoconi is offline  
Old 12-31-2003, 10:59 AM   #23 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 26
Posts: 1,797
Default

Superb work, Outkast!
__________________
New shard coming soon!
Voran is offline  
Old 12-31-2003, 11:39 AM   #24 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

Knightshade:

the string you put in place of the default one must be all lower cased. The code takes the spoken speech and converts it all to lower case, then compares it. If your string isn't all lower case, the check will always fail.

angelovoconi:

You *CANNOT* add the hammer of faith in game. Its doesn't have a zero argument contructor, it will always require a mobile in the contructor. Also, its a private class within the spell itself.
TheOutkastDev is offline  
Old 12-31-2003, 02:06 PM   #25 (permalink)
 
Join Date: Dec 2003
Posts: 16
Default

in the poandora box i look in the hammer of faith
Owner...
What's Owner??
and what's i can write in the space of owner? ops:

But...the hammer of faith is not a hammer....

what's hammer of faith?

and....when i can cast the scroll?
angelovoconi is offline  
Closed Thread

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