hey guys what im trying to achieve is to get the server to send a sendmsgtoall
when characters enter the pkcity map displaying there name and guild, which i achieved but then found that if a char isnt in a guild the msg doesnt activate.
Quote:
#region PKCity NPC
case 1616:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you wish to enter the PKCity?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("No.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.MyChar.Teleport(1507, 080, 111);
Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " from " + GC.MyChar.MyGuild.GuildName + " has entered the PKCity!", 2011, 0);
}
else
{
if (GC.MyChar.MyGuild != null)
{
Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " has entered the PKCity!", 2011, 0);
}
}
break;
}
#endregion
i tried to change what the msg said if a char wasnt in a guild but it doesnt work. can some1 please tell me what im missing or doing wrong?
thanks...
hey guys what im trying to achieve is to get the server to send a sendmsgtoall
when characters enter the pkcity map displaying there name and guild, which i achieved but then found that if a char isnt in a guild the msg doesnt activate.
i tried to change what the msg said if a char wasnt in a guild but it doesnt work. can some1 please tell me what im missing or doing wrong?
thanks...
Code:
#region PKCity NPC
case 1616:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you wish to enter the PKCity?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("No.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1 && GC.MyChar.Guild != null)
{
GC.MyChar.Teleport(1507, 080, 111);
Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " has entered the PKCity!", 2011, 0);
}
else
{
GC.MyChar.Teleport(1507, 080, 111);
Game.World.SendMsgToAll(GC.MyChar.Name, GC.MyChar.Name + " from " + GC.MyChar.MyGuild.GuildName + " has entered the PKCity!", 2011, 0);
}
break;
}
#endregion
〖Perfect World 〗Chaos World Private Server 07/01/2009 - Private Server Advertising - 2 Replies http://www.chaos2world.com/en/1.jpg
http://www.chaos2world.com/en/2.jpg
http://www.chaos2world.com/en/3.jpg
http://www.chaos2world.com/en/4.jpg
http://www.chaos2world.com/en/5.jpg
http://www.chaos2world.com/en/6.jpg
http://www.chaos2world.com/en/7.jpg
〖Perfect World 〗Chaos World Private Server
Chaos World a long time open, permanent free!!!
1.Free 10Million Skill Point,1Million Gold,Free Manufacture(Level 1 can Manufacture),Free New Player Equipment With Weapon 1Set,Free Reveal All...
〖Perfect World 〗Chaos World Private Server 05/24/2009 - Private Server Advertising - 2 Replies Chaos World a long time open, permanent free!!!
1.Free 10Million Skill Point,1Million Gold,Free Manufacture(Level 1 can Manufacture),Free New Player Equipment With Weapon 1Set,Free Reveal All Teleportation Point in Perfect World,Free All Skill,Free Expand All Slot of Inventory,Free Expand All Slot of Bank Storage,Free Expand All Slot of Pet's,Free Cultivation To Nirvana(Please Don't Take Any Cultivation And Mission,Direct Take Demon or Sage Mission Start From Level 89).
2.Experience Set to...