Ingame Clothing Store

Status
Not open for further replies.

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
right
is there like a release or w.e for an ingame clothes store
so you can purchase your clothes while ingame aswell as on the site
if so please help :)
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Are you talking about RP(Role Play) if so I think sledmore released one for v26 somewhere in the habbo release section
 

Kieren

The OGz
Aug 4, 2010
2,957
752
I don't think Sledmore has released this, I have had a look, and If I'm correct there isn't a release for it, on the Obbo server there is actually a clothing shop so it's kinda confusing; Good luck anyway.
 

Kieren

The OGz
Aug 4, 2010
2,957
752
PHP:
#region clothing case "buy":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
string clothes = stringManager.wrapParameters(args, 1);
string[] id = clothes.Split(new Char[] { '-' });
string hair = id[0];
if (id[0] == "ch")
{
string thefigure = _Figure;
 
string[] result = thefigure.Split(new Char[] { '.' });
{
Room.sendSaying(roomUser, "*Buys a new sexah shirt shirt*");
result[1] = "ch-1-1";
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
refreshAppearance(false, true, true);
}
}
else if (id[0] == "ea")
{
string thefigure = _Figure;
 
string[] result = thefigure.Split(new Char[] { '.' });
{
Room.sendSaying(roomUser, "*Buys some new glasses*");
result[5] = "ea-1-1";
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
refreshAppearance(false, true, true);
}
}
else if (id[0] == "ha")
{
string thefigure = _Figure;
 
string[] result = thefigure.Split(new Char[] { '.' });
{
Room.sendSaying(roomUser, "*Buys a new hat!*");
result[6] = "ha-1-1";
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
refreshAppearance(false, true, true);
}
}
else if (id[0] == "sh")
{
string thefigure = _Figure;
 
string[] result = thefigure.Split(new Char[] { '.' });
{
result[3] = "sh-1-1";
Room.sendSaying(roomUser, "*Purchases a new pair of shoes*");
_Figure = result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6];
{
dbClient.runQuery("UPDATE users SET figure = '" + result[0] + "." + result[1] + "." + result[2] + "." + result[3] + "." + result[4] + "." + result[5] + "." + result[6] + "' WHERE name = '" + _Username + "'");
}
}
refreshAppearance(false, true, true);
}
else
{
sendData("BK" + "You cannot be working, arrested or dead to change clothes!");
}
}
break;
}
#endregion

This can work it was originally a command for something else, thanks to Tr0ll for the idea of the command and me for editing, see if it works, I haven't tested it.
 

Kieren

The OGz
Aug 4, 2010
2,957
752
No, you need split figures, sorry.

[mod] Thread closed no point in being up for discussion problem solved any problems with the command PM me. [/mod]
 
Status
Not open for further replies.

Users who are viewing this thread

Top