I am not getting any errors, I have opened the source up with visual c#, I opened the incoming.cs to change the dice line, then I went back to visual c# and it wont let me debug it is grayyed out.
With any changes to the .cs files do you need to debug?
08-11-13
Japaojp
Re: Help with various fixes
Yes, do you. Grayed? Print it, I can't understand u.
08-11-13
Chase Bergroth
Re: Help with various fixes
Sorry I was opening the wrong c# file, I have noe debugged and it has gone to opening up my emulator, is this all that needs to be done?
thankyouvery much I got the gates and dice working now:D
now I have these problems left at the moment.
1.Everytime I add furni to my retro, the cata page I put it in disconnects when I look at it, what is the problem
here?
2. I cannot plant seeds, I can buy them and place them but they do not plant in the ground.
3. how to make a votingapi for illumcms?
4. gifts dont work
08-11-13
Japaojp
Re: Help with various fixes
1 - IDK
2 - Not coded
3 - IDK what are you talking about, but I don't think I know it
4 - Not coded - I have it, but isn't a good fix
08-11-13
Chase Bergroth
Re: Help with various fixes
1. any ideas on what could cause this?
2. do you know anywhere I can get the coding for this? or lost cause?
3. Voting APIs are for voting for retro lists when you open the client
4. I have found this fix but in the first lot in catalog.cs I cant find excatly which one he wants me to change i have 2, i have tried them both and they dont seem to work so im not sure what im doing wrong.
Spoiler:
In: Catalog.cs Click in "EDIT" -> Go to... and digit: 1144, press Ok.
Search for: if (IsGift)
And, replace all if by:
using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.runFastQuery(string.Concat(new object[] { "UPDATE items SET base_id = '", row["item_id"], "' WHERE item_id = ", item.Id }));
adapter.setQuery(string.Concat(new object[] { "UPDATE items_extradata SET data = '" + row["extradata"] + "' WHERE item_id = " + item.Id }));
adapter.addParameter("extradata", row["extradata"]);
adapter.runQuery();
adapter.runFastQuery("DELETE FROM user_gifts WHERE gift_id = " + item.Id);
}
string s = item.GetBaseItem().Type.ToString().ToLower();
string extraData = row["extradata"].ToString();
item.BaseItem = Convert.ToUInt32(row["item_id"]);
item.refreshItem();
item.ExtraData = extraData;
if (!room.GetRoomItemHandler().SetFloorItem(this.Session, item, item.GetX, item.GetY, item.Rot, true, false, true))
{
this.Session.SendNotif("Failed to create your gift!");
}
else
{
this.Response.Init(Outgoing.OpenGift);
this.Response.AppendString(item2.Type.ToString());
this.Response.AppendInt32(item2.SpriteId);
this.Response.AppendString(item2.Name);
this.Response.AppendInt32(item.Id);
this.Response.AppendString(s);
this.Response.AppendBoolean(true);
this.Response.AppendString(extraData);
this.SendResponse();
}
}
else
{
room.GetRoomItemHandler().RemoveFurniture(this.Session, item.Id);
using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.runFastQuery("DELETE FROM user_gifts WHERE gift_id = " + item.Id);
}
this.Session.GetMessageHandler().GetResponse().Init(Outgoing.SendPurchaseAlert);
this.Session.GetMessageHandler().GetResponse().AppendInt32(1);
int i = 2;
if (item2.Type.ToString().ToLower().Equals("s"))
{
if (item2.InteractionType == InteractionType.pet)
{
i = 3;
}
else
{
i = 1;
}
}
this.Session.GetMessageHandler().GetResponse().AppendInt32(i);
List<UserItem> list = ButterflyEnvironment.GetGame().GetCatalog().DeliverItems(this.Session, item2, (int)row["amount"], (string)row["extradata"], 0, 0);
this.Session.GetMessageHandler().GetResponse().AppendInt32(list.Count);
foreach (UserItem item3 in list)
{
this.Session.GetMessageHandler().GetResponse().AppendInt32(item3.Id);
}
this.Session.GetMessageHandler().SendResponse();
this.Session.GetHabbo().GetInventoryComponent().UpdateItems(true);
//this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
//this.Session.GetMessageHandler().SendResponse();
}
}
}
}
this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
this.Session.GetMessageHandler().SendResponse();
To enable the gift purchase, edit this:
In Incoming.cs,
Search by: Incoming.PurchaseGift = 0x0901
Replace by: Incoming.PurchaseGift = 0x0900
For the present don't bug stay in inventory and when placing it on the ground, do this:
In: GameClientMessageHandler.cs, Search by: internal void PlaceItem()
And, replace all void PlaceItem, by: