Advertisement
sorvani

potimeb/player.lua

Jan 3rd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. function UpdateLockoutGlobal(global_name,global_value,global_duration)
  2. -- not active pending implmentation of a eq.get_players_in_instance
  3.  
  4.     local player_list = eq.get_players_in_instance(instance_id);
  5.     -- Lua loop basics:
  6.     -- k = key which is generally the current index of the array
  7.     -- v = value for the current key, in this example it would be the character ID
  8.     for k,v in pairs(player_list) do
  9.         eq.target_global(global_name, global_value, global_duration, 0,v, 0);
  10.     end
  11.  
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement