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 07-02-2007, 03:06 PM   #1 (permalink)
Forum Newbie
 
Join Date: Apr 2007
Age: 22
Posts: 19
Lightbulb NPC's That Give Murder Counts

Can someone explain how to create an blue NPC that gives murder counts when you kill it in fel? Since they already turn you grey when you attack them. Then there has to be a way to cause them to give you a murder count. I want it to affect any blue NPC in fel. Ones that are already spawned, and ones that I might spawn.
Vadict is offline   Reply With Quote
Old 07-02-2007, 03:24 PM   #2 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,753
Send a message via Yahoo to Lord_Greywolf
Default

look in basecreature and or notirity files - one of those should have the spot that migth make it easy

but in basecreature can also do it this way - it is a hack, but would work

fin the public override void OnDeath( Container c )
in there do check to see if the monster is a NPC or not (body value works good)
and if their karma > 0
then they are a blue npc
if true - killer murders += 1
or short term murderrs, kills or which ever you want

i can see you doing this on tram or other maps - but on fel - it is open season on anything not "invul" - so normaly does not get reported as murder - but short term ones
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 07-02-2007, 05:14 PM   #3 (permalink)
Forum Newbie
 
Join Date: Apr 2007
Age: 22
Posts: 19
Default

I'll try that out and see if it works.
Vadict 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