Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 09-29-2008, 09:56 PM   #1 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 142
Default Need help with onHit method

ok im having issues with this line of code it will not let me slay the creature



public override void OnHit( Mobile attacker, Mobile defender ) im using svn 297 not sure but all my arti are not working because of it

if i comment out the line im not able to loot my corpse or do the rest of the quest think that has something to do with the ONhit?
__________________
<a href="http://wappyworld.com/phpBB2/portal.php"</a>
mikeymaze is offline   Reply With Quote
Old 09-29-2008, 10:41 PM   #2 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,593
Send a message via Yahoo to Lord_Greywolf
Default

you are not using the full context required

try:

public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )

remember to use the correct "base" in there also:

base.OnHit( attacker, defender, damageBonus );
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 09-29-2008, 11:08 PM   #3 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 142
Default

thanks think that worked for this part but think my other post still remains
__________________
<a href="http://wappyworld.com/phpBB2/portal.php"</a>
mikeymaze 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