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.
thanks...
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?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
thanks...