|
You last visited: Today at 15:05
Advertisement
Power Source CO HELP!!!!
Discussion on Power Source CO HELP!!!! within the CO2 Private Server forum part of the Conquer Online 2 category.
07/26/2009, 20:37
|
#16
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
Actually noman person, you can do it this way, his was wasn't wrong at all
Code:
if (Other.ChanceSuccess(100))
{
string Item = "1088000-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);
}
The problem was that you did chance 1000, i think there is no 1000/100 chance.
|
|
|
07/26/2009, 20:41
|
#17
|
elite*gold: 0
Join Date: Apr 2008
Posts: 20
Received Thanks: 1
|
F0am, ill try it that way thanks  is there anyway you can make certin mobs drop certin items? thanks for all your help so far you have been very helpful
|
|
|
07/26/2009, 20:42
|
#18
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Quote:
Originally Posted by roycu
lol sorry im completly new  where do you put what mob it drops for? lol its prob in plain sight im just blinde 
|
Enitities.cs Infront of any other code (Not near top) Just as long as you don't get errors putting it in.
|
|
|
07/26/2009, 20:44
|
#19
|
elite*gold: 0
Join Date: Apr 2008
Posts: 20
Received Thanks: 1
|
SORRY FOR DOUBLE POST but i just tested your way f0am and they still are not drop any  if it helps im killing phesents for this expareament
|
|
|
07/26/2009, 20:46
|
#20
|
elite*gold: 0
Join Date: Apr 2008
Posts: 20
Received Thanks: 1
|
noman do you mean like this?
(put monster ID here) if (Other.ChanceSuccess(100))
{
string Item = "1088000-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);
|
|
|
07/26/2009, 20:52
|
#21
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Quote:
Originally Posted by roycu
norman do you mean like this?
(put monster ID here) if (Other.ChanceSuccess(100))
{
string Item = "1088000-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);
|
No, Nothing goes there unless you are checking something just
Code:
Other.ChanceSuccess(100))
Goes there, but if you want to make it on a specific mob you seperate it with || Then after that you would put something like this
Code:
(BossMob && Other.ChanceSuccess(50)))
So altogether
Code:
((Other.ChanceSuccess(100)) || (BossMob && Other.ChanceSuccess(100)))
Doing things like those you can also check if they have LuckyTime and boost up their drop rates.. Messing with drops are fun
|
|
|
07/26/2009, 21:02
|
#22
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
Code:
#region DragonBall Drop
if (Other.ChanceSuccess(4))
{
string Item = "1088000-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);
}
#endregion
#region Certain Mob Drop
if (Name == "Pheasant")
{
if (Other.ChanceSuccess(2))
{
string Item = "1088000-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);
}
}
#endregion
there. since u tried, those both should work
|
|
|
07/26/2009, 21:10
|
#23
|
elite*gold: 0
Join Date: Apr 2008
Posts: 20
Received Thanks: 1
|
thanks! 2 things =] 1 would be where does that big code you just gave me go  sorry im a noob amd 2nd is it possible to make rb work on my server since its only client 5017?
|
|
|
07/26/2009, 21:17
|
#24
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
entities.cs like i said before, yes it isp ossible
|
|
|
07/26/2009, 21:20
|
#25
|
elite*gold: 0
Join Date: Apr 2008
Posts: 20
Received Thanks: 1
|
i ment where in the entities.cs i tried putting that code where the other drop rates were and nothing happend so i put it at the end of EVERYTHING in entities and nothing happend so i must eather be entering code wrong or putting code in wrong spot, sorry for so many questions
#region DragonBall Drop
if (Other.ChanceSuccess(4))
{
string Item = "1088000-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);
}
#endregion
#region Certain Mob Drop
if (Name == "Pheasant")
{
if (Other.ChanceSuccess(2))
{
string Item = "1088000-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);
}
}
#endregion
p.s. ok sweet is making rb hard? well hard for a noob lol
|
|
|
07/26/2009, 21:22
|
#26
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
just look for another one of those if (Other.ChanceSucess there is bound to be on >< anyway... rb is already released. search for like
[All-In-1] Guides and Releases or [All-In-1] LOTF guides and releases
|
|
|
07/26/2009, 21:29
|
#27
|
elite*gold: 0
Join Date: Apr 2008
Posts: 20
Received Thanks: 1
|
Quote:
if (Other.ChanceSuccess(50) || BossMob && Other.ChanceSuccess(85) || MType == 1)
{
int DMG = General.Rand.Next(MinAtk, MaxAtk) - (int)Target.Defense;
if (DMG < 1)
DMG = 1;
if (Target.GetHitDie((uint)DMG))
{
if (MType == 1)
World.MobAttacksCharSkill(this, Target, (uint)DMG, 1320, 2);
else
World.MobAttacksChar(this, Target, 2, (uint)DMG);
World.MobAttacksChar(this, Target, 14, (uint)DMG);
}
else
{
if (MType == 1)
World.MobAttacksCharSkill(this, Target, (uint)DMG, 1320, 2);
else
World.MobAttacksChar(this, Target, 2, (uint)DMG);
}
Target = null;
}
}
else
{
Target = null;
}
|
i found that if thats what your talking about also
Quote:
if (Other.ChanceSuccess(50) || BossMob && Other.ChanceSuccess(85) || MType == 1)
{
int DMG = General.Rand.Next(MinAtk, MaxAtk) - (int)Target.Defense;
if (DMG < 1)
DMG = 1;
if (Target.GetHitDie((uint)DMG))
{
if (MType == 1)
World.MobAttacksCharSkill(this, Target, (uint)DMG, 1320, 2);
else
World.MobAttacksChar(this, Target, 2, (uint)DMG);
World.MobAttacksChar(this, Target, 14, (uint)DMG);
}
else
{
if (MType == 1)
World.MobAttacksCharSkill(this, Target, (uint)DMG, 1320, 2);
else
World.MobAttacksChar(this, Target, 2, (uint)DMG);
}
Target = null;
}
}
else
{
|
thos are the only 2 i have in my entities.cs, eather of them the right one? lol once again sorry for the questions i am indeed a dumba$$
|
|
|
07/26/2009, 21:48
|
#28
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
there is moeny drops then it says else and all the rest ropd there
|
|
|
07/26/2009, 21:58
|
#29
|
elite*gold: 0
Join Date: Apr 2008
Posts: 20
Received Thanks: 1
|
Quote:
uint MoneyDrops = 0;
if (Other.ChanceSuccess(20))
{
int DropTimes = 1;
if (Other.ChanceSuccess(15))
{
DropTimes = General.Rand.Next(1, 6);
}
for (int i = 0; i < DropTimes; i++)
{
MoneyDrops = (uint)General.Rand.Next(1, 10);
if (Other.ChanceSuccess(70))
MoneyDrops = (uint)General.Rand.Next(1, 200);
if (Other.ChanceSuccess(60))
MoneyDrops = (uint)General.Rand.Next(30, 500);
if (Other.ChanceSuccess(45))
MoneyDrops = (uint)General.Rand.Next(100, 1000);
if (Other.ChanceSuccess(30))
MoneyDrops = (uint)General.Rand.Next(500, 5000);
if (Other.ChanceSuccess(15))
MoneyDrops = (uint)General.Rand.Next(1000, 15000);
MoneyDrops = MoneyDrops / (136 - (uint)Level) * 10;
if (MoneyDrops < 1)
MoneyDrops = 1;
string Item = "";
if (MoneyDrops < 10)
Item = "1090000-0-0-0-0-0";
else if (MoneyDrops < 100)
Item = "1090010-0-0-0-0-0";
else if (MoneyDrops < 1000)
Item = "1090020-0-0-0-0-0";
else if (MoneyDrops < 3000)
Item = "1091000-0-0-0-0-0";
else if (MoneyDrops < 10000)
Item = "1091010-0-0-0-0-0";
else
Item = "1091020-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);
}
}
else
{
if (Other.ChanceSuccess(100))
{
string Item = "1088000-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);
}
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);
}
if (Other.ChanceSuccess(0))
{
string Item = "721533-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);
}
if (Other.ChanceSuccess(0))
{
string Item = "721536-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);
}
if (Other.ChanceSuccess(0))
{
string Item = "723038-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);
}
#region DragonBall Drop
if (Other.ChanceSuccess(4))
{
string Item = "1088000-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);
}
#endregion
#region Certain Mob Drop
if (Name == "Pheasant")
{
if (Other.ChanceSuccess(2))
{
string Item = "1088000-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);
}
}
#endregion
|
is that what you mean? :S the bold points are the money and the code you gave to me if thats what you ment it dosent work
|
|
|
07/26/2009, 22:26
|
#30
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
looks like u already added db up there, anway press f5 to debug ><
|
|
|
 |
|
Similar Threads
|
Power Source Packing NPC
03/28/2011 - CO2 PServer Guides & Releases - 10 Replies
K now i will release my own coded NPC it's my first code so yea...
This NPC can pack 10 meteors into met scroll also can pack 20 meteors in 2 met scrolls at once and the same is for DB scrolls this will work only in 5017 sources.
Change the NPC talk in the npctalk and it should look like this
if (CurrentNPC == 9812)
{
SendPacket(General.MyPackets.NPCSay("Hunting meteors and dragonballs is an exciting thing. However, they also pile up...
|
Can someone get me power source with talis ancd ninja ? :/
09/03/2009 - Conquer Online 2 - 0 Replies
pla can anyone help :/
|
can someone help me out and send me the power source that has patch 5065
04/04/2009 - CO2 Private Server - 1 Replies
can anyone send me a powersource for patch 5065, that have fixed working guard, lucktime, working skill and ect. thanks if anyone can get me one
pm me plz
|
(GUIDE) Power Source Codes
11/24/2008 - CO2 PServer Guides & Releases - 2 Replies
hello i use power Source i search alot for codes for it and i try to make a Guide and u put here the codes and wish help alot
:o :o
|
I add new spaw for Power Source
09/23/2008 - CO2 Private Server - 3 Replies
Here i post my sql file,
Add monter and Good spaw, in Ape, Bird, Desert, Mistic Castle, Phoenix, Twin City, And very Good Spaw in all lab! :)
|
All times are GMT +1. The time now is 15:05.
|
|