|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Jun 2006
Posts: 9
|
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 |
|
|
|
|
|
#2 (permalink) |
|
Newbie
Join Date: Mar 2005
Age: 19
Posts: 78
|
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. |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 533
|
Well another way....
You could look in Beverage.cs and find the HeaveTimer code... Code:
private class HeaveTimer : Timer 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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|