Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 07-05-2006, 02:00 PM   #1 (permalink)
 
Join Date: Jun 2006
Posts: 9
Default Perma Drunk NPC? Can it be done?

Hello

Ok here's my thoughts, I want to make a NPC perma-drunk. I've very new to this and have no idea where to begin. I'm not asking for a handout here, just a nudge in the right direction would be great. I'm willing to do the work myself. (I recently suceeded on my first modified script and OMG does it feel wonderful!) I've searched the forums and haven't seen anything mentioned regarding something like this.

Also, I'd like to see about making a pet spawn with an NPC that belongs to the NPC. Is that possible? Again any suggestions would be very much appreciated. When my concept is finished I promise to post it and give credit where credit is due.

Honasha
Honasha is offline   Reply With Quote
Old 07-05-2006, 05:16 PM   #2 (permalink)
Newbie
 
Join Date: Mar 2005
Age: 19
Posts: 78
Default

I'm new too so I don't know if the two possible solutions are even possible:

1. Load up the npc's invetory with alcohol and make him drink it all, if it is possible to make an npc use items.

2. If there is a temporary drunkness option, just delete the npc and create a new one everytime the drunkness timer is over.
Kelba is offline   Reply With Quote
Old 07-05-2006, 05:58 PM   #3 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 465
Default

Are you using the XMLSpawner package from ArteGordon? If so, both tasks are easily accomplished.
snicker7 is offline   Reply With Quote
Old 07-05-2006, 05:59 PM   #4 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 533
Default

Well another way....

You could look in Beverage.cs and find the HeaveTimer code...

Code:
private class HeaveTimer : Timer
This code is executed when a mobile is drunk....so what you could do is when your drunk npc is created (aka in it's constructor) you could have it execute a timer that you will code (using the HeaveTimer as an example) that would allow you to keep it drunk constantly. It might not be the cleanest way...(an AI might be best as it'd only be called when players are around) but it would work.

As for the NPC with a pet....You could try spawning a pet within an NPC's constructor on the same x,y,z as the NPC upon creation...and set the animals Controled = true and set the animals ControlMaster to the created NPC. Also you could likely assign an initial Follow order if you wanted to..but hopefully this suggestion gets you on the right track.

**EDIT: Ooo snicker just got in here before I did! Yes if you are using XML spawner you could likely accomplish this using it!
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/announcements/67400-something-all-you-chew.html

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is offline   Reply With Quote
Old 07-06-2006, 07:41 PM   #5 (permalink)
 
Join Date: Jun 2006
Posts: 9
Default

Ok I downloaded XML spawner and installed it. I'll be reading page after page on their website for a while trying to figure out how it works lol but I'll let ya know how things turn out. Thanks guys
Honasha is offline   Reply With Quote
Old 07-09-2006, 12:44 AM   #6 (permalink)
Forum Expert
 
Join Date: Jan 2003
Location: Florida
Age: 24
Posts: 509
Default

there's that one pirate guy in Bucaneer's Den who is perma drunk. He should have a script to work with/from shouldn't he?
r00ted 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