Reign of Kings King title for claimed throne

Discussion in 'Plugin Requests' started by Andrew D, Jun 11, 2015.

  1. I KNOW this will be complicated, and probably out of this world impossible... but!

    Would it be possible to add a function that automatically gives someone a [KING] title in front of their name when they claim the throne?
     
  2. Id like this for a different reason, Like member after their first visit, but new or something along that line for very first visit.
     
  3. @Andrew D currently it would be doable but the workaround to achieve this is pretty much checking for a king each x minutes/seconds. Ideally we'd add a hook that triggers when the throne is claimed and at that point it can be done quite efficient. I'll try to have a look this weekend on getting some more hooks in for RoK including one for this.
     
  4. Thanks, Mughisi!!
     
  5. I have already written some code for updatig a player's display name with a title.
    I'll code something more concrete for this soon.

    Alternatively if you need something specific / want the code, let me know.
    [DOUBLEPOST=1434463629][/DOUBLEPOST]And yes, Karma is in the worx.... :p
     
  6. I don't know how you do it, Scorpyon. Someday I might have to learn code so I can attempt to do what you do. :p
     
  7. I think there is one though, or at least the possibility in the events
    [DOUBLEPOST=1434756513][/DOUBLEPOST]
    CodeHatch.Thrones.AncientThrone.AncientThroneCaptureHorn.OnCapture(Player)

    Code:
    void CodeHatch.Thrones.AncientThrone.AncientThroneCaptureHorn.OnCapture(Player player);
    {
        PrintToChat(player.DisplayName + " has claimed the Throne!");
    }
    Or you could just check if a player is King when he writes.
     
    Last edited by a moderator: Jun 20, 2015
  8. Did you even try running that...
    There is a difference between a method being triggered on the server and a hook. A hook is something we inject in a method that is then called when that method runs.
     
  9. No I didn't test it. It was just a Theory
    Whats about "OnAncientThroneCapture(AncientThroneCaptureEvent theEvent)"?
    or others I found:
    Action<player> OnCaptureBegin
    Action<player> OnCaptureCancel
    Action<player> OnCaptureComplete
    Action<player> OnCaptureEnd
     
  10. Action<player> OnCaptureBegin
    Action<player> OnCaptureComplete

    These seem the most useful of that list. ;-)
     
  11. yeah think that too