-
Re: Blizzard Emulator [C#, From Scratch, V63+]
I don't say anything like I will use java because it's better or nothing, simply I will use it.
Updates:
- Some fixes on freeze (a friend make a video ->
- Some fixes on rollers & Banzai
- Some updates again on connection to make it stabler
- Working on Wired:
- And fixes in general!
Quote:
Originally Posted by
Makarov
He's only boasting his ego, don't worry.
Anyway, I haven't seen many updates from this project at all.. Is it even ongoing?
Edit: Nevermind turned a page, seems nice any code examples though?
Yes, I'm working with this and update...
So one example; Wired Class (I must update a lot of things, it is a try!)
Code:
class WiredEffects
{
private static Habbo User;
private static RoomItem Item;
internal RoomItem ItemToTeleport;
internal WiredEffects(RoomItem sItem, Habbo sUser)
{
User = sUser;
Item = sItem;
}
internal void DoWiredEffects()
{
try
{
// Time to wired :O!
if (Item.GetBaseItem().Name == "wf_act_show_message")
{
// Wired Effect: Shows Message To User
if (Item.WiredString != "")
User.WhispToMe(Item.WiredString); // Send Message to me!
}
else if (Item.GetBaseItem().Name == "wf_act_teleport_to")
{
// Wired Effect: Teleport User To
if (Item.WiredItems.Count > 0)
{
Dictionary<int, RoomItem> Pos = new Dictionary<int, RoomItem>();
foreach (int i in Item.WiredItems)
{
Pos.Add((Pos.Count + 1), RoomItem.RegisteredItems[i]);
}
RoomItem sItem = Pos[(new Random()).Next(1, Item.WiredItems.Count)]; // Random Item if we have more than one, else onlye Next(1, 1) = 1!
ItemToTeleport = sItem; // To Thread
Thread Move = new Thread(new ThreadStart(GoTeleport)); // Init new thread (If you don't, you can't walk :(!)
Move.Start(); // Go!
StaticGame.WiredMoveSystem.Add(User.Id, Move); // Add to Remove later...
}
}
}
catch (Exception e)
{
BlizzardSystem.WriteLine("Wired Exception: " +e.ToString());
}
}
internal void GoTeleport()
{
Thread Move = StaticGame.WiredMoveSystem[User.Id]; // Call thread
int CurrentEffect = User.CurrentEffect; // Save Effect
(new EffectsInventory()).ShowEffect(User, 4); // Apply Effect...
Thread.Sleep(3000); // ...and wait 3 seconds
User.IsWalking = false; // stop walk
User.SetPos(ItemToTeleport.X, ItemToTeleport.Y, ""); // save new pos
(new EffectsInventory()).ShowEffect(User, CurrentEffect); // return Effect
StaticGame.WiredMoveSystem.Remove(User.Id); // Remove from dictionary!
Move.Abort(); // Remove Thread
}
}
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
ItachiKM
Code:
class WiredEffects
{
private static Habbo User;
private static RoomItem Item;
internal RoomItem ItemToTeleport;
internal WiredEffects(RoomItem sItem, Habbo sUser)
{
User = sUser;
Item = sItem;
}
internal void DoWiredEffects()
{
try
{
// Time to wired :O!
if (Item.GetBaseItem().Name == "wf_act_show_message")
{
// Wired Effect: Shows Message To User
if (Item.WiredString != "")
User.WhispToMe(Item.WiredString); // Send Message to me!
}
else if (Item.GetBaseItem().Name == "wf_act_teleport_to")
{
// Wired Effect: Teleport User To
if (Item.WiredItems.Count > 0)
{
Dictionary<int, RoomItem> Pos = new Dictionary<int, RoomItem>();
foreach (int i in Item.WiredItems)
{
Pos.Add((Pos.Count + 1), RoomItem.RegisteredItems[i]);
}
RoomItem sItem = Pos[(new Random()).Next(1, Item.WiredItems.Count)]; // Random Item if we have more than one, else onlye Next(1, 1) = 1!
ItemToTeleport = sItem; // To Thread
Thread Move = new Thread(new ThreadStart(GoTeleport)); // Init new thread (If you don't, you can't walk :(!)
Move.Start(); // Go!
StaticGame.WiredMoveSystem.Add(User.Id, Move); // Add to Remove later...
}
}
}
catch (Exception e)
{
BlizzardSystem.WriteLine("Wired Exception: " +e.ToString());
}
}
internal void GoTeleport()
{
Thread Move = StaticGame.WiredMoveSystem[User.Id]; // Call thread
int CurrentEffect = User.CurrentEffect; // Save Effect
(new EffectsInventory()).ShowEffect(User, 4); // Apply Effect...
Thread.Sleep(3000); // ...and wait 3 seconds
User.IsWalking = false; // stop walk
User.SetPos(ItemToTeleport.X, ItemToTeleport.Y, ""); // save new pos
(new EffectsInventory()).ShowEffect(User, CurrentEffect); // return Effect
Move.Abort(); // Remove Thread
StaticGame.WiredMoveSystem.Remove(User.Id); // Remove from dictionary!
}
}
I might look like a dumb, but what language is this? c#?
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
G3n3sis19
I might look like a dumb, but what language is this? c#?
Yes, it's a part of wired in Blizzard, obviously in C#
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
If I got that, you're working with official (cracked) SWF. How do you know what should you sent to a client in order to (move|whisper|etc)?
PS: Is George2000 really your friend? I'm really working forward to get its source, because I'm learning in c#
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
G3n3sis19
If I got that, you're working with official (cracked) SWF. How do you know what should you sent to a client in order to (move|whisper|etc)?
PS: Is George2000 really your friend? I'm really working forward to get its source, because I'm learning in c#
There isn't for the latest swf, I repeat, I will make a java server for the new encryption, but first, I will finish this project...
But anyway, I'm working with the new crypto and the latest swf too, but It don't matter here...
And yes, I have got George on my msn and I help him with he need, so yes.
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
ItachiKM
There isn't for the latest swf, I repeat, I will make a java server for the new encryption, but first, I will finish this project...
But anyway, I'm working with the new crypto and the latest swf too, but It don't matter here...
And yes, I have got George on my msn and I help him with he need, so yes.
I know, but if you use official SWF (even maybe old), you had to detect the responses from server so you can send the same data. Am I wrong?
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
G3n3sis19
I know, but if you use official SWF (even maybe old), you had to detect the responses from server so you can send the same data. Am I wrong?
The SWF send request to the server and It make a response and send to swf, is the system of sockets, it's that you are talking?
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
I'm looking forward on the emulator, and your CMS looks awesome. Maybe you could post some pictures.
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
ItachiKM
The SWF send request to the server and It make a response and send to swf, is the system of sockets, it's that you are talking?
Yes, I undestand this. But I do not understand how do you know to send back as a response when client requests?
Like, how would you know that when you want client force to wave, send this as a response
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
G3n3sis19
Yes, I undestand this. But I do not understand how do you know to send back as a response when client requests?
Like, how would you know that when you want client force to wave, send this as a response
You go to Habbo (no official hotels, hotels with phx or something) and packetlog to get the response that the client needs, after that, you go to your emulator, do a thing and look for the packet in the request log in your emulator...
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
ItachiKM can you post some screenshots of the cms?
Posted via Mobile Device
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
ItachiKM
and packetlog to get the response that the
That is what I was looking for! Are there any GOOD softwares for that?
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Jeez this aint a helpline man!
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Come there guilds & groups??
Posted via Mobile Device
-
Re: Blizzard Emulator [C#, From Scratch, V63+]
Quote:
Originally Posted by
Frankk
Come there guilds & groups??
Posted via Mobile Device
No, this will be before the encrypted sulake shit, so no. I'm sorry for you :sleep: