MoonBox Problem

09/14/2010 08:41 jasoncoolman#1
i hav a source which dont sell emrald or moonbox emrald works when i do the commands and moonbox but when i try open it it says not aeed yet for opening only for promotion when i try promote with it it doesnt find it in my inventory when it is in there anyone kno how to fix ti pls
09/14/2010 13:04 dowhatuwant#2
what version?
09/14/2010 13:17 .Beatz#3
Easy fix. Open your Items.txt in OldCODB and search for
Code:
Moonbox
The try I think it is the 3rd or 4th moonbox from the bottom of the list of moonboxes. But try each ID in the shop till you get the right one.
09/14/2010 16:37 jasoncoolman#4
Quote:
Originally Posted by ☆★Zuper★☆ View Post
what version?
5165 is the source with deathmatch and pk tourny
09/14/2010 16:38 jasoncoolman#5
Quote:
Originally Posted by .Beatz View Post
Easy fix. Open your Items.txt in OldCODB and search for
Code:
Moonbox
The try I think it is the 3rd or 4th moonbox from the bottom of the list of moonboxes. But try each ID in the shop till you get the right one.
huh i dont understand but i wil try anyway
Dude i searched for it but what do i do with it????
09/14/2010 22:16 Arcо#6
Make sure the ID of the moonbox you have is 721080.
09/15/2010 02:50 { Angelius }#7
ohh i guess i can fix it for ya but just do as im telling ya
first go to character.cs file and scroll down or hit CTRL + F and look for
public void UseItem(Item I)

under that code you'll see the moon box code and also the FU mess that says {not aeed yet for opening only for promotion }

replace that code with this one this code is for the random items from the moon box so if you wanna add more items feel free to edit the code an add whatever you like to it
Quote:
}
if (I.DBInfo.Name == "MoonBox")
{

Random R = new Random();
int Nr = R.Next(1, 6);
if (Nr == 1)
{
AddItem(150097);
RemoveItem(I);
}
if (Nr == 2)
{
AddItem(120087);
RemoveItem(I);
}
if (Nr == 3)
{
AddItem(160097);
RemoveItem(I);
}
if (Nr == 4)
{
AddItem(121087);
RemoveItem(I);
}
if (Nr == 5)
{
AddItem(117047);
RemoveItem(I);
}



}
switch (I.ID)
{
or
this code
}
if (I.DBInfo.Name == "MoonBox")
{

CPs += 1000;//or whatever number of cps you want the player to have
RemoveItem(I);
}
switch (I.ID)
{


and about the promote thing go to your NPCDialog.cs and look for the whatever your class god is and look for the promote me control if you dident see something like his
Quote:
if (GC.MyChar.Level >= GC.MyChar.LevReqForPromote)
{
byte Need = 1;
uint ID = GC.MyChar.PromoteItems;
if (ID == 1072031) Need = 5;
if (GC.MyChar.InventoryContains(ID, Need) || ID == 1)
under the promote me control let me know an i'll fix the code for ya
have fun :D
09/15/2010 08:19 jasoncoolman#8
Dude i tired to do it it still says still not add for opening and when i try promote with it it doesnt work
09/15/2010 08:49 Arcо#9
We just gave you all the information needed. We spoonfed you well enough, you can do it from here.
09/15/2010 09:05 jasoncoolman#10
KK should i f5 anf f6 it or somthing
09/15/2010 09:58 Arcо#11
f5 sir.
09/16/2010 07:22 jasoncoolman#12
Quote:
Originally Posted by Аrco View Post
f5 sir.
dude when i try f5 it it this error comes Error

Error namespace cannot directly contain members such as fields or methods
09/16/2010 07:28 Arcо#13
Probably one too many '}'
Would be great if you posted screenshots of where you entered the code.
09/16/2010 08:14 jasoncoolman#14
Quote:
Originally Posted by Аrco View Post
Probably one too many '}'
Would be great if you posted screenshots of where you entered the code.
i put the code at the bottom is dat why?
09/16/2010 08:36 Arcо#15
You were supposed to put the code where he told you to.