Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 08:50

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

Advertisement



[Release] Loose items on capture

Discussion on [Release] Loose items on capture within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
[Release] Loose items on capture

Hi .. i'm trying that code for loosing items on capture... not guaranties that working but you can try... if errors feel free to tell me!

In Character.cs replace public void Die() with this:

Quote:
public void Die()
{
try
{
DeathSent = true;
World.UpdateSpawn(this);

int EModel;
if (Model == 1003 || Model == 1004)
EModel = 15099;
else
EModel = 15199;
if (PKPoints > 30)
if (PKPoints > 30)
{
Teleport(6000, 60, 60);
}

XpList = false;
SMOn = false;
CycloneOn = false;
XpCircle = 0;

MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
MyClient.SendPacket(General.MyPackets.Status1(UID, EModel));
MyClient.SendPacket(General.MyPackets.Death(this)) ;

if (PKPoints <= 30)
{
if (Other.ChanceSuccess(60))
{
Random lol = new Random();
int x = lol.Next(0, 9);
if (Equips[x] == null)
return;
uint TheItemUID = Equips_UIDs[x];
UnEquip((byte)x);
int Count = 0;
foreach (uint uid in Inventory_UIDs)
{
if (uid == TheItemUID)
{
string Item = Inventory[Count];
DroppedItem e = DroppedItems.DropItem(Item, (uint)(LocX - General.Rand.Next(2) + General.Rand.Next(2)), (uint)(LocY - General.Rand.Next(2) + General.Rand.Next(2)), (uint)LocMap, 1020);
World.ItemDrops(e);

RemoveItem(TheItemUID);
}
Count++;
}
}
}
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}
Thanks to AlexBigFoot to help me completing the code
if it isn't working tell me ... if someone can fix it, good!
stephanyd is offline  
Thanks
2 Users
Old 10/29/2008, 21:38   #2
 
elite*gold: 0
Join Date: Dec 2006
Posts: 196
Received Thanks: 35
Quote:
EModel = 15199;
if (PKPoints > 30)
if (PKPoints > 30)

{
Teleport(6000, 60, 60);
}
double if statement.
remove one of them.
i think the rest is fine tho.
randomnoob is offline  
Old 10/29/2008, 21:42   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Wtf? Didn't you already see the other leached thread? I mean ****, one leached thread is bad enough, but two leached threads that are exactly the same?!
tao4229 is offline  
Old 10/29/2008, 21:42   #4
 
ahmadinho12's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 197
Received Thanks: 25
Cool For Catcher's.
Isn't for Pkers
ahmadinho12 is offline  
Old 10/29/2008, 21:45   #5
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
Quote:
Originally Posted by tao4229 View Post
Wtf? Didn't you already see the other leached thread? I mean ****, one leached thread is bad enough, but two leached threads that are exactly the same?!
lol.. for the first time i try to contribute and try to be nice
stephanyd is offline  
Old 10/29/2008, 22:25   #6
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Quote:
Originally Posted by stephanyd View Post
lol.. for the first time i try to contribute and try to be nice
isnt bad to contribute with something, but before look for other threads.....
alexbigfoot is offline  
Reply


Similar Threads Similar Threads
How can i make Char loose items when Pked?
06/14/2009 - CO2 Private Server - 29 Replies
Hi.. anyone knows in wich line i should work to make characters loose items when getting PKed?:confused:
[Release] Capture the Flag!!!
05/01/2009 - CO2 PServer Guides & Releases - 4 Replies
#Deleted
[Release] MurderCo Now with Capture The Flag!
04/26/2009 - CO2 PServer Guides & Releases - 12 Replies
WE ARE NOW ONLINE BECUASE IM BACK HOME!! We are the New and the Best On the Block For Conquer Online Private Servers! Perks Of Our Server aka Things we have Capture the Flag <<< JUST ADDED TODAY!! Everyplayer Starts With 4k Cps! Online 24/7 Login Freeze Fixed
HOW TO LOOSE IP?
03/04/2008 - Dekaron - 14 Replies
Hey i need some hack for loosing ip



All times are GMT +2. The time now is 08:50.


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.