|
||
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
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] |
|
|
|
|
#4 (permalink) |
|
Join Date: Dec 2003
Posts: 16
|
- 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 |
|
|
|
|
#6 (permalink) |
|
DeSpErAtLy SeEkInG sAnItY
|
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
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
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] |
|
|
|
|
#12 (permalink) | |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
Quote:
|
|
|
|
|
|
#14 (permalink) | |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
Quote:
|
|
|
|
|
|
#15 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Thanks yet again *hopes he releases class system soon*
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
#20 (permalink) | |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
Quote:
|
|
|
|
|
|
#21 (permalink) |
|
Shard Director: Britannia
|
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. |
|
|
|
|
#24 (permalink) |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
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. |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|