private void Respawn()
    {
      //Remove any damage over time effects
      DoT.Clear();
      CachedDots = new DoT[0];
      Statuses.Clear();
      CachedStatuses = new Status[0];
      CombatTimer = 0;
      Â
      var cls = ClassBase.Get(ClassId);
      //=====Â
      var MAP_X = 0;
     Â
      if (cls != null)
      {
        //Search death common event trigger
        //StartCommonEventsWithTrigger(CommonEventTrigger.OnRespawn);      Â
        //Warp(cls.SpawnMapId, (byte) cls.SpawnX, (byte) cls.SpawnY, (byte) cls.SpawnDir);
        Warp(LastMapEntered, 0, 0, 0);
      }
      else
      {
        Warp(Guid.Empty, 0, 0, 0);
      }
      PacketSender.SendEntityDataToProximity(this);
      //Search death common event trigger
      StartCommonEventsWithTrigger(CommonEventTrigger.OnRespawn);
    }
Â
How to get player's x & y position?? i want make a respawn in dead map with money. thank you!
Question
nvh
private void Respawn()
    {
      //Remove any damage over time effects
      DoT.Clear();
      CachedDots = new DoT[0];
      Statuses.Clear();
      CachedStatuses = new Status[0];
      CombatTimer = 0;
      Â
      var cls = ClassBase.Get(ClassId);
      //=====Â
      var MAP_X = 0;
     Â
      if (cls != null)
      {
        //Search death common event trigger
        //StartCommonEventsWithTrigger(CommonEventTrigger.OnRespawn);      Â
        //Warp(cls.SpawnMapId, (byte) cls.SpawnX, (byte) cls.SpawnY, (byte) cls.SpawnDir);
        Warp(LastMapEntered, 0, 0, 0);
      }
      else
      {
        Warp(Guid.Empty, 0, 0, 0);
      }
      PacketSender.SendEntityDataToProximity(this);
      //Search death common event trigger
      StartCommonEventsWithTrigger(CommonEventTrigger.OnRespawn);
    }
Â
How to get player's x & y position?? i want make a respawn in dead map with money. thank you!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now