OldDarkobit Server

07/11/2016 13:28 steppdroid#16
Quote:
Originally Posted by 45the45 View Post
Why the server restart accounts?

:(

I can't atack enemies
for slove another bug
07/11/2016 16:43 MagierDesGrauens#17
Quote:
Originally Posted by steppdroid View Post
how slove this shit?!
U serious? The image he made is the solution. If you can't fix this little bug, take down your server and delete it. :facepalm:

One tip: You see that he shoots very often. So now search where they shoot and check how this could be. Btw: The bug is in the SERVER not in the Client.
07/11/2016 16:49 ForSworn™#18
I killed off the pushers and now I'm the only one left on the server. Me, Myself, and I.
07/11/2016 17:49 steppdroid#19
Quote:
Originally Posted by MagierDesGrauens View Post
U serious? The image he made is the solution. If you can't fix this little bug, take down your server and delete it. :facepalm:

One tip: You see that he shoots very often. So now search where they shoot and check how this could be. Btw: The bug is in the SERVER not in the Client.
The problem i think is on this code.. the exploit attack the timer ? :confused:
LaserAttackTimer

Code:
private static void LaserAttackTimer(object attacker)
        {

            //Output.WriteLine("laser attack still running");
            Session Session = (Session)attacker;
            MapInstance Instance = MapManager.GetInstanceByMapId(Session.CurrentMapId);
            Session Ennemy = SessionManager.GetSessionByCharacterId(Session.CharacterInfo.SelectedPlayer);

            if (Instance != null)
            {
                MapActor Actor = Instance.GetActorByReferenceId(Session.CharacterInfo.SelectedPlayer, MapActorType.AiBot);
                if (Actor != null)
                {
                    Npc Npc = (Npc)Actor.ReferenceObject;
                    //Output.WriteLine("Npc name : " + Npc.Name);
                    AttackNpc(Session, Npc);
                    //Output.WriteLine("do the action for npc");
                    return;
                }
            }
07/11/2016 18:25 MagierDesGrauens#20
Quote:
Originally Posted by steppdroid View Post
The problem i think is on this code.. the exploit attack the timer ? :confused:
LaserAttackTimer

Code:
private static void LaserAttackTimer(object attacker)
{
    ....
}
Can't see any error in this code, because I don't know the other code.
The bug is in the Server when you receive the packet-id "a".
When the Server receives a|ID then it exectues the damage-script. You have to make that a shoot can only be done every second.
The client should only send "a|ID" for the first time it attacks, not every second.
The server should send the client that there was damage on a npc.
So the server should send every second after the Attack-Packet that the player shooted.

Example:
Player Attacks NPC-ID 5.
Client: Send a|5
Server:
If attack_timer is not running Then
-> do attack
-> can_attack = true;
-> Run attack timer with 1000ms (1 sec.)

Timer after 1 sec.:
-> if(can_attack == true)
---> do attack
---> run timer to check attack with 1000ms again

Client: Send G|5
Server: Only abort attack (can_attack = false). Don't reset timer for attack. Otherwise we could send a|5, G|5, a|5, G|5, a|5... so i would re-run

This is only pseudo-code how it could work, but there are many other ways.
07/11/2016 18:35 steppdroid#21
Quote:
Originally Posted by MagierDesGrauens View Post
Can't see any error in this code, because I don't know the other code.
The bug is in the Server when you receive the packet-id "a".
When the Server receives a|ID then it exectues the damage-script. You have to make that a shoot can only be done every second.
The client should only send "a|ID" for the first time it attacks, not every second.
The server should send the client that there was damage on a npc.
So the server should send every second after the Attack-Packet that the player shooted.

Example:
Player Attacks NPC-ID 5.
Client: Send a|5
Server:
If attack_timer is not running Then
-> do attack
-> can_attack = true;
-> Run attack timer with 1000ms (1 sec.)

Timer after 1 sec.:
-> if(can_attack == true)
---> do attack
---> run timer to check attack with 1000ms again

Client: Send G|5
Server: Only abort attack (can_attack = false). Don't reset timer for attack. Otherwise we could send a|5, G|5, a|5, G|5, a|5... so i would re-run

This is only pseudo-code how it could work, but there are many other ways.
This is the intere code of attack manager..
[Only registered and activated users can see links. Click Here To Register...]

You can share the exploit for bug damage? so i can test it, if i solve the problem. Thank u
Maybe i sloved the problem... Test please
07/11/2016 19:21 cryz35#22
Quote:
Originally Posted by steppdroid View Post
This is the intere code of attack manager..
[Only registered and activated users can see links. Click Here To Register...]

You can share the exploit for bug damage? so i can test it, if i solve the problem. Thank u
Maybe i sloved the problem... Test please
no you didn't in the code you posted
07/12/2016 12:09 steppdroid#23
DAMAGE HACK FIXED!
ADDED ANTI PUSH!
07/12/2016 13:35 stefan717359#24
thats no nice anti push, me and my brother cant 1 vs 1 because of it :(

is it because we have the same ip?

Regards Stefan

+ You are banned for : Detected by the server : using speedhack..

i got banned for using speed hack?

i used nothing, i think i got banned because of an lag and for the server i was like teleporting or shit, can u unban me?

so close to quit this..
07/12/2016 15:56 721560329#25
funny your antipush system is a joke 2 firends cant play cause your IP restriction (btw if i want to push i can just get trial VPS for free and im all set) your "speedhack detection" is another joke as you can just teleport around the map if you want without being detected by system... but atleast you trying and i appriciate that (i would still recomend closing it and create your own emulator there are so many known ones on your current one ..)
07/12/2016 16:42 supraturbo92#26
did u fix the space ball as u will need hit it 120k+ just to move it?
07/12/2016 18:16 steppdroid#27
Quote:
Originally Posted by 721560329 View Post
funny your antipush system is a joke 2 firends cant play cause your IP restriction (btw if i want to push i can just get trial VPS for free and im all set) your "speedhack detection" is another joke as you can just teleport around the map if you want without being detected by system... but atleast you trying and i appriciate that (i would still recomend closing it and create your own emulator there are so many known ones on your current one ..)
Hi, you can try if hack dmg is fixed?
07/12/2016 19:19 721560329#28
Quote:
Originally Posted by steppdroid View Post
Hi, you can try if hack dmg is fixed?
i cant cause i cant shoot my second account and nobody in game is willing to help me
07/12/2016 19:41 stefan717359#29
can u unban me i got banned for nothing
07/12/2016 21:01 MagierDesGrauens#30
Quote:
Originally Posted by steppdroid View Post
[B...
ADDED ANTI PUSH![/B]
Remove "Speedhack" detection. The server should calculate the new position, so there can never be any "speedhack". And the client should ONLY send where it wants to move. Only 1|DX|DY, NOT 1|X|Y|DX|DY.
The server then tells the client where it is now to update in client.

Remove the "Anti-Push"-System. You can log if there are 2 connections on same IP. After a while you check when 2 same IPs killed themself. You shouldn't do this automatically.

Everything has to be managed by the server. The client only draws how it seems or tries to calculate what can be next (like movement).
Like 721560329 said, you should start creating your own emulator or use some other good ones.