Junior Spellweaver
- Joined
- Feb 7, 2011
- Messages
- 120
- Reaction score
- 12
hey this is for SwiftEmulator... Lets go
Search:
and replace the void with:
Image:
it's not 100%
Search:
Code:
internal void AddEffect(int EffectId, int Duration)
and replace the void with:
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:
You must be registered to see links
it's not 100%