RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Dupre's Token System

mr_wuss

Wanderer
no, cas hes a douche bag and played the old

Im dead, feel for my family..WAIT NO! Im not dead, i was only joking! haha, look at my underwear.
 

DeV NoX

Wanderer
I added the script and it is giving me a bunch of errors saying like..
somthing about blackthornsblade.cs in line 31 colum 24 and one about
dupresblade.cs
Whats up?
 

Waverian

Wanderer
Post the entire error from the console if you expect support. If you don't know how to copy text from the console, there's a few posts explaining so in the faq forum.
 

Stethor

Wanderer
Helppp

i have.. runuo 1.0 RCO.. and my creaturebase.. dont work..!! :mad:

when i tryed to open my runuo.. it sad that.. on my creaturebase script.. much lines are with problens.. and i dont know.. why..!! and where i need to put creaturebase.cs ?


HELP PLEASE
 

Tru

Knight
Stethor said:
i have.. runuo 1.0 RCO.. and my creaturebase.. dont work..!! :mad:

when i tryed to open my runuo.. it sad that.. on my creaturebase script.. much lines are with problens.. and i dont know.. why..!! and where i need to put creaturebase.cs ?


HELP PLEASE
Post the error
 

Stethor

Wanderer
I cant see all the error.. cuz the i cant open a full window.. so part of the error is hidden!!!

:-(

it shows that it has a lot of line errors!!
 

Tru

Knight
Stethor said:
I cant see all the error.. cuz the i cant open a full window.. so part of the error is hidden!!!

:-(

it shows that it has a lot of line errors!!
Well lets start with what you can see...that may tell alot!
 

swppws

Wanderer
Hey im trying to make it all my creature drop tokens... i did what you said and i add a dragon and ckecked its loot and thier was no tokens any ideas?
 

Demented

Wanderer
i know this is old submission ... but since there was posted a fix i figured i would add in my 2 cents worth on adding more to the higher mobs loot.

in previous reply it was said to :

Code:
public static readonly LootPack AosPoor = new LootPack( new LootPackEntry[]

if you notice .. below that is other lootpack entry's:

Code:
public static readonly LootPack AosMeager

add lil further down there is

Code:
public static readonly LootPack AosAverage

if you wish for your other mobs to drop tokens keep adding:

Code:
				new LootPackEntry( true, Tokens,		100.00, "1d10+10" ),

Hope this helps
 

Demented

Wanderer
Should i add


new LootPackEntry( true, Tokens, 100.00, "1d10+10" ),

To loot.cs???

yes that goes into loot.cs

Code:
 new LootPackEntry( true, Tokens, 100.00, "1d10+10" ),

doesnt have to be exact ... above is just really an example. The 1d10+10 can be anything ... i have mine a bit scaled ... like for AosPoor i have it set to 1d1+1 etc ....

i believe the use of this in the above code is like a random # generator of a dice roll of a 10 sided dice ... so if like the dice is rolled and come up 5 .. then 5 being the base # and add 10 = 15 tokens if the number is 10 then base # 10 +10 = 20
etc ...... This is just my theory of how 1d10+10 plays a part in this code =)
 

swppws

Wanderer
Im still getting a error saying-

- error: script\mic\lootpack.cs: cs0118: <Line 231, column 58> 'Server.Items.Tokens' denotes a 'class' where a variable' was expected

the cope i put in-

new LootPackEntry( true, Tokens, 100.00, "1d10+10" ),

Any ideas??
 

LordHogFred

Knight
swppws said:
Im still getting a error saying-

- error: script\mic\lootpack.cs: cs0118: <Line 231, column 58> 'Server.Items.Tokens' denotes a 'class' where a variable' was expected

the cope i put in-

new LootPackEntry( true, Tokens, 100.00, "1d10+10" ),

Any ideas??

In LootPack.cs where it says this:
Code:
		private static readonly LootPackItem[] Gold = new LootPackItem[]
			{
				new LootPackItem( typeof( Gold ), 1 )
			};

paste this underneath it:
Code:
//TOKEN
		private static readonly LootPackItem[] Tokens = new LootPackItem[]
			{
				new LootPackItem( typeof( Tokens ), 1 )
			};
//TOKEN


The other code should work properly now.
Hope this helps :),
 

swppws

Wanderer
Its loaded up fine but, i add a dragon,lich,bear and none drop any here is what i put is lootpack.cs-


private static readonly LootPackItem[] Gold = new LootPackItem[]
{
new LootPackItem( typeof( Gold ), 1 )
};
//TOKEN
private static readonly LootPackItem[] Tokens = new LootPackItem[]
{
new LootPackItem( typeof( Tokens ), 1 )
};
//TOKEN

private static readonly LootPackItem[] Instruments = new LootPackItem[]
{
new LootPackItem( typeof( BaseInstrument ), 1 )
};

Any idea what i did rong?


Do i have to add this also

new LootPackEntry( true, Tokens, 100.00, "1d10+10" ),

To make it work?
 

swppws

Wanderer
You must add both to make monster drop- Also if you have the tokens Blessed you must change them to Regular

In lootpack.cs where it says:

Code:
private static readonly LootPackItem[] Gold = new LootPackItem[]
			{
				new LootPackItem( typeof( Gold ), 1 )
			};

paste this underneath it:

Code:
//TOKEN
		private static readonly LootPackItem[] Tokens = new LootPackItem[]
			{
				new LootPackItem( typeof( Tokens ), 1 )
			};
//TOKEN



STEP 2-


Code:
public static readonly LootPack AosPoor = new LootPack( new LootPackEntry[]

if you notice .. below that is other lootpack entry's:
Code:
public static readonly LootPack AosMeager

add lil further down there is :
Code:
public static readonly LootPack AosAverage

you wish for your other mobs to drop tokens keep adding:
Code:
new LootPackEntry( true, Tokens,		100.00, "1d10+10" ),

What you see above are post by: Demented and LordHodFred

Hope this works for you.
 

Lokigom92

Wanderer
simple question

ok, first, I am new to this so I am sorry if my question seems silly. I have read the whole thread and I am just wondering something. does this token system drop the tokens directly into a players token bag or do the tokens spawn in the creatures loot?
 

Tylius

Sorceror
Lokigom92 said:
ok, first, I am new to this so I am sorry if my question seems silly. I have read the whole thread and I am just wondering something. does this token system drop the tokens directly into a players token bag or do the tokens spawn in the creatures loot?

As far as I know, it's in the monsters loot
 
Top