|
07/09/2009, 09:16
|
#1
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
[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.
|
|
|
07/09/2009, 19:58
|
#2
|
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.
|
|
|
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..
|
|
|
07/09/2009, 21:25
|
#4
|
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
|
totally wrong .. but good anyway
|
|
|
07/09/2009, 21:38
|
#5
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
Quote:
Originally Posted by danielachraf
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 =]
|
|
|
07/10/2009, 00:40
|
#6
|
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);
}
}
|
|
|
07/10/2009, 00:44
|
#7
|
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 438
|
because no one wanted too
|
|
|
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.
|
|
|
|
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.
|
|