|
26 | 26 | ]] |
27 | 27 | CHAR_genericCommands = { |
28 | 28 | [GENERICS_parametersGet] = function() |
29 | | - return ma_charactertarget:GetText() |
| 29 | + return CHAR_parameterInput:GetText() |
30 | 30 | end, |
| 31 | + [CHAR_reviveCommand] = { |
| 32 | + [GENERICS_isTargetCheckNeeded] = true, |
| 33 | + [GENERICS_command] = ".revive", |
| 34 | + [GENERICS_message] = "logCHAR_revive" |
| 35 | + }, |
| 36 | + [CHAR_saveCommand] = { |
| 37 | + [GENERICS_isTargetCheckNeeded] = true, |
| 38 | + [GENERICS_command] = ".save", |
| 39 | + [GENERICS_message] = "logCHAR_save" |
| 40 | + }, |
| 41 | + [CHAR_kickCommand] = { |
| 42 | + [GENERICS_isTargetCheckNeeded] = true, |
| 43 | + [GENERICS_command] = ".kick", |
| 44 | + [GENERICS_message] = "logCHAR_kick" |
| 45 | + }, |
| 46 | + [CHAR_cooldownCommand] = { |
| 47 | + [GENERICS_isTargetCheckNeeded] = true, |
| 48 | + [GENERICS_command] = ".cooldown", |
| 49 | + [GENERICS_message] = "logCHAR_cooldown" |
| 50 | + }, |
| 51 | + [CHAR_GUIDCommand] = { |
| 52 | + [GENERICS_isTargetCheckNeeded] = true, |
| 53 | + [GENERICS_command] = ".guid", |
| 54 | + [GENERICS_message] = "logCHAR_guid" |
| 55 | + }, |
| 56 | + [CHAR_playerInfoCommand] = { |
| 57 | + [GENERICS_isTargetCheckNeeded] = true, |
| 58 | + [GENERICS_command] = ".pinfo", |
| 59 | + [GENERICS_message] = "logCHAR_playerInfo" |
| 60 | + }, |
| 61 | + [CHAR_distanceCommand] = { |
| 62 | + [GENERICS_isTargetCheckNeeded] = true, |
| 63 | + [GENERICS_command] = ".distance", |
| 64 | + [GENERICS_message] = "logCHAR_distance" |
| 65 | + }, |
| 66 | + [CHAR_dieCommand] = { |
| 67 | + [GENERICS_isTargetCheckNeeded] = true, |
| 68 | + [GENERICS_command] = ".die", |
| 69 | + [GENERICS_message] = "logCHAR_die" |
| 70 | + }, |
| 71 | + [CHAR_recallCommand] = { |
| 72 | + [GENERICS_isTargetCheckNeeded] = true, |
| 73 | + [GENERICS_command] = ".recall", |
| 74 | + [GENERICS_message] = "logCHAR_recall" |
| 75 | + }, |
| 76 | + [CHAR_morphCommand] = { |
| 77 | + [GENERICS_isParametersNeeded] = true, |
| 78 | + [GENERICS_isTargetCheckNeeded] = true, |
| 79 | + [GENERICS_command] = ".morph target ", |
| 80 | + [GENERICS_message] = "logCHAR_morph" |
| 81 | + }, |
| 82 | + [CHAR_morphResetCommand] = { |
| 83 | + [GENERICS_isTargetCheckNeeded] = true, |
| 84 | + [GENERICS_command] = ".morph reset", |
| 85 | + [GENERICS_message] = "logCHAR_morphReset" |
| 86 | + }, |
| 87 | + [CHAR_gpsCommand] = { |
| 88 | + [GENERICS_isTargetCheckNeeded] = true, |
| 89 | + [GENERICS_command] = ".gps", |
| 90 | + [GENERICS_message] = "logCHAR_gps" |
| 91 | + }, |
| 92 | + [CHAR_bindSightCommand] = { |
| 93 | + [GENERICS_isTargetCheckNeeded] = true, |
| 94 | + [GENERICS_command] = ".bindsight", |
| 95 | + [GENERICS_message] = "logCHAR_bindSight" |
| 96 | + }, |
| 97 | + [CHAR_unbindSightCommand] = { |
| 98 | + [GENERICS_command] = ".unbindsight", |
| 99 | + [GENERICS_message] = "logCHAR_unBindSight" |
| 100 | + } |
31 | 101 | } |
| 102 | + |
32 | 103 | function InitModelFrame() |
33 | 104 | ma_modelframe:SetScript("OnUpdate", function() MangAdminModelOnUpdate(arg1) end) |
34 | 105 | ma_modelframe.rotation = 0.61; |
@@ -90,6 +161,9 @@ function ModelChanged() |
90 | 161 | ma_modelframe:RefreshUnit() |
91 | 162 | end |
92 | 163 |
|
| 164 | + |
| 165 | +-- Delete |
| 166 | + |
93 | 167 | function RevivePlayer() |
94 | 168 | if MangAdmin:Selection("player") or MangAdmin:Selection("self") or MangAdmin:Selection("none") then |
95 | 169 | local player = UnitName("target") or UnitName("player") |
@@ -175,6 +249,8 @@ function Demorph() |
175 | 249 | MangAdmin:LogAction("Demorphed player "..player..".") |
176 | 250 | end |
177 | 251 |
|
| 252 | +-- |
| 253 | + |
178 | 254 | function ToggleMapsChar(value) |
179 | 255 | MangAdmin:ChatMsg(".cheat explore "..value) |
180 | 256 | if value == 1 then |
|
0 commit comments