Issuing a badge upon logging in (PlusEMU Boon Edit)

Roper

Ancient Member
Jul 4, 2010
569
216
I've got a piece of code, thought I knew where to put it but not got a clue really. Not been involved in retros since uberEmulator was released.

if (!Session.GetHabbo().GetBadgeComponent().HasBadge("Z63"))
Session.GetHabbo().GetBadgeComponent().GiveBadge("Z63", true, Session);

Basically it checks if the user has the badge Z63 and if not, it gives the badge.

I had a quick look around, and was going to place it under the welcome message as I figured It'd be there that it would issue the badge but having no luck.

Any help is appreciated.

Thanks,
/r/
 
May 1, 2015
467
152
I've got a piece of code, thought I knew where to put it but not got a clue really. Not been involved in retros since uberEmulator was released.

if (!Session.GetHabbo().GetBadgeComponent().HasBadge("Z63"))
Session.GetHabbo().GetBadgeComponent().GiveBadge("Z63", true, Session);

Basically it checks if the user has the badge Z63 and if not, it gives the badge.

I had a quick look around, and was going to place it under the welcome message as I figured It'd be there that it would issue the badge but having no luck.

Any help is appreciated.

Thanks,
/r/
Try putting it in gameclient.cs
 

Users who are viewing this thread

Top