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?
Reign of Kings King title for claimed throne
Discussion in 'Plugin Requests' started by Andrew D, Jun 11, 2015.
-
Id like this for a different reason, Like member after their first visit, but new or something along that line for very first visit.
-
@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.
-
Thanks, Mughisi!!
-
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.... -
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.
-
[DOUBLEPOST=1434756513][/DOUBLEPOST]
Code:void CodeHatch.Thrones.AncientThrone.AncientThroneCaptureHorn.OnCapture(Player player); { PrintToChat(player.DisplayName + " has claimed the Throne!"); }
Last edited by a moderator: Jun 20, 2015 -
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. -
Whats about "OnAncientThroneCapture(AncientThroneCaptureEvent theEvent)"?
or others I found:
Action<player> OnCaptureBegin
Action<player> OnCaptureCancel
Action<player> OnCaptureComplete
Action<player> OnCaptureEnd -
Action<player> OnCaptureBegin
Action<player> OnCaptureComplete
These seem the most useful of that list. ;-) -