[Mini-Release] Fix invaild jump problem

02/22/2010 19:10 [GM]#1
some ppl have problems with invaild jump, its annoying

and when u are transformed into a divine hare u can't jump with it

just replace ur jump.cs with this one

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewestCOServer.PacketHandling
{
    public class Jump
    {
        public static void Handle(Main.GameClient GC, byte[] Data)
        {
            if (GC.MyChar.BuffOf(NewestCOServer.Features.SkillsClass.ExtraEffect.BlessPray).Eff == NewestCOServer.Features.SkillsClass.ExtraEffect.BlessPray)
                GC.MyChar.RemoveBuff(GC.MyChar.BuffOf(Features.SkillsClass.ExtraEffect.BlessPray));
            GC.MyChar.Mining = false;
            GC.MyChar.AtkMem.Attacking = false;
            GC.MyChar.Action = 100;
                if (GC.MyChar.StatEff.Contains(NewestCOServer.Game.StatusEffectEn.Ride))
                {
                    if (GC.MyChar.Vigor >= 5)
                        GC.MyChar.Vigor -= 5;
                    else return;
                }
                Game.World.Action(GC.MyChar, Data);
                GC.MyChar.Loc.Jump(BitConverter.ToUInt16(Data, 8), BitConverter.ToUInt16(Data, 10));
                Game.World.Spawns(GC.MyChar, true);
            }
        }
    }
02/22/2010 19:39 ~Yuki~#2
this conde should only be temp
02/22/2010 19:53 glover#3
yea you eliminate invalid jump but it worth refill area with invisible all npc or lag you when you use high jumps.
02/22/2010 20:08 [GM]#4
Quote:
Originally Posted by glover View Post
yea you eliminate invalid jump but it worth refill area with invisible all npc or lag you when you use high jumps.
well,iam a very noob coder and i tried my best at least no more invaild jump


#edit Important updated first post

i fixed this problem :D
02/22/2010 20:30 StarEvaAfta!~#5
Good one, keep good working
02/22/2010 20:40 copz1337#6
Goob job. Going to remove my Invalid jump now.
02/22/2010 23:01 Arcо#7
When are people going to realize this is not a bug.
This is just your dmaps at work.
02/23/2010 08:15 salem rey#8
SO this is really working? so that will add this one? :D
02/23/2010 09:38 LegalConquer#9
is a code really needed ive only been playing with C# for about 2 weeks and the first thing i did to the game was delete the invalid jump i thought it was just common sence how to fix it rotflol.
02/23/2010 15:00 Basser#10
Quote:
Originally Posted by LegalConquer View Post
is a code really needed ive only been playing with C# for about 2 weeks and the first thing i did to the game was delete the invalid jump i thought it was just common sence how to fix it rotflol.
(Interest in) C# + Common Sense = Ability to be a very good coder.
I think removing it is very unsafe though.
Simply using a way to run a program at a speed of 2 x the normal speed (or what ever speed u prefer) will give the ability to be very fast. At some point it checks if your distance is above x "distance" (Don't know what unit they use.), you should change that to a little bit bigger distance.
02/23/2010 19:11 dillhack#11
Quote:
Originally Posted by [GM] View Post
some ppl have problems with invaild jump, its annoying

and when u are transformed into a divine hare u can't jump with it

just replace ur jump.cs with this one

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewestCOServer.PacketHandling
{
    public class Jump
    {
        public static void Handle(Main.GameClient GC, byte[] Data)
        {
            if (GC.MyChar.BuffOf(NewestCOServer.Features.SkillsClass.ExtraEffect.BlessPray).Eff == NewestCOServer.Features.SkillsClass.ExtraEffect.BlessPray)
                GC.MyChar.RemoveBuff(GC.MyChar.BuffOf(Features.SkillsClass.ExtraEffect.BlessPray));
            GC.MyChar.Mining = false;
            GC.MyChar.AtkMem.Attacking = false;
            GC.MyChar.Action = 100;
                if (GC.MyChar.StatEff.Contains(NewestCOServer.Game.StatusEffectEn.Ride))
                {
                    if (GC.MyChar.Vigor >= 5)
                        GC.MyChar.Vigor -= 5;
                    else return;
                }
                Game.World.Action(GC.MyChar, Data);
                GC.MyChar.Loc.Jump(BitConverter.ToUInt16(Data, 8), BitConverter.ToUInt16(Data, 10));
                Game.World.Spawns(GC.MyChar, true);
            }
        }
    }


well i never ever had this invalid jump problem it only if u jump way to far ull see u cant jump there but 3 inches infront of me never ever seen invalid jump i dunno why everyone getting this
02/23/2010 19:38 ~Yuki~#12
maybe u dont load dmaps :O

also this dun happen to me on Localhost but if ping gets 150+
02/27/2010 16:31 smircea#13
thanks a lot dude
02/28/2010 03:24 Paralyzer[GM]#14
As .Arco said this IS unsafe when you jump and you would normally get it you would go back to were you were now then if you remove it do some jumping relog ROLL BACKS you go back to were you were when you should have got the invalid jump so kill 50 monsters got 500cps you loose it all!
03/06/2010 00:17 Tw3ak#15
Quote:
Originally Posted by ~Yuki~ View Post
maybe u dont load dmaps :O

also this dun happen to me on Localhost but if ping gets 150+
that is easily solvable with a referesher that compensates for varying ping/lag rates so that doesn't happen. Tanel never learned or cared to add this into his sources thus why you get invisible npcs and mobs ect on maps when you move too fast or ping spikes and u have to jump off screen and come back for things to again become visible this is because there is no refresh rate coded into it.

Add that and your problem will be solved.