#region GWNPCs
case 6700:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What do you want to do?"));
GC.AddSend(Packets.NPCLink("Heal the pole", 1));
GC.AddSend(Packets.NPCLink("Nothing", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.MyGuild != null && GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader || GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.DeputyMgr))
{
GC.AddSend(Packets.NPCSay("How much of your guild fund are you going to waste?"));
GC.AddSend(Packets.NPCLink2("Heal", 2));
GC.AddSend(Packets.NPCLink("I changed my mind.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You are not authorized to do that."));
GC.AddSend(Packets.NPCLink("Ahh okay.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{
if (GC.MyChar.MyGuild != null && GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader || GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.DeputyMgr))
{
uint Amount = 0;
try
{
Amount = uint.Parse(ReadString(Data));
}
catch { }
if (Amount > 0 && Amount <= GC.MyChar.MyGuild.Fund)
{
uint ToHeal = Features.GuildWars.ThePole.MaxHP - Features.GuildWars.ThePole.CurHP;
if (Amount > ToHeal / 10) Amount = ToHeal / 10;
GC.MyChar.MyGuild.Fund -= Amount;
Features.GuildWars.ThePole.CurHP += Amount * 10;
Features.GuildWars.ThePole.ReSpawn();
}
}
}
break;
}
case 6701:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What do you want to do?"));
GC.AddSend(Packets.NPCLink("Open/close the gate.", 1));
GC.AddSend(Packets.NPCLink("RepairGate.", 2));
GC.AddSend(Packets.NPCLink("GetIn.", 3));
GC.AddSend(Packets.NPCLink("Nothing", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (Features.GuildWars.LastWinner == GC.MyChar.MyGuild)
{
Features.GuildWars.TheLeftGate.Opened = !Features.GuildWars.TheLeftGate.Opened;
Features.GuildWars.TheLeftGate.ReSpawn();
}
else
{
GC.AddSend(Packets.NPCSay("You are not authorized to to that."));
GC.AddSend(Packets.NPCLink("Ok.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{
if (Features.GuildWars.LastWinner == GC.MyChar.MyGuild && (Features.GuildWars.TheLeftGate.Opened = true))
{
Features.GuildWars.TheLeftGate.CurHP = Features.GuildWars.TheLeftGate.MaxHP;
Features.GuildWars.TheLeftGate.Opened = false;
Features.GuildWars.TheLeftGate.ReSpawn() ;
}
else
{
GC.AddSend(Packets.NPCSay("You are not authorized to to that."));
GC.AddSend(Packets.NPCLink("Ok.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
else if ( Control == 3)
{
if (Features.GuildWars.LastWinner == GC.MyChar.MyGuild )
{
GC.MyChar.Teleport(1038, 160, 193);
}
else
{
GC.AddSend(Packets.NPCSay("You are not authorized to to that."));
GC.AddSend(Packets.NPCLink("Ok.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
case 6702:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What do you want to do?"));
GC.AddSend(Packets.NPCLink("Open/close the gate.", 1));
GC.AddSend(Packets.NPCLink("RepairGate", 2));
GC.AddSend(Packets.NPCLink("GetIn", 3));
GC.AddSend(Packets.NPCLink("Nothing", 255));
GC.AddSend(Packets.NPCSetFace(0));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (Features.GuildWars.LastWinner == GC.MyChar.MyGuild)
{
Features.GuildWars.TheRightGate.Opened = !Features.GuildWars.TheRightGate.Opened;
Features.GuildWars.TheRightGate.ReSpawn();
}
else
{
GC.AddSend(Packets.NPCSay("You are not authorized to to that."));
GC.AddSend(Packets.NPCLink("Ok.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{
if (Features.GuildWars.LastWinner == GC.MyChar.MyGuild && (Features.GuildWars.TheRightGate.Opened = true))
{
Features.GuildWars.TheRightGate.CurHP = Features.GuildWars.TheRightGate.MaxHP;
Features.GuildWars.TheRightGate.Opened = false;
Features.GuildWars.TheRightGate.ReSpawn();
}
else
{
GC.AddSend(Packets.NPCSay("You are not authorized to to that."));
GC.AddSend(Packets.NPCLink("Ok.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 3)
{
if (Features.GuildWars.LastWinner == GC.MyChar.MyGuild)
{
GC.MyChar.Teleport(1038, 206, 173);
}
else
{
GC.AddSend(Packets.NPCSay("You are not authorized to to that."));
GC.AddSend(Packets.NPCLink("Ok.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
The repair is still bugles because we need to have the gate opened .. i will tra later to make if gate hp = 0 to have 2 states
open and destryed
no in source the gate is wen gate is gate become opened .. and this is not ok .. should be opened and a second state as destryed because if np check if is open wen u click repair with gate opened the gate will close and get repaired
Is Still a nice feature a had some fun on my test server
All Thx go to all on this forum idk i just leach and try to modify i dont remember what source i get!
ya it works, only thing is the Bomb item is unusable ATM so anyone attacking the gate would be standing there forever to get the gate open.
I just used my PM char with max everything to break thru the gate then took the pole...that way once i get the server up and running for real, all i have to do is go open the gates for the first GW
public struct Gate
{
public Location Loc;
public uint MaxHP;
public uint CurHP;
public uint EntityID;
public uint Mesh;
[COLOR="Red"] public uint Broken;[/COLOR]
I don't think he should be moderator.
He is very rude.
I don't wana be mode i wana just be friendly .. and help what i learn .. this is just the begining
next relase will be TFB skill adjust .. is attaking to fast but that will ne a new topic .. or real dmg as real server based on rb
I gave you a thanks coz i never found that issue
I might use your code in my server after a bit tweaking ( i dont like If - else i use cases i think its faster but meh)
Perfect World Bot PWI-Prophet Bot Recoded 05/03/2023 - PW Hacks, Bots, Cheats, Exploits - 1641 Replies -------------------------------------------------- ---------------------------
-Thanks to everyone that has made this possible.
------------------------------------------------- ----------------------------
New Release on September 25, 2010 Official 3.1 Release
recoded blizzbot 1.5 for rogues /v1.5 -update! 07/10/2006 - World of Warcraft - 48 Replies ich hoffe damit wären die nervtötenden bugs behoben, hf jungs ;)
recoded blizzbot for rouges /v1.5 - by langweiler
- better performance
- fast binds with macros ( no &"%§&%"§ key typing )
- starting bot when you are dead
- automaticly walking if you are in the near of ANY corpse wp
- changed registry entries / less detectable
- never changes window titles / less detectable