Author Topic: Make a fake minigame?  (Read 571 times)

I have recently made an add-on, which is conflicting with a few ID's.

Now I used to use this which has an obvious flaw:

Code: [Select]
Slayer.Minigames.addMinigame(%blid);

But would it be right to use this?:

Code: [Select]
Slayer.Minigames.addMinigame(findClientByBL_ID(%blid));

Yes, if I recall correctly you have to get the client's ID rather than the blid of the client for creating minigames within Slayer.

%client = findClientByBL_ID(%blid);
Slayer.Minigames.addMinigame(%client);

I don't know how slayer works, but if that's the function to create a fake minigame then I suppose so.