Register for your free account! | Forgot your password?

You last visited: Today at 07:39

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

Advertisement



[Release] Moonbox Usage

Discussion on [Release] Moonbox Usage within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

View Poll Results: What should be released next?
Custom MoonBox Quest? 3 21.43%
Magic Gates? 2 14.29%
Meteor & Dragonball Bank? 4 28.57%
Custom 1st & 2nd Reborn? 5 35.71%
Voters: 14. You may not vote on this poll

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Lightbulb [Release] Moonbox Usage

Source Type : LOTF.


Usage Info : Gives you 1000 Conquer Points [ Based on a 25% Chance ]


Lets first define our variables.


In Character.cs

Code:
public int MoonBoxRandom = 0;
Now for the Item Usage code.

Right after
Code:
if (ItemParts[0] == "720027")
            {
                if (ItemsInInventory <= 30)
                {
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    RemoveItem(ItemUID);
                }
            }
You add..

Code:
else if (ItemParts[0] == "MoonBoxID" || ItemParts[0] == "MoonBoxID") // 721020 - 721065 , 721080 - 721090
            {

                MoonBoxRandom = General.Rand.Next(1, 100); // Finds Random #s
                if (MoonBoxRandom < 26) // 25% Win Chance
                {
                    CPs += 1000; // Grants CPs
                    MyClient.SendPacket(General.MyPackets.Vital((long)UID, 30, CPs));
                    MyClient.SendPacket(General.MyPackets.SendMsg(MyClient.MessageId, "SYSTEM", Name, "You opened a MoonBox and got 1000 Conquer Points!", 2005));
                    RemoveItem(UID);
                }
                else
                {
                    MyClient.SendPacket(General.MyPackets.SendMsg(MyClient.MessageId, "SYSTEM", Name, "You weren't so lucky this time, Sorry!", 2005));
                    RemoveItem(UID);
                }

            }
As you see i put MoonBoxID instead of the real IDs, but on the side I gave you the ID ranges. So that's your "homework", Finish it and you have a perfectly working moonbox usage code for ever moonbox.

f0am is offline  
Old 07/09/2009, 19:58   #2
 
raidenx123's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 438
Nice well I made a new item, this is for itemtype:
Code:
729913 CPBox 0 0 0 0 0 0 0 0 8 0 1000000 7403530 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Giftbox Right~click~on~it~for~a~chance~to~win~1000~CPs.
raidenx123 is offline  
Old 07/09/2009, 21:21   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
These are for moonbox but nice i guess..
f0am is offline  
Old 07/09/2009, 21:25   #4
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
totally wrong .. but good anyway
danielachraf is offline  
Old 07/09/2009, 21:38   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Quote:
Originally Posted by danielachraf View Post
totally wrong .. but good anyway

Whats wrong about it?


(If your answer to the question is one of the following ... please continue)

Drops All Items (or a certain type) : Learn to edit your self

Wrong Random : 25% Chance is pretty fair, I won't go for 50%


Anything else please post =]
f0am is offline  
Old 07/10/2009, 00:40   #6
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
lol
Code:
if (ItemParts[0] == "720027")
            {
                if (ItemsInInventory <= 30)
                {
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                    RemoveItem(ItemUID);
                }
            }
why not
Code:
            if (ItemParts[0] == "720027")
            {
                if (ItemsInInventory <= 30)
                {
                     for (int i = 0; i < 10; i++)
                        {
                         AddItem("1088001-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));
                        }
                    RemoveItem(ItemUID);
                }
            }
taylor2846 is offline  
Old 07/10/2009, 00:44   #7
 
raidenx123's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 438
because no one wanted too
raidenx123 is offline  
Old 07/10/2009, 11:58   #8
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
#BUMP

The only 4 letter word that allows me to bump something up a day without getting the moderators to yell at me. Isn't it spectacular?


I've took a look at the votes and I already started on the Meteor and DragonBall Bank.
f0am is offline  
Reply

Tags
f0am, fail, itemid, lotf, moonbox


Similar Threads Similar Threads
[Release] Requiem Attack Trainer + Usage
12/03/2012 - General Gaming Releases - 170 Replies
Here's my first release of an Attack/Movement Hack for Requiem, which no longer requires you to run CE. It has been tested, and will work with MailMan's hackshield bypass. This attack speed will require you to follow the following rules to work right. ATTACK USAGE: - CTRL-A ATTACK RULES:
[Release] getting perfect moonbox quest
04/12/2010 - CO2 PServer Guides & Releases - 32 Replies
ive been release this in 4botter many weeks ago and i decided to release here lets start in NPCDialog.cs #region fortune teller case 302: { if (Control == 0) { GC.AddSend(Packets.NPCSay("did you hear of palace method?")); GC.AddSend(Packets.NPCLink("palace method?", 1)); ...
[Release]MoonBox Quest
03/18/2010 - CO2 PServer Guides & Releases - 16 Replies
#region GuardianGod case 600004: { if (GC.MyChar.InventoryContains(721010, 1)) { GC.AddSend(Packets.NPCSay("I see you have a token for this tactic. This tactic is Peace.")); GC.AddSend(Packets.NPCLink("Ok Thanks!", 255)); ...
[Release] FortuneTeller MoonBox Quest! 5165 Source
01/21/2010 - CO2 PServer Guides & Releases - 6 Replies
#REMOVED! I MADE AN ALL-IN-ONE THREAD ABOUT IT! #Request Close



All times are GMT +2. The time now is 07:39.


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.