drop rate

11/12/2008 04:03 nescron#1
hey me and a friend are running a server but latley are only problem has been changing the drop rate anyone think they can give us some insight u can contact me on msn at [Only registered and activated users can see links. Click Here To Register...] , we just need to know how to change drop rate
(we use powersource
11/12/2008 04:36 Incariuz#2
Powersource is an LOTF source correct? Well if it is I may be of assistance.

So this is actually pretty simple.
Start by opening the entities.cs
Then search for the serious of lines that look like...

Code:
if (Other.ChanceSuccess([COLOR="Red"]1[/COLOR]))
{
string Item = "1060100-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
}
Changing the red number will effect the drop rate. You can change to decimals if you wish too. The lower the number the less the rate, the higher, the more drop.

Also, if you wish to have it where specifc monsters drop the item. Simply add...

Code:
if (Name == "[COLOR="Red"]MOB[/COLOR]")
{
Change the red to the mob you want.

Pretty simple huh?
11/12/2008 06:01 nescron#3
thx a bunch its funny that it was that siple but jsut one last thing do u by chance also know how to rasie max lvl ??? thx its ok either way
11/12/2008 07:42 Incariuz#4
You mean like the max level for characters? Ummm... not off the top of my head, I'm sure it's possible, but there would be quite a few places you'd need to add some code.
11/12/2008 08:01 nescron#5
well alright ya jsut to increase max lvl to about 150 or 160 no new items or anyhing tho just to give somethin to do for max ppls
11/12/2008 12:13 DragonStar#6
Quote:
Originally Posted by nescron View Post
well alright ya jsut to increase max lvl to about 150 or 160 no new items or anyhing tho just to give somethin to do for max ppls
if your using powersource u mite wnt to fix the 130+ bug first, when u lvl
beyond lvl 130 u'll get to about 50pct and it will reset ur exp back to 0pct

fix all that then ull b good
11/12/2008 16:59 damianpesta#7
Quote:
Originally Posted by DragonStar View Post
if your using powersource u mite wnt to fix the 130+ bug first, when u lvl
beyond lvl 130 u'll get to about 50pct and it will reset ur exp back to 0pct

fix all that then ull b good
Nobody Uses PowerCo Everyone Use The Shadowco And Few Other Shizzes
11/12/2008 22:09 Incariuz#8
I use ShadowCO, just happened to be the first one I came accross that seemed to function alright. Mind you, still a ton of stuff to add.
11/12/2008 22:37 tao4229#9
You have to come up with new level exp requirements(In the client maybe? and the server)
11/13/2008 00:36 brazilian9#10
umm whats the best number to put on that \/

Quote:
if (Other.ChanceSuccess((1))
{
string Item = "1060100-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
o and how do i make it drop +7 stones and +8 stones
11/13/2008 01:37 Incariuz#11
To be honest, I don't know what the best number to put for drop rate would be. It's sort of something you want to do through trial and error.

now if you want to make different items drop, simple

Code:
if (Other.ChanceSuccess((1))
{
string Item = "[COLOR="Blue"]1060100[/COLOR]-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
Just copy that code to the end of your list, and replace the blue with the item ID of the +7 or +8 stones, or we else.
03/15/2009 14:43 Hari__#12
uhm i use LOTF (edited) any1 can tell me how to change drop rates please? >>> add [Only registered and activated users can see links. Click Here To Register...] thanks
03/20/2009 21:39 brodie67#13
Quote:
Originally Posted by brazilian9 View Post
umm whats the best number to put on that \/


o and how do i make it drop +7 stones and +8 stones
All you need is your brain and common sense.

Go into your source > bin > debug> ItemNamesToId
Open it search for +7 stones and +8 stones,
Get the number which is:
730007
730006

Then open TheCOServer then click Entities.cs find the code (What Incariuz said) Which is:

Quote:
if (Other.ChanceSuccess(1))
{
string Item = "1060100-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
}
And change the number "1060100-0-0-0-0-0" to:
730007-8-0-0-0-0
same with:
730006-8-0-0-0-0 (Remember to redo the whole code and change the number under the last bracket of the first one!)

But remember to find what monster you want to kill for it to drop

Go debug TheCOServer and should work no errors if there is you have done it wrong, If I helped press +Thanks if I am wrong (For the other members) please correct me!

@ PeTe_Ninja - Thank you Pete for correcting me my mistake
03/20/2009 21:41 PeTe Ninja#14
Quote:
Originally Posted by brodie67 View Post
All you need is your brain and common sense.

Go into your source > bin > debug> ItemNamesToId
Open it search for +7 stones and +8 stones,
Get the number which is:
730007
730006

Then open TheCOServer then click Entities.cs find the code (What Incariuz said)
But remember to find what monster you want to kill for it to drop


And change the number "1060100-0-0-0-0-0" to:
730007-0-0-0-0-0
same with:
730006-0-0-0-0-0 (Remember to redo the whole code and change the number under the last bracket of the first one!)
Go debug TheCOServer and should work no errors if there is you have done it wrong, If I helped press +Thanks if I am wrong (For the other members) please correct me!

you are correct but the + stones wont work becuase you have to do +8Stone(+8)

so if the number is 1060100 do

1060100-8-0-0-0-0-0 just make sure its +8