| Blockland Forums > Modification Help |
| Quick Outfit |
| << < (2/3) > >> |
| Nexus:
--- Quote from: super flamimninja on August 10, 2011, 11:05:02 PM ---hmm I wonder if you spam them if the server has rainbow player kick on if it boots you :D --- End quote --- of course |
| Placid:
--- Code: ---function av_fav1() { AvatarGui::clickFav(AvatarGui, 1); clientCmdUpdatePrefs(); } if(!$avatarfavbinds) { $remapDivision[$remapCount] = "Avatar Favorites"; $remapName[$remapCount] = "Favorite 1"; $remapCmd[$remapCount] = "av_fav1"; $remapCount++; $avatarfavbinds = "1"; } --- End code --- copy and paste the first part and the part with all the $remap__ things, replace 1 with 2, 3, 4, 5, 6, 7, 8, 9, 0 i know there's almost definitely a way to do this more efficiently but i don't know how, it's the first thing that came to mind. |
| xcruso:
--- Quote from: Placid on August 11, 2011, 03:02:15 PM --- --- Code: ---function av_fav1() { AvatarGui::clickFav(AvatarGui, 1); clientCmdUpdatePrefs(); } if(!$avatarfavbinds) { $remapDivision[$remapCount] = "Avatar Favorites"; $remapName[$remapCount] = "Favorite 1"; $remapCmd[$remapCount] = "av_fav1"; $remapCount++; $avatarfavbinds = "1"; } --- End code --- copy and paste the first part and the part with all the $remap__ things, replace 1 with 2, 3, 4, 5, 6, 7, 8, 9, 0 i know there's almost definitely a way to do this more efficiently but i don't know how, it's the first thing that came to mind. --- End quote --- Nice. |
| MegaScientifical:
--- Code: ---$AC::S::P = -1; $AC::S::N = -1; function logAvatarSaves() { deleteVariables("$AC::S::*"); $AC::S::N = -1; for(%i = -1; %i <= 9; %i++) if(isFile("config/client/AvatarFavorites/" @ %i @ ".cs")) $AC::S::L[$AC::S::N++] = %i; } logAvatarSaves(); function cycleAvatars(%val) { if(%val && !$AC::S::LC) { exec("config/client/AvatarFavorites/" @ $AC::S::L[$AC::S::P++] @ ".cs"); if($AC::S::P >= $AC::S::N) $AC::S::P = 0; //transferOldAvatarPrefs(); clientCmdUpdatePrefs(); $AC::S::LC = schedule(1150 + ServerConnection.getPing(), 0, eval, "$AC::S::LC = 0;"); } } if(!$AC::Bind) { if(isFunction(AddBind)) AddBind("Action", "Cycle Avatars", "cycleAvatars"); else { $remapDivision[$remapCount] = "Avatar Cycler"; $remapName[$remapCount] = "Cycle Avatars"; $remapCmd[$remapCount] = "cycleAvatars"; $remapCount++; } $AC::Bind = true; } --- End code --- My most current version of Avatar Cycler. Now to watch as people criticize and improve upon it. |
| Nexus:
aaaaaaaaaa placid That will cause the user to be banned You forgot the argument in the keybinded function again. We don't want it to run again when released. |
| Navigation |
| Message Index |
| Next page |
| Previous page |