|
||
|
|||||||
| 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) |
|
Forum Novice
Join Date: Dec 2003
Location: The Restaruant at the End of the Universe
Age: 34
Posts: 289
|
I was looking trhough the lootpack.cs at the different types of loot you can get. I was wondering if someone could explain this line of code to me:
Code:
new LootPackEntry( true, Gold, 100.00, "5d10+25" ), Thanks to anyone who can answer this for me. |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Posts: 1,377
|
The docs are your friend.
(ctor) LootPackEntry( bool atSpawnTime, LootPackItem[] items, double chance, string quantity ) Code:
new LootPackEntry( true, Gold, 100.00, "5d10+25" ); 5d10+25 should be something like (at least was in D&D ^^): "Throw a dice with 10 side 5 times, add all points and add 25". The last part can also be an integer.
__________________
Dracarys retired - consider me dead to these boards |
|
|
|
|
|
#3 (permalink) | |
|
Greatwizard
Join Date: Mar 2004
Location: orange county, CA
Age: 27
Posts: 1,111
|
Quote:
|
|
|
|
|
|
|
#6 (permalink) |
|
Forum Novice
Join Date: Dec 2003
Location: The Restaruant at the End of the Universe
Age: 34
Posts: 289
|
Thanks guys...I thought the 100.00 was 100% but that other just blew me away.
Thanks for explaining it. I just wanted to add tokens to my loot at 1/10th the gold. Think I can figure it out now. Thanks again. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|