hey this is for SwiftEmulator... Lets go :D
Search:
and replace the void with:
Image:
Bild: fixedrwujn.png - abload.de
it's not 100%
Search:
Code:
internal void AddEffect(int EffectId, int Duration)
Code:
internal void AddEffect(int EffectId, int Duration)
{
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.runFastQuery(string.Concat(new object[] { "INSERT INTO user_effects (user_id,effect_id,total_duration,is_activated,activated_stamp) VALUES (", this.UserId, ",", EffectId, ",", Duration, ",0,0)" }));
}
this.Effects.Add(new AvatarEffect(EffectId, Duration, false, 0.0));
this.GetClient().GetMessageHandler().GetResponse().Init(Outgoing.AddEffectToInventary);
this.GetClient().GetMessageHandler().GetResponse().AppendInt32(EffectId);
this.GetClient().GetMessageHandler().GetResponse().AppendInt32(0);
this.GetClient().GetMessageHandler().GetResponse().AppendInt32(0);
this.GetClient().GetMessageHandler().SendResponse();
}
Image:
Bild: fixedrwujn.png - abload.de
it's not 100%