Register for your free account! | Forgot your password?

You last visited: Today at 12:32

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

Advertisement



Lotto Message

Discussion on Lotto Message within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
Lotto Message

Ok im trying to add where LOTF source Says when you win a Big Prize from Lotto this is what i got and wont work can smeone maybe help me fix this up?

public void DoLottery()
{
if (Other.ChanceSuccess(25))
{
World.SendMsgToAll(MyChar.Name + " is so lucky to win a(an) " + PrizeSoc + "" + PrizeName + "" + PrizePlus + "!", "SYSTEM", 2000);
byte Quality = 8;

if (Other.ChanceSuccess(15))
Quality = 9;

byte Plus = 0;

if (Quality == 8)
if (Other.ChanceSuccess(1))
Plus = 8;

byte Soc1 = 0;
byte Soc2 = 0;

if (Plus == 0)
if (Quality == 8)
if (Other.ChanceSuccess(1))
{
Soc1 = 255;
if (Other.ChanceSuccess(0.5))
Soc2 = 255;
}

byte Enchant = (byte)General.Rand.Next(0, 255);
byte Bless = 0;
if (Other.ChanceSuccess(20))
Bless = (byte)General.Rand.Next(0, 3);

uint EquipID = Other.GenerateEquip((byte)General.Rand.Next(15, 119), Quality);
while (EquipID == 0)
{
EquipID = Other.GenerateEquip((byte)General.Rand.Next(15, 119), Quality);
}

AddItem(EquipID.ToString() + "-" + Plus.ToString() + "-" + Bless.ToString() + "-" + Enchant.ToString() + "-" + Soc1.ToString() + "-" + Soc2.ToString(), 0, (uint)General.Rand.Next(263573635));
}
else if (Other.ChanceSuccess(15))
{
AddItem(Other.GenerateGarment().ToString() + "-0-0-0-0-0", 0, (uint)General.Rand.Next(263573635));
World.SendMsgToAll(MyChar.Name + " is so lucky to win a(an) " + PrizeSoc + "" + PrizeName + "" + PrizePlus + "!", "SYSTEM", 2000);
}
else if (Other.ChanceSuccess(20))
{
uint ID = Other.GenerateEtc();
if (Other.ItemType2(ID) == 73)
AddItem(ID.ToString() + "-" + (ID - 730000) + "-0-0-0-0", 0, (uint)General.Rand.Next(263573635));
else
AddItem(ID.ToString() + "-0-0-0-0-0", 0, (uint)General.Rand.Next(263573635));
World.SendMsgToAll(MyChar.Name + " is so lucky to win a(an) " + PrizeSoc + "" + PrizeName + "" + PrizePlus + "!", "SYSTEM", 2000);
}
else if (Other.ChanceSuccess(25))
{
AddItem(Other.GenerateSpecial().ToString() + "-0-0-0-0-0", 0, (uint)General.Rand.Next(263573635));
World.SendMsgToAll(MyChar.Name + " is so lucky to win a(an) " + PrizeSoc + "" + PrizeName + "" + PrizePlus + "!", "SYSTEM", 2000);
}
else
{
uint ID = Other.GenerateCrap();
if (ID != 730001)
AddItem(ID.ToString() + "-0-0-0-0-0", 0, (uint)General.Rand.Next(263573635));
else
AddItem("730001-1-0-0-0-0", 0, (uint)General.Rand.Next(263573635));
World.SendMsgToAll(MyChar.Name + " is so lucky to win a(an) " + PrizeSoc + "" + PrizeName + "" + PrizePlus + "!", "SYSTEM", 2000);
}
}
Pete1990 is offline  
Old 04/30/2009, 03:12   #2
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Here's my old lottery from Lotf.
I'm sure you can work with it to get it to do what you want.
Attached Files
File Type: txt Lottery.cs.txt (5.1 KB, 30 views)
kinshi88 is offline  
Old 04/30/2009, 03:16   #3
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
Thank You
Pete1990 is offline  
Reply


Similar Threads Similar Threads
Lotto Help!
07/10/2008 - Conquer Online 2 - 1 Replies
Ok i know the loto is all luck so dont be mad at me, but i was wondering if the colors of the boxes mean anything. i remember i think i heard that like a color had a higher chance of giving u equips and another color had a higher chance of Dbs or mets. If anyone knows about this could they please tell me if this is true or not and what type of items does each box color item give if it is ture. Thxs if anyone could help me.
LOTTO
06/07/2007 - Conquer Online 2 - 3 Replies
Hey all.....ima new to here...but not too new... ima asking bout lotto....which box do it gave soc or nice item?can u all tell me about?
Lotto
05/06/2007 - CO2 Guides & Templates - 31 Replies
Well This Wont Work 100% so Dont Blame me If u Wasted ur dbs for Nuffin. Step 1: Well i gatherd up like 3 dbs use them in lotto really fast with diffrent chars of urs Step 2:Always Open Same Box I Opend A Blue One In The Last Row Step 3:make sure u have more then 3 dbs cause 3 is usually enought For The First Part Like basically the 3 dbs are for totaly "waste" basically Step 4:now u need 1-2 more dbs so u will get better items from the same box just keep opening the same box over...



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.