Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.86 KB | None | 0 0
  1. -----------------------------------------------------------------------------
  2. -- MI2_SlashAction_ClearHealthDb()
  3. --
  4. -- Clear entire contents of MobInfo and MobHealth databases.
  5. -- Ask for confirmation before performing the clear operation.
  6. --
  7. function MI2_SlashAction_ClearHealthDb()
  8.     StaticPopupDialogs["MOBINFO_CONFIRMATION"].text = MI_TXT_CLR_ALL_CONFIRM.."'"..MI2_OPTIONS["MI2_OptClearHealthDb"].help.."' ?"
  9.     StaticPopupDialogs["MOBINFO_CONFIRMATION"].OnAccept = MI2_Slash_ClearDbConfirmed
  10.     MI2_DeleteMode = "HealthDb"
  11.     local dialog = StaticPopup_Show( "MOBINFO_CONFIRMATION", "")
  12. end  -- MI2_SlashAction_ClearHealthDb()
  13.  
  14.  
  15. -----------------------------------------------------------------------------
  16. -- MI2_SlashAction_ClearPlayerDb()
  17. --
  18. -- Clear entire contents of MobInfo and MobHealth databases.
  19. -- Ask for confirmation before performing the clear operation.
  20. --
  21. function MI2_SlashAction_ClearPlayerDb()
  22.     StaticPopupDialogs["MOBINFO_CONFIRMATION"].text = MI_TXT_CLR_ALL_CONFIRM.."'"..MI2_OPTIONS["MI2_OptClearPlayerDb"].help.."' ?"
  23.     StaticPopupDialogs["MOBINFO_CONFIRMATION"].OnAccept = MI2_Slash_ClearDbConfirmed
  24.     MI2_DeleteMode = "PlayerDb"
  25.     local dialog = StaticPopup_Show( "MOBINFO_CONFIRMATION", "")
  26. end  -- MI2_SlashAction_ClearPlayerDb()
  27.  
  28.  
  29. -----------------------------------------------------------------------------
  30. -- MI2_SlashAction_ClearMobDb()
  31. --
  32. -- Clear entire contents of MobInfo and MobHealth databases.
  33. -- Ask for confirmation before performing the clear operation.
  34. --
  35. function MI2_SlashAction_ClearMobDb()
  36.     StaticPopupDialogs["MOBINFO_CONFIRMATION"].text = MI_TXT_CLR_ALL_CONFIRM.."'"..MI2_OPTIONS["MI2_OptClearMobDb"].help.."' ?"
  37.     StaticPopupDialogs["MOBINFO_CONFIRMATION"].OnAccept = MI2_Slash_ClearDbConfirmed
  38.     MI2_DeleteMode = "MobDb"
  39.     local dialog = StaticPopup_Show( "MOBINFO_CONFIRMATION", "")
  40. end  -- MI2_SlashAction_ClearMobDb()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement