محمد ياسر
2019-04-25, 11:20 AM
في NPCS.CS
ابحث عن
case 516074:
وتغير الnpc الى عندك كله بده
#region Gates
case 516074:
{
if (client.Guild != null)
{
if (client.Guild.PoleKeeper)
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Select the option you want to pursue.");
if (client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.GuildLea der || client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.DeputyLe ader)
{
dialog.Option("Open gate.", 1);
dialog.Option("Close gate.", 2);
}
dialog.Option("Get inside.", 3);
dialog.Option("Nothing.", 255);
dialog.Send();
break;
case 1:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh = (ushort)(250 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh % 10);
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 2:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh = (ushort)(240 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh % 10);
if (GuildWar.LeftGate.Hitpoints < 100)
GuildWar.LeftGate.Hitpoints = GuildWar.LeftGate.MaxHitpoints;
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 3:
{
client.Entity.Teleport(1038, 162, 198);
break;
}
}
}
}
break;
}
case 516075:
{
if (client.Guild != null)
{
if (client.Guild.PoleKeeper)
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Select the option you want to pursue.");
if (client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.GuildLea der || client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.DeputyLe ader)
{
dialog.Option("Open gate.", 1);
dialog.Option("Close gate.", 2);
}
dialog.Option("Get inside.", 3);
dialog.Option("Nothing.", 255);
dialog.Send();
break;
case 1:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh = (ushort)(280 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh % 10);
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 2:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh = (ushort)(270 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh % 10);
if (GuildWar.RightGate.Hitpoints < 100)
GuildWar.RightGate.Hitpoints = GuildWar.RightGate.MaxHitpoints;
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 3:
{
client.Entity.Teleport(1038, 210, 177);
break;
}
}
}
}
break;
}
#endregion
وافتح قاعده البيانات وخش على التابل ده sobnpcs
سميه ده الاى دى ده 516074
LeftGate
وسمى ده 516075
RightGate
ابحث عن
case 516074:
وتغير الnpc الى عندك كله بده
#region Gates
case 516074:
{
if (client.Guild != null)
{
if (client.Guild.PoleKeeper)
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Select the option you want to pursue.");
if (client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.GuildLea der || client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.DeputyLe ader)
{
dialog.Option("Open gate.", 1);
dialog.Option("Close gate.", 2);
}
dialog.Option("Get inside.", 3);
dialog.Option("Nothing.", 255);
dialog.Send();
break;
case 1:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh = (ushort)(250 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh % 10);
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 2:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh = (ushort)(240 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh % 10);
if (GuildWar.LeftGate.Hitpoints < 100)
GuildWar.LeftGate.Hitpoints = GuildWar.LeftGate.MaxHitpoints;
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.LeftGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 3:
{
client.Entity.Teleport(1038, 162, 198);
break;
}
}
}
}
break;
}
case 516075:
{
if (client.Guild != null)
{
if (client.Guild.PoleKeeper)
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Select the option you want to pursue.");
if (client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.GuildLea der || client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.DeputyLe ader)
{
dialog.Option("Open gate.", 1);
dialog.Option("Close gate.", 2);
}
dialog.Option("Get inside.", 3);
dialog.Option("Nothing.", 255);
dialog.Send();
break;
case 1:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh = (ushort)(280 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh % 10);
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 2:
{
PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh = (ushort)(270 + PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh % 10);
if (GuildWar.RightGate.Hitpoints < 100)
GuildWar.RightGate.Hitpoints = GuildWar.RightGate.MaxHitpoints;
Update upd = new Update(true);
upd.UID = PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.UID;
upd.Append(Update.Mesh, PhoenixProject.Game.ConquerStructures.Society.Guil dWar.RightGate.Mesh);
client.SendScreen(upd, true);
break;
}
case 3:
{
client.Entity.Teleport(1038, 210, 177);
break;
}
}
}
}
break;
}
#endregion
وافتح قاعده البيانات وخش على التابل ده sobnpcs
سميه ده الاى دى ده 516074
LeftGate
وسمى ده 516075
RightGate