Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::LUA

Quests::LUA Section regarding LUA scripts, help, questions, answers

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-22-2015, 12:28 PM
silvergrin46
Fire Beetle
 
Join Date: Jan 2015
Posts: 9
Default Need help with global/spells/spellid.lua script

Hello and thanks in advance for any advice you may have to offer. I am developing a rof2 server and attempting to only use lua scripts. I am in the process of converting the perl files I used on my previous server to lua.

These perl files worked fine on the previous server and were stored in quests/spells/spellid.pl. The perl files I am converting used either sub Event_Spell_Effect_Client or Sub Event_Spell_Effect_NPC and I modified them to work based on the existing perl files I examined in the same folder. Examples of these are the Halloween event spells used in toxxulia such as throw pie and retributive fire. I will be happy to post examples of these perl scripts I am trying to convert when I get back to my computer.

I need an example of how these types of scripts are written in lua so that I may have basically a dummy spell cast with a charisma modifier or just blank if possible and trigger this lua script to perform other actions such as casting another spell or to depop a mob if conditions are met.

The only information I found so far was to use function Event_Spell_Effect in the lua script but I'm not sure how to word everything properly. The normal spells on my server activate correctly as do all of my other lua scripts for player and npcs. I am storing these lua spell files on my rof2 server in globals/spells btw.
Reply With Quote
 


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 06:19 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3