Hello!
I spawned a mob in T2A map,when he moves world.Broadcast is generated well,but only can see the broadcast if im in T2A map with the mob,if ill go Felucca,or Trammel,or other map,the broadcast is not visible,why?Here the code im using:
Added this:
Then the code:
I spawned a mob in T2A map,when he moves world.Broadcast is generated well,but only can see the broadcast if im in T2A map with the mob,if ill go Felucca,or Trammel,or other map,the broadcast is not visible,why?Here the code im using:
Added this:
C#:
private DateTime LastUse;/////Added to get the world broadcast
private DateTime LastUseTwo;/////Added to get the world broadcast
public virtual TimeSpan Delay{ get{ return TimeSpan.FromMinutes( 1 ); } }/////Added to get the world broadcast
public virtual TimeSpan DoubleDelay{ get{ return TimeSpan.FromMinutes( 1 ); } }/////Added to get the world broadcast
Then the code:
C#:
protected override bool OnMove(Direction d)
{
if ( LastUseTwo + DoubleDelay > DateTime.Now )
{
return true;
}
else
{
World.Broadcast( 1590, true, "Agho'r is now walking around T2A map(Felucca),are you ready to find him?..." );
LastUseTwo = DateTime.Now;
}
return base.OnMove(d);
}