Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Plugins & Mods

Quests::Plugins & Mods Completed plugins for public use as well as modifications.

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 05-04-2016, 02:16 PM
daerath
Sarnak
 
Join Date: Jan 2011
Location: Northern VA
Posts: 91
Default Lua equivalent for global_player

I'm not sure if you can have both a global_player.pl and global_player.lua, but if you're using the .lua version here is the equivalent code that goes in event_enter_zone in global_player.lua.

Code:
-- Persistent Nimbus Plugin
function event_enter_zone(e)
  nlist = eq.get_entity_list();
  if (npc_list ~= nil) then
    for NPC in nlist.entries do
      local n = 0;
      if (NPC.GetEntityVariable("PersistentNimbus_" .. n) > 0) then
        while NPC.GetEntityVariable("PersistentNimbus_" .. n) > 0 do
          NPC.SpellEffect(NPC.GetEntityVariable("PersistentNimbus_" .. n), 500, 0, 1, 3000, 1, e);
          n = n + 1;
        end
      end
    end
  end
end
-- End Persistent Nimbus Plugin
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:38 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3