示例#1
0
 protected override void OnTarget(Mobile from, object targeted)
 {
     if (CanTarget(from, targeted))
     {
         from.SendMessage("You request has been sent, please wait while they reply.");
         PlayerMobile   tosend = (PlayerMobile)targeted;
         Duel_Add_Timer tmr    = new Duel_Add_Timer((PlayerMobile)from, tosend, Handeling, TeamID);
         Handeling.AddTimer = tmr;
         tosend.SendGump(new DuelSetup_AddParticipant(Handeling, TeamID, Index));
     }
     else
     {
         from.SendGump(new DuelSetup_ParticipantSetup(Handeling, TeamID));
     }
 }
 protected override void OnTarget(Mobile from, object targeted)
 {
     if (CanTarget(from, targeted))
     {
         from.SendMessage("You request has been sent, please wait while they reply.");
         PlayerMobile tosend = (PlayerMobile)targeted;
         Duel_Add_Timer tmr = new Duel_Add_Timer((PlayerMobile)from, tosend, Handeling, TeamID);
         Handeling.AddTimer = tmr;
         tosend.SendGump(new DuelSetup_AddParticipant(Handeling, TeamID, Index));
     }
     else
         from.SendGump(new DuelSetup_ParticipantSetup(Handeling, TeamID));
 }