|
You last visited: Today at 11:47
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.
02/20/2010, 22:26
|
#1
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
[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
|
|
|
02/20/2010, 22:30
|
#2
|
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.
|
|
|
02/20/2010, 22:32
|
#3
|
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
|
|
|
02/20/2010, 22:33
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by ramix
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.
|
|
|
02/20/2010, 22:37
|
#5
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
i know i put in /* */ xD
|
|
|
02/20/2010, 22:39
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by ramix
i know i put in /* */ xD
|
Why put that instead of just deleting it all?
|
|
|
02/20/2010, 22:42
|
#7
|
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
|
|
|
02/20/2010, 22:43
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by ramix
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.
|
|
|
02/20/2010, 22:47
|
#9
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
i updated sorry all
i put your code there .Arco
|
|
|
02/21/2010, 09:10
|
#10
|
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?
|
|
|
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.
|
|
|
02/21/2010, 20:33
|
#12
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Decker_
Are you sure it is called dropitem.cs and not dropanitem.cs?
Cause all I see is dropanitem.cs.
|
Yeah thats it.
|
|
|
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.
|
|
|
02/21/2010, 20:38
|
#14
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Decker_
Ok I copy and pasted the code in there but I still can't drop anything.
|
You possibly are not adding it right.
|
|
|
02/21/2010, 21:27
|
#15
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
i updated the code because have a little mistake
|
|
|
|
|
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.
|
|