GuildWar Jump Gate

11/04/2016 14:40 arneljan#1
Any one Know how to solve Guildwar jump gate i got to problem i cant fixe player are jumpin in the gate any one can guild me how to fixe this.
11/04/2016 15:34 pro4never#2
Check start position
Check end position


If they start outside the castle and end up inside - dont let the jump happen.

Now you just need to allow for going through gates with is pretty much the same sort of checks.
11/04/2016 23:40 teroareboss1#3
when you read map, you have someting like this [Only registered and activated users can see links. Click Here To Register...]

1.you can compare old floor type with new floor castle
2.you can check if the gate is open(like csv3)..if gate is open you can check distance (gatex,gatey ,playerx, playery) < 18
11/05/2016 01:11 Spirited#4
You can do this for the general case as well. Data maps store cell elevation.
[Only registered and activated users can see links. Click Here To Register...]
11/05/2016 14:11 arneljan#5
Is This The Right Code?

Quote:
public bool IsThisLeftGate(int X, int Y)
{
if (GuildWar.RightGate == null)
return false;
if (MapID == 1038)
{
if ((X == 223 || X == 222) && (Y >= 175 && Y <= 185))
{
if (GuildWar.RightGate.Mesh / 10 == 27)
{
return true;
}
}
}
return false;
}
public bool IsThisRightGate(int X, int Y)
{
if (GuildWar.LeftGate == null)
return false;
if (MapID == 1038)
{
if ((Y == 210 || Y == 209) && (X >= 154 && X <= 166))
{
if (GuildWar.LeftGate.Mesh / 10 == 24)
{
return true;
}
}
}
return false;
}
public bool ThroughGate(int X, int Y)
{
return IsThisLeftGate(X, Y) || IsThisRightGate(X, Y);
}
public void SetLocation(ushort MapID, ushort X, ushort Y)
{
if (EntityFlag == EntityFlag.Player)
{
this.X = X;
this.Y = Y;
this.MapID = MapID;
}
}
11/05/2016 16:23 Spirited#6
No. I'm not whoever that is.
Also, editing your posts to remove your question is a bit dumb. Don't do that.
To answer your new question, that's just spawn checks, so no.
11/05/2016 16:39 arneljan#7
Quote:
Originally Posted by Spirited View Post
No. I'm not whoever that is.
Also, editing your posts to remove your question is a bit dumb. Don't do that.
To answer your new question, that's just spawn checks, so no.
oohhhh... im sorry any way your Fang right?
11/05/2016 16:55 fre3guy#8
I have The Problem Too For That how should we make it player wont jump through gate
11/05/2016 19:56 Spirited#9
Quote:
Originally Posted by arneljan View Post
oohhhh... im sorry any way your Fang right?
Yah.
11/05/2016 23:07 Super Aids#10
Quote:
Originally Posted by fre3guy View Post
I have The Problem Too For That how should we make it player wont jump through gate
Tell them gently "no".
11/06/2016 01:56 InsomniacPro#11
Quote:
Originally Posted by Super Aids View Post
Tell them gently "no".
But some like it rough.
11/06/2016 02:23 arneljan#12
Any Way How Should i make a this code to make them wont jump in gate

Quote:
public bool IsThisLeftGate(int X, int Y)
{
if (GuildWar.RightGate == null)
return false;
if (MapID == 1038)
{
if ((X == 223 || X == 222) && (Y >= 175 && Y <= 185))
{
if (GuildWar.RightGate.Mesh / 10 == 27)
{
return true;
}
}
}
return false;
}
public bool IsThisRightGate(int X, int Y)
{
if (GuildWar.LeftGate == null)
return false;
if (MapID == 1038)
{
if ((Y == 210 || Y == 209) && (X >= 154 && X <= 166))
{
if (GuildWar.LeftGate.Mesh / 10 == 24)
{
return true;
}
}
}
return false;
}
public bool ThroughGate(int X, int Y)
{
return IsThisLeftGate(X, Y) || IsThisRightGate(X, Y);
}
public void SetLocation(ushort MapID, ushort X, ushort Y)
{
if (EntityFlag == EntityFlag.Player)
{
this.X = X;
this.Y = Y;
this.MapID = MapID;
}
}
11/06/2016 04:51 Spirited#13
Quote:
Originally Posted by arneljan View Post
Any Way How Should i make a this code to make them wont jump in gate
What do you think that code does?
11/06/2016 05:11 arneljan#14
Quote:
Originally Posted by Spirited View Post
What do you think that code does?

I dont know what does it do? Any way i dont know how to code for this kind of bug i haven't encounter this kind of bug this the only thing i dont know how to fixe this is my 1st time encounter. will if your have a good heart and help me out how to fixe ill will forever thank you for help me and god bless you from helping me this.
11/06/2016 09:41 Best Coder 2014#15
Quote:
Originally Posted by arneljan View Post
I dont know what does it do? Any way i dont know how to code for this kind of bug i haven't encounter this kind of bug this the only thing i dont know how to fixe this is my 1st time encounter. will if your have a good heart and help me out how to fixe ill will forever thank you for help me and god bless you from helping me this.
No. Begging for code isn't allowed here. Fuck off.