case OfflineTGRequest.OnConfirmation:
{
if (client.Entity.MapID != 6003) { // 6003 is botjail if im right you can basically use this idea though
client.Entity.PreviousMapID = client.Entity.MapID;
client.Entity.PrevX = client.Entity.X;
client.Entity.PrevY = client.Entity.Y;
client.Entity.MapID = 601;
client.Entity.X = 64;
client.Entity.Y = 56;
client.OfflineTGEnterTime = DateTime.Now;
client.Disconnect();
break;
}
}
If they're getting to TG without speaking to (and being withing "seeing" range of the NPC that sends them there) they should not be teleported to begin with.
case OfflineTGRequest.OnConfirmation:
{
if (client.Entity.MapID != 6003) { // 6003 is botjail if im right you can basically use this idea though
client.Entity.PreviousMapID = client.Entity.MapID;
client.Entity.PrevX = client.Entity.X;
client.Entity.PrevY = client.Entity.Y;
client.Entity.MapID = 601;
client.Entity.X = 64;
client.Entity.Y = 56;
client.OfflineTGEnterTime = DateTime.Now;
client.Disconnect();
break;
}
}
dude ur code is less efficient Cuz he might die In GW Map which is 1038 and then when he become ghost he use it .. so Lets Say it would be Like that
Code:
case OfflineTGRequest.OnConfirmation:
{
if (client.Entity.MapID != 6003 || client.Entity.MapID != 1038) { // 6003 is botjail if im right you can basically use this idea though
client.Entity.PreviousMapID = client.Entity.MapID;
client.Entity.PrevX = client.Entity.X;
client.Entity.PrevY = client.Entity.Y;
client.Entity.MapID = 601;
client.Entity.X = 64;
client.Entity.Y = 56;
client.OfflineTGEnterTime = DateTime.Now;
client.Disconnect();
break;
}
else
{
client.send(new NpcReply(6, " You Cant Use Offline Training While u r in GuildWar Maps ") { OptionID = 87 });
}
}
dude ur code is less efficient Cuz he might die In GW Map which is 1038 and then when he become ghost he use it .. so Lets Say it would be Like that
Code:
case OfflineTGRequest.OnConfirmation:
{
if (client.Entity.MapID != 6003 || client.Entity.MapID != 1038) { // 6003 is botjail if im right you can basically use this idea though
client.Entity.PreviousMapID = client.Entity.MapID;
client.Entity.PrevX = client.Entity.X;
client.Entity.PrevY = client.Entity.Y;
client.Entity.MapID = 601;
client.Entity.X = 64;
client.Entity.Y = 56;
client.OfflineTGEnterTime = DateTime.Now;
client.Disconnect();
break;
}
else
{
client.send(new NpcReply(6, " You Cant Use Offline Training While u r in GuildWar Maps ") { OptionID = 87 });
}
}
Because it would be less efficient, What the **** does having the wrong id have to do with efficiency? Nubs these days.
You're using OR (||) instead of AND (&&) for this check.
Anywho, simpler way?
Code:
List<int> NonTGMaps = new List<int>() { 1038, 6000, 6001, 6002, 6003 }; // Add more here
// ...
if (!NonTGMaps.Contains(client.Entity.MapID))
{
// Teleport code here
}
else
{
// Tell them they can't go to TG from here..
}
or something like that.
Edit: Also, why are you disconnecting them? If you actually send the ConfirmLocation and Map packets, you don't have to do that.
Edit2: Ah, "offline" TG. Silly newer patches.
You're using OR (||) instead of AND (&&) for this check.
Anywho, simpler way?
Code:
List<int> NonTGMaps = new List<int>() { 1038, 6000, 6001, 6002, 6003 }; // Add more here
// ...
if (!NonTGMaps.Contains(client.Entity.MapID))
{
// Teleport code here
}
else
{
// Tell them they can't go to TG from here..
}
or something like that.
Edit: Also, why are you disconnecting them? If you actually send the ConfirmLocation and Map packets, you don't have to do that.
Edit2: Ah, "offline" TG. Silly newer patches.
oh You r Right About that ..btw i liked Using List Methods Awesome
You're using OR (||) instead of AND (&&) for this check.
Anywho, simpler way?
Code:
List<int> NonTGMaps = new List<int>() { 1038, 6000, 6001, 6002, 6003 }; // Add more here
// ...
if (!NonTGMaps.Contains(client.Entity.MapID))
{
// Teleport code here
}
else
{
// Tell them they can't go to TG from here..
}
or something like that.
Edit: Also, why are you disconnecting them? If you actually send the ConfirmLocation and Map packets, you don't have to do that.
Edit2: Ah, "offline" TG. Silly newer patches.
some help with 5517 trinity source 05/25/2012 - CO2 Private Server - 8 Replies how can i make the autoinvite window don't show in a map
and i have problem with that npc
the npc upgrade the items above 140
#region Weapon Master
case 7050:
{
switch (npcRequest.OptionID)
{
case 0:
{
a question about trinity 5517 source 09/18/2011 - CO2 Private Server - 3 Replies Sometimes ,i can't saw another player when the player didn't jump didn't walk ,only sit in a coord or player away!!!
but the another player can saw me ....
where the error occurred ???
any one fix there ?
source Link:source and database.rar
trinity old source. Maps 07/17/2011 - CO2 Private Server - 1 Replies i wanna convert conquer online dmaps to .map to work on trinity old source :confused:
any one have idea ?