Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 12:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Shows how much money you picked up!!!! to the whole server

Discussion on [Release] Shows how much money you picked up!!!! to the whole server within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
[Release] Shows how much money you picked up!!!! to the whole server

in client.cs search for [B]SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You picked up " + TehItem.Money +[B]
then add under that this
Code:
World.SendMsgToAll(MyChar.Name + " has picked up" + TehItem.Money + "Silvers we hope he/she willspend it wisely", "System", 2011);
so it loks like this:
Code:
{
                            MyChar.Ready = false;
                            if (MyChar.ItemsInInventory > 39)
                                return;
                            uint ItemUID = (uint)((Data[7] << 24) + (Data[6] << 16) + (Data[5] << 8) + Data[4]);
                            DroppedItem TehItem = null;
                            if (DroppedItems.AllDroppedItems.Contains(ItemUID))
                                TehItem = (DroppedItem)DroppedItems.AllDroppedItems[ItemUID];

                            if (TehItem != null)
                            {
                                if (TehItem.Money == 0)
                                {
                                    MyChar.AddItem(TehItem.Item, 0, ItemUID);
                                }
                                else
                                {
                                    MyChar.Silvers += TehItem.Money;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You picked up   " + TehItem.Money + " Silvers. Spend it wisely", 2005));
                                    World.SendMsgToAll(MyChar.Name + " has picked up" + TehItem.Money + "Silvers we hope he/she willspend it wisely", "System", 2011);
                                }

                                DroppedItems.AllDroppedItems.Remove(ItemUID);
                                World.ItemDissappears(TehItem);
                            }
                            MyChar.Ready = true;
                            break;
                        }
then when you pick up money, it will come up to the whole server!
press thnx if you like it, if not then don't pls put comments, BTW this is an addon for my other guide that it shows up in the corner
ph03nixx is offline  
Old 02/09/2009, 20:48   #2
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Pointless...

You have even 50 people on at once (which you won't) imagine the spamming... Why would anybody else want to know hoow much money you've picked up... other than coming to kill you =[
© Haydz is offline  
Old 02/09/2009, 20:53   #3
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
case 1101:
{
uint IUID = BitConverter.ToUInt32(Data, 4);

if (LiveManager.DropItems.Contains(IUID))
{
Extra.DroppedItem I = (Extra.DroppedItem)LiveManager.DropItems[IUID];

if (I.Owner == C.MyChar.EntityID || I.Owner == 0 || DateTime.Now > I.DropTime.AddSeconds(15))
{
if (I.Cps > 0)
{
C.MyChar.CPs += I.Cps;
C.SendLocalMessage("You have picked up " + I.Cps + " Conquer points.", 2005);
}
else if (I.Silvers > 0)
{
C.MyChar.Silvers += I.Silvers;
C.SendLocalMessage("You have picked up " + I.Silvers + " Silvers", 2005);
}
else
{
C.MyChar.AddItem(I.Info);
string s = "You have picked up ";
s += I.Info.Quality;
if (I.Info.Plus > 0)
s += " [+" + I.Info.Plus + "] Item.";
C.SendLocalMessage(s, 2005);
}

I.Dissappear();
}
else
C.SendLocalMessage("You have to wait a little before you can pick an item dropped by a mob killed by some other player.", 2005);
}

break;
}
I win again.
_Emme_ is offline  
Old 02/09/2009, 20:54   #4
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
lol, i thought it would be funny
ph03nixx is offline  
Old 02/09/2009, 21:01   #5
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
why showin everyone how much you pickedup? btw the code you have there 'phoenixx' won't allow you to pickup money when you inventory is full you'll better change that. would be more usefull...
yuko is offline  
Old 02/09/2009, 21:08   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by EmmeTheCoder View Post
I win again.
can you translate that code into lotf or am i being stupid and is that in lotf
PeTe Ninja is offline  
Old 02/09/2009, 21:18   #7
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
That is not in LOTF, and I may do it later and send you it.
_Emme_ is offline  
Old 02/09/2009, 21:25   #8
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
lol i have made mine LOTF, but i need a timer or a msg afterward
ph03nixx is offline  
Old 02/09/2009, 21:40   #9
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
case 1101:
{
uint IUID = BitConverter.ToUInt32(Data, 4);

if (DroppedItems.AllDroppedItems.Contains(IUID))
{
DroppedItem Item = (DroppedItem)DroppedItems.AllDroppedItems[IUID];


if (Item.Money > 0)
{
MyChar.Silvers += Item.Money;
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You have picked up " + Item.Money + " silvers!", 2005));
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
}
else
{
MyChar.AddItem(Item.Item, 0, IUID);

if (Item.ToString().EndsWith("5"))
q = "normal";
else if (Item.ToString().EndsWith("6"))
q = "refined";
else if (Item.ToString().EndsWith("7"))
q = "unique";
else if (Item.ToString().EndsWith("8"))
q = "elite";
else if (Item.ToString().EndsWith("9"))
q = "super";
else
q = "unknown";
IniFile Ids = new IniFile("ItemIdsToNames.ini");
string ItemName = Ids.IniReadValue("Items", "Name" + IUID.ToString());
string item = q + " " + ItemName;

SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You have picked up a " + item + "!", 2005));

}
DroppedItems.AllDroppedItems.Remove(IUID);
World.ItemDissappears(Item);


}
break;
}
Its as shitty as it could be, LOTF is so un-orginazed so its really hard to make good codes.
_Emme_ is offline  
Old 02/09/2009, 22:10   #10
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by EmmeTheCoder View Post
That is not in LOTF, and I may do it later and send you it.
Yes but it's still from the same person, so it's still

Lousy and Outrageously Fucked
InfamousNoone is offline  
Old 02/09/2009, 22:13   #11
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
lol well i only realsed it cos i wos bored XD
ph03nixx is offline  
Old 02/09/2009, 22:27   #12
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Just to clarify cause it seems Emme just whined on msn to me, "the same person" refers to Tanel, not Emme; Then again I suppose that insults Emme's coding ability too?

Hmm....
InfamousNoone is offline  
Old 02/10/2009, 07:44   #13
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
No it doesn't itsult me I just get ****** when you guys keep whining about Tanels skills when hes pretty good actually.
_Emme_ is offline  
Old 02/10/2009, 14:33   #14
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
well thats true Tanel is very good, and Emme, if you do feel insulted, im sorry...
ph03nixx is offline  
Old 02/10/2009, 15:56   #15
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
I dont feel insulted, im just getting ****** at everyone claiming he sucks. The only thing that sucks is LandsOfTheForgotten source, because he didnt spend alot of time on coding everything good, but I've seen his latest code, they are pretty neat I must say.
_Emme_ is offline  
Reply


Similar Threads Similar Threads
[Release] Talesweaver In-Game (Server Side) Money Editor
12/23/2009 - General Gaming Discussion - 5 Replies
Anyone here play Talesweaver? I used to play on the Japanese and Korean servers about 2 or so years ago, and damn it was a popular game at the time! Well, I don't know if anyone still plays it so I thought I may as well share the tools I used to use for it for in-game money called RuneXPS: RuneSwordII. It worked well at the time and has been constantly updated I saw so I snagged the newest version since my license is for a lifetime and will upload it here for you guys! Check it out and use...
[Release] Shows how much money you picked up!!!!
02/09/2009 - CO2 PServer Guides & Releases - 0 Replies
ok so its only in Client.cs at case 1101 add under it { MyChar.Ready = false; if (MyChar.ItemsInInventory > 39) return; uint ItemUID = (uint)((Data << 24) + (Data << 16) + (Data << 8) + Data); DroppedItem TehItem = null; if (DroppedItems.AllDroppedItems.Contains(ItemUID)) TehItem =...
AGbot way to have it put everything picked up in storage Except gold
01/19/2009 - Silkroad Online - 2 Replies
is there a way were i can set agbot to just put everything picked up put in storage and gold kept
Picked up -49 return scroll(s)
06/09/2008 - Silkroad Online - 2 Replies
I got a bug either its agbot or sro , whenever i pickup a elixir or return scroll or pots it says -49 or -48 items -.- and when i pick it up it doenst shows in storage that i picked up. Anyone could help me with this? (=



All times are GMT +1. The time now is 12:52.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.