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-20-2006, 08:45 PM   #1 (permalink)
Forum Novice
 
mehoo's Avatar
 
Join Date: Aug 2006
Location: SLC Utah
Posts: 266
Default Magic items in Single Monster loot?

Hey, i was just wondering how i would make it so a monster always dropped a magic item in his loot without making all the other monsters that share that lootpack also drop the magic item. thx

or in other words i want to make it so a balron will always drop a magic broadsword...

Last edited by mehoo; 10-20-2006 at 09:00 PM.
mehoo is offline   Reply With Quote
Old 10-20-2006, 09:05 PM   #2 (permalink)
Forum Expert
 
Broadside's Avatar
 
Join Date: Jul 2004
Location: Minnesota
Age: 32
Posts: 1,488
Send a message via ICQ to Broadside Send a message via MSN to Broadside Send a message via Yahoo to Broadside
Default

This will add a magicsword to its pack if that is what its called.
Code:
PackItem( new magicsword() );
__________________
Broadside ~AkA~ Bad Karma
Broadside is offline   Reply With Quote
Old 10-21-2006, 06:52 PM   #3 (permalink)
Forum Expert
 
Ilutzio's Avatar
 
Join Date: Oct 2005
Location: Sweden
Age: 22
Posts: 1,203
Send a message via ICQ to Ilutzio Send a message via MSN to Ilutzio
Default

I think you meen like this: You ahev spawner all around that spawns blood elementals, deomns and normal balrons.
Then you add a spawner int he middle of the cahos and that spawner spawn only one mobile--a balron that drops a magical shortsword.

The easiest way to do this (i think) is to copy Balron.cs, rename the copy to WhateverMonster.cs and open it. Now everywhere it says "Balron(bla bla)" replace the classname (balron, that is) with WhateverMonster.

Then all you have to do is add that lootpack item to WateverMonster, like broadside said and spawn the mobile. He will look exacly like a normal balron but he, and only he will drop the magical shortword.
__________________
http://thebreeze.110mb.com/
185 high quality Dylan songs--and counting.
Ilutzio is offline   Reply With Quote
Old 10-22-2006, 04:00 PM   #4 (permalink)
Forum Novice
 
mehoo's Avatar
 
Join Date: Aug 2006
Location: SLC Utah
Posts: 266
Default

Im getting an error when i try and put the "PackItem( new magicdagger() );"
In the inventory says the namespace type could not be found any ideas?
mehoo is offline   Reply With Quote
Old 10-22-2006, 04:27 PM   #5 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

I would make a guess that there is no item named 'magicdagger'...
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 10-23-2006, 02:46 AM   #6 (permalink)
Forum Expert
 
Mo Khan's Avatar
 
Join Date: Jan 2006
Location: Western Kentucky
Age: 41
Posts: 575
Default

Quote:
Originally Posted by mehoo
Im getting an error when i try and put the "PackItem( new magicdagger() );"
In the inventory says the namespace type could not be found any ideas?
Thats cus you do not have a "magicdagger" script. You have to have a script for the item you wish the balron to drop.

Try doing it this way...

Code:
PackItem( new NightsKiss() );
The Nights Kiss is an OSI artifact dagger and you have the script already. make that change and then restart your server. Log on and spawn the Balron and he should have the Nights Kiss in his pack. Let us know if you still have a problem.

__________________
Mo Khan - Senior Compubonics Interpreter
Acrid Garden - owner/administrator

Quote:
Originally Posted by Radwen
T h i s t h r e a d i s a l l a b o u t b u l l s h i t.
Quote:
Originally Posted by Lord Kaza
It isn't legal for me to get laid, lol. (age 12)
_
Mo Khan 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