Now i have tried your code and it doesn't work to buy me a booster.
I'm sorry but I'm learning now in codes: D
Do you still get the same error? I've never tried to look into Darkorbit stuff private server stuff, so I have no clue on how your CMS or other stuff is coded
**PS** I just noticed i forgot to paste the ending of the try phrase. So i've updated the code
i found file "boostermanager" but idk if that's it: /
I'll send you all the code here and check it out because I'm not sure if it's here
Code:
namespace Ow.Game.Objects.Players.Managers
{
public class BoosterBase
{
public short Type { get; set; }
public int Seconds { get; set; }
public BoosterBase(short type, int seconds)
{
Type = type;
Seconds = seconds;
}
}
class BoosterManager : AbstractManager
{
public Dictionary<short, List<BoosterBase>> Boosters = new Dictionary<short, List<BoosterBase>>();
public BoosterManager(Player player) : base(player) { }
private DateTime boosterTime = new DateTime();
public void Tick()
{
if (boosterTime.AddSeconds(5) < DateTime.Now)
{
for (short i = 0; i < Boosters.ToList().Count; i++)
{
var boosters = Boosters.ToList()[i].Value;
for (short k = 0; k < boosters.Count; k++)
{
boosters[k].Seconds -= 5;
if (boosters[k].Seconds <= 0)
Remove((BoosterType)boosters[k].Type);
}
}
boosterTime = DateTime.Now;
}
}
public void Add(BoosterType boosterType, int hours)
{
Player.SendPacket($"0|A|STM|booster_found|%BOOSTERNAME%|{boosterType.ToString()}|%HOURS%|{hours}");
var seconds = (int)TimeSpan.FromHours(hours).TotalSeconds;
short boostedAttributeType = GetBoosterType((short)boosterType);
if (boostedAttributeType != 0)
{
if (!Boosters.ContainsKey((short)boostedAttributeType))
Boosters[boostedAttributeType] = new List<BoosterBase>();
if (Boosters[boostedAttributeType].Where(x => x.Type == (short)boosterType).Count() <= 0)
Boosters[boostedAttributeType].Add(new BoosterBase((short)boosterType, seconds));
else
Boosters[boostedAttributeType].Where(x => x.Type == (short)boosterType).FirstOrDefault().Seconds += seconds;
Update();
QueryManager.SavePlayer.Boosters(Player);
}
}
public void Remove(BoosterType boosterType)
{
short boostedAttributeType = GetBoosterType((short)boosterType);
if (boostedAttributeType != 0)
{
if (Boosters.ContainsKey(boostedAttributeType))
Boosters[boostedAttributeType].Remove(Boosters[boostedAttributeType].Where(x => x.Type == (short)boosterType).FirstOrDefault());
if (Boosters[boostedAttributeType].Count == 0)
Boosters.Remove(boostedAttributeType);
Update();
QueryManager.SavePlayer.Boosters(Player);
}
}
public void Update()
{
var boostedAttributes = new List<BoosterUpdateModule>();
if (Boosters.ContainsKey((short)BoostedAttributeType.DAMAGE) && Boosters[(short)BoostedAttributeType.DAMAGE].Count >= 1)
boostedAttributes.Add(new BoosterUpdateModule(new BoostedAttributeTypeModule(BoostedAttributeTypeModule.DAMAGE), GetPercentage(BoostedAttributeType.DAMAGE), Boosters[(short)BoostedAttributeType.DAMAGE].Select(x => new BoosterTypeModule(x.Type)).ToList()));
if (Boosters.ContainsKey((short)BoostedAttributeType.SHIELD) && Boosters[(short)BoostedAttributeType.SHIELD].Count >= 1)
boostedAttributes.Add(new BoosterUpdateModule(new BoostedAttributeTypeModule(BoostedAttributeTypeModule.SHIELD), GetPercentage(BoostedAttributeType.SHIELD), Boosters[(short)BoostedAttributeType.SHIELD].Select(x => new BoosterTypeModule(x.Type)).ToList()));
if (Boosters.ContainsKey((short)BoostedAttributeType.MAXHP) && Boosters[(short)BoostedAttributeType.MAXHP].Count >= 1)
boostedAttributes.Add(new BoosterUpdateModule(new BoostedAttributeTypeModule(BoostedAttributeTypeModule.MAXHP), GetPercentage(BoostedAttributeType.MAXHP), Boosters[(short)BoostedAttributeType.MAXHP].Select(x => new BoosterTypeModule(x.Type)).ToList()));
if (Boosters.ContainsKey((short)BoostedAttributeType.REPAIR) && Boosters[(short)BoostedAttributeType.REPAIR].Count >= 1)
boostedAttributes.Add(new BoosterUpdateModule(new BoostedAttributeTypeModule(BoostedAttributeTypeModule.REPAIR), GetPercentage(BoostedAttributeType.REPAIR), Boosters[(short)BoostedAttributeType.REPAIR].Select(x => new BoosterTypeModule(x.Type)).ToList()));
if (Boosters.ContainsKey((short)BoostedAttributeType.HONOUR) && Boosters[(short)BoostedAttributeType.HONOUR].Count >= 1)
boostedAttributes.Add(new BoosterUpdateModule(new BoostedAttributeTypeModule(BoostedAttributeTypeModule.HONOUR), GetPercentage(BoostedAttributeType.HONOUR), Boosters[(short)BoostedAttributeType.HONOUR].Select(x => new BoosterTypeModule(x.Type)).ToList()));
if (Boosters.ContainsKey((short)BoostedAttributeType.EP) && Boosters[(short)BoostedAttributeType.EP].Count >= 1)
boostedAttributes.Add(new BoosterUpdateModule(new BoostedAttributeTypeModule(BoostedAttributeTypeModule.EP), GetPercentage(BoostedAttributeType.EP), Boosters[(short)BoostedAttributeType.EP].Select(x => new BoosterTypeModule(x.Type)).ToList()));
Player.SendCommand(AttributeBoosterUpdateCommand.write(boostedAttributes));
Player.SendCommand(AttributeHitpointUpdateCommand.write(Player.CurrentHitPoints, Player.MaxHitPoints, Player.CurrentNanoHull, Player.MaxNanoHull));
Player.SendCommand(AttributeShieldUpdateCommand.write(Player.CurrentShieldPoints, Player.MaxShieldPoints));
//TODO dont need every time
Player.SettingsManager.SendMenuBarsCommand();
}
public int GetPercentage(BoostedAttributeType boostedAttributeType)
{
var percentage = 0;
if (Boosters.ContainsKey((short)boostedAttributeType))
foreach (var booster in Boosters[(short)boostedAttributeType])
percentage += GetBoosterPercentage(booster.Type);
return percentage;
}
private short GetBoosterType(short boosterType)
{
short boostedAttributeType = 0;
switch (boosterType)
{
case BoosterTypeModule.DMG_B01:
case BoosterTypeModule.DMG_B02:
boostedAttributeType = (short)BoostedAttributeType.DAMAGE;
break;
case BoosterTypeModule.SHD_B01:
case BoosterTypeModule.SHD_B02:
boostedAttributeType = (short)BoostedAttributeType.SHIELD;
break;
case BoosterTypeModule.HP_B01:
case BoosterTypeModule.HP_B02:
boostedAttributeType = (short)BoostedAttributeType.MAXHP;
break;
case BoosterTypeModule.REP_B01:
case BoosterTypeModule.REP_B02:
case BoosterTypeModule.REP_S01:
boostedAttributeType = (short)BoostedAttributeType.REPAIR;
break;
case BoosterTypeModule.HON_B01:
case BoosterTypeModule.HON_B02:
case BoosterTypeModule.HON50:
boostedAttributeType = (short)BoostedAttributeType.HONOUR;
break;
case BoosterTypeModule.EP_B01:
case BoosterTypeModule.EP_B02:
case BoosterTypeModule.EP50:
boostedAttributeType = (short)BoostedAttributeType.EP;
break;
}
return boostedAttributeType;
}
private int GetBoosterPercentage(short boosterTypeModule)
{
var percentage = 0;
switch (boosterTypeModule)
{
case BoosterTypeModule.DMG_B01:
case BoosterTypeModule.DMG_B02:
case BoosterTypeModule.HP_B01:
case BoosterTypeModule.HP_B02:
case BoosterTypeModule.REP_B01:
case BoosterTypeModule.REP_B02:
case BoosterTypeModule.REP_S01:
case BoosterTypeModule.HON_B01:
case BoosterTypeModule.HON_B02:
case BoosterTypeModule.EP_B01:
case BoosterTypeModule.EP_B02:
percentage = 10;
break;
case BoosterTypeModule.SHD_B01:
case BoosterTypeModule.SHD_B02:
percentage = 25;
break;
case BoosterTypeModule.HON50:
case BoosterTypeModule.EP50:
percentage = 50;
break;
}
return percentage;
}
}
}
go to phpMyadmin -> server database -> Player_equipment -> boosters table
Copy this into PhpMyadmin---->{"2":[{"Type":1,"Seconds":3600}]}
the problem with parentheses is the emulator is not able to define the parentheses
This is working.but i buy booster in shop and i donīt go to spacemap.
friends, I found out that I had the endings set "" and you don't have to be there because the beginning must be {and I had "" so that's why it didn't work, but thank you for your help.
so I figured it out when I took it off so I can't get the page
[Buying] [HIRING BOOSTERS] for RankedBoosters, Boosters and Junior Boosters 09/13/2019 - League of Legends Trading - 0 Replies Hiring new Boosters for our Eloboosting website https://www.rankedboosters.com.
All Regions.
You will be tested on a smurf account, and will need to provide your main account as proof with screen share. Otherwise DO NOT apply.
Open positions:
Normal Boosters (Must be Diamond 1+)
Junior Boosters (Must be DIamond 3+)
[Selling] Boosters Club | ELO Boosting by Diamonds boosters 04/21/2014 - League of Legends Trading - 214 Replies NEW PRICES !!! ADD to ASK ! SO CHEAP http://imageshack.us/a/img19/4007/j3tg.jpg
VOUCHES
Offering CMS based website for division boosters/team boosters/ref sellers 02/19/2013 - League of Legends Trading - 1 Replies Ok so i will be offering CMS based website with also with the ability to run it and set everything for you.Here you can see one of the example page:
http://www.zaslike.com/files/pezu1z7dqlndr1teup4x .jpg
Example of pages:
http://www.zaslike.com/files/04e5b38lxcng1qcrfq5t .jpg
http://www.zaslike.com/files/o8u6h3dm8vs1ge6lzu.j pg
Send me a pm if you are interested so you can ask me for skype for more details.
ALERT = NOT WORKING EDITED Barny - Wallhack NOT Working 12/05/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 4 Replies please closed the thread below of this thread...
threading that edited barny is working hack,....
its an spam!!!!!