Register for your free account! | Forgot your password?

You last visited: Today at 11:47

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

Advertisement



[Release] GM and PM can drop

Discussion on [Release] GM and PM can drop within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
Wink [Release] GM and PM can drop

hello ppl iam go put the code for ppl wanna gm and pm drop like a normal player

1º go to Packethandling

2º go to Itempacket is inside PacketHandling

3º you will see dropitem.cs

open and chance for this

Code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewestCOServer.PacketHandling.ItemPacket
{
    public class DropAnItem
    {
        public static void Handle(Main.GameClient GC, byte[] Data)
        {
            uint ItemUID = BitConverter.ToUInt32(Data, 4);
            Game.Item I = GC.MyChar.FindInvItem(ItemUID);

            if (I.ID != 0)
            {
                if (GC.MyChar.MyShop == null)
                {
                    if (!I.FreeItem)
                    {
                        Game.DroppedItem DI = new NewestCOServer.Game.DroppedItem();
                        DI.Info = I;
                        DI.DropTime = DateTime.Now;
                        DI.Loc = GC.MyChar.Loc;
                        DI.UID = (uint)Program.Rnd.Next(10000000);
                        if (!DI.FindPlace((Hashtable)Game.World.H_Items[GC.MyChar.Loc.Map])) return;
                        DI.Drop();
                    }
                    GC.MyChar.RemoveItem(I);
                }
                else
                    GC.LocalMessage(2005, "Cannot drop Free items.");
            }
            else
                GC.AddSend(Packets.ItemPacket(ItemUID, 0, 3));
        }
    }
}
and you will have fix drop for pm and gm that was easy too fix

#updated and fixed the .Arco code... give thanks to him
ramix is offline  
Thanks
4 Users
Old 02/20/2010, 22:30   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Actually the fix would be this:
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewestCOServer.PacketHandling.ItemPacket
{
    public class DropAnItem
    {
        public static void Handle(Main.GameClient GC, byte[] Data)
        {
            uint ItemUID = BitConverter.ToUInt32(Data, 4);
            Game.Item I = GC.MyChar.FindInvItem(ItemUID);

            if (I.ID != 0)
            {
                if (GC.MyChar.MyShop == null)
                {
                    if (!I.FreeItem)
                    {
                        if (I.ID == 300000)
                        {
                            if (I.Plus < 2)
                            {
                                Game.DroppedItem DI = new NewestCOServer.Game.DroppedItem();
                                DI.Info = I;
                                DI.DropTime = DateTime.Now;
                                DI.Loc = GC.MyChar.Loc;
                                DI.UID = (uint)Program.Rnd.Next(10000000);
                                if (!DI.FindPlace((Hashtable)Game.World.H_Items[GC.MyChar.Loc.Map])) return;
                                DI.Drop();
                            }
                        }

                        GC.MyChar.RemoveItem(I);
                    }
                    else
                        GC.LocalMessage(2005, "Cannot drop Free items.");
                }
            }
            else
                GC.AddSend(Packets.ItemPacket(ItemUID, 0, 3));
        }
    }
}
Just gotta take out the GMcheck.
Arcо is offline  
Thanks
10 Users
Old 02/20/2010, 22:32   #3
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
ya that is easy to put drop in pm and gm... the ppl only need remove the GMcheck
ramix is offline  
Old 02/20/2010, 22:33   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by ramix View Post
ya that is easy to put drop in pm and gm... the ppl only need remove the GMcheck
Eh you took out the GM check but left alot of useless junk in the code.
Arcо is offline  
Old 02/20/2010, 22:37   #5
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
i know i put in /* */ xD
ramix is offline  
Old 02/20/2010, 22:39   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by ramix View Post
i know i put in /* */ xD
Why put that instead of just deleting it all?
Arcо is offline  
Old 02/20/2010, 22:42   #7
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
i put that for tests and i forgot to delete the code xD because i first test and deleted xD
ramix is offline  
Old 02/20/2010, 22:43   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by ramix View Post
i put that for tests and i forgot to delete the code xD because i first test and deleted xD
Then you should go delete it.
Arcо is offline  
Old 02/20/2010, 22:47   #9
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
i updated sorry all

i put your code there .Arco
ramix is offline  
Old 02/21/2010, 09:10   #10
 
Huseby's Avatar
 
elite*gold: 106
Join Date: Oct 2006
Posts: 6,047
Received Thanks: 1,164
If i EVER see a thread where people delete there posts to get away with the infractions again, i will take action.

Okai?
Huseby is offline  
Old 02/21/2010, 20:26   #11
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Are you sure it is called dropitem.cs and not dropanitem.cs?
Cause all I see is dropanitem.cs.
Decker_ is offline  
Old 02/21/2010, 20:33   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Decker_ View Post
Are you sure it is called dropitem.cs and not dropanitem.cs?
Cause all I see is dropanitem.cs.
Yeah thats it.
Arcо is offline  
Old 02/21/2010, 20:36   #13
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Ok I copy and pasted the code in there but I still can't drop anything.
Decker_ is offline  
Old 02/21/2010, 20:38   #14
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Decker_ View Post
Ok I copy and pasted the code in there but I still can't drop anything.
You possibly are not adding it right.
Arcо is offline  
Old 02/21/2010, 21:27   #15
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
i updated the code because have a little mistake
ramix is offline  
Reply


Similar Threads Similar Threads
[RELEASE] v80 Drop GAme Trainer no a/b
01/15/2010 - MapleStory - 5 Replies
hey guys, this is a v80 drop game trainer, you have to follow these instructions extract folder and dll desktop then run winject in the winject folder. then load dll the dll u downloaded, and then open maplestory target ms for the proccess then click inject and wait 5 seconds
[Release]Cabal Monster Drop
10/06/2009 - Cabal Online - 20 Replies
All Monster Force Core, Upgrade Cores, Chaos lamp DESERT SCREAM >Garlie Lv 1 Great Sword, Daikatana, Blade, Katana, Crude Orb/Crystal >Giant Beetle Lv 3
[Release]*ToxicFlyff* [EXP:75/DROP:50/PENYA:100]
08/09/2009 - Flyff PServer Advertising - 5 Replies
#removed by dani
[Release] Now u can drop money on Lotf.
07/25/2009 - CO2 PServer Guides & Releases - 3 Replies
I got this left from my old CoNorth Source so ima share it with ya all. Search for case 1009: find: PacketType = Data; switch (PacketType) {
[Release] Drop Command
07/05/2009 - CO2 PServer Guides & Releases - 37 Replies
Here is a simple drop command, it drops either Meteors or Dragonballs. Script Insert it in Client.cs where all the other commands are: if (Splitter == "/drop") { uint MoneyDrops = 0;



All times are GMT +2. The time now is 11:47.


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.