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 10-30-2006, 04:12 PM   #1 (permalink)
Forum Novice
 
mehoo's Avatar
 
Join Date: Aug 2006
Location: SLC Utah
Posts: 266
Default Adding lootpacks

Hey guys I was just wondering if there is a command to add lootpacks,instead of having to add the monster and kill it....Thx in advance
mehoo is offline   Reply With Quote
Old 11-09-2006, 05:31 AM   #2 (permalink)
Forum Expert
 
Captain The First's Avatar
 
Join Date: Jun 2003
Location: The Netherlands
Posts: 647
Default

Quote:
Originally Posted by mehoo
Hey guys I was just wondering if there is a command to add lootpacks,instead of having to add the monster and kill it....Thx in advance
If I read your question correctly then you are trying to simply generate the loot that a monster would normally carry on the spot.

As far as I know there are no commands available to do this directly (but I may be mistaken of course), since not all monster loot is determined via the lootpack (gold may be generated on death, and some items are directly added to the monster's pack via the monster script).

I don't have the runuo source available here but if I remember correctly then the loot(-result) is generated when the monster dies for the most part. So you could check the BaseCreature.cs OnDeath Method and see if you can strip it down to the loot generation and then make it a simple command that adds it to a bag of sorts.

Odds are that someone at least tried something similar so I'd dig in the custom scripts for a while before deciding to make it yourself.

Either way, good luck
__________________
Captain The First
_________________

Undisclosed shard (status: building since Feb. 2003)
Captain The First 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