Advertisement
sorvani

eq.get_players_in_instance

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