Page 3 of 4
Re: Lua Editor
Posted: Mon Oct 21, 2013 8:09 pm
by Jabantiz
Will work on implementing this, can always update later to a better program like you said. The screen I posted was a quick test, still got more to do to make it useful. I did add a compile all though and tested it, came up with 10 errors across all the scripts I have so it does work and found errors I didn't know about. At the very least I need to make the compile all run on its own thread as the program freezes while it runs.
Re: Lua Editor
Posted: Mon Oct 21, 2013 9:08 pm
by Jabantiz
Committed what I have, it is not perfect but it is a start. Two new buttons for compile and compile all, no graphics for them though, compile will just check the current active lua file. Committing now as it doesn't crash, all I can do for the night, and not sure when I will be able to work on this again.
Re: Lua Editor
Posted: Wed Oct 30, 2013 11:15 pm
by Jabantiz
I have been working on the build functions over the past few days when I find the time and have made it far more useful. I added an output window like visual studio has
LuaError1.jpg
Changed the error window to a list view and you can now click on the error to open the file, if it isn't already, and place the caret on the line given by the error.
LuaError2.jpg
Both windows are hidden at the bottom by default.
Code and exe's are on tools SVN
Re: Lua Editor
Posted: Fri Nov 01, 2013 6:32 am
by John Adams
This is one sexy app, Jab. I am jealous I do not have time to build the editor I've been staring at for 2 years

Re: Lua Editor
Posted: Sun Nov 03, 2013 8:39 pm
by thefoof
Nice Jab, will check this out next time I'm writing scripts

Re: Lua Editor
Posted: Tue Nov 26, 2013 8:24 pm
by Jabantiz
Fell behind in keeping the emu keyword list updated, I really should figure out a better way then to do it manually.
New LUA functions
AddProc
AddQuestStepCraft
AddQuestStepHarvest
AddQuestStepProgressAction
AddTransportSpawn
GetItemType
GetSkill
GetSkillMaxValue
GetSkillName
GetSkillValue
HasRecipeBook
RemoveProc
SetSkillMaxValue
SetSkillValue
SpawnMove
I also updated the auto generated files adding in the new functions the server will call
New functions for items
equipped
proc
unequipped
New functions for spells
proc
I left "precast" out of the spell script as it will not be commonly used and requires a return value.
I believe this brings the editor up to current with server functionality, updated files on tools svn
Re: Lua Editor
Posted: Wed Nov 27, 2013 8:29 am
by John Adams
I really need to try this tool. It looks amazing. I just get so wrapped up in hammering out spell scripts I forget it's there

Re: Lua Editor
Posted: Sat Dec 14, 2013 1:30 am
by Jabantiz
Updated the EQ2Emu keyword list again and added the following
IsEpic
ProcDamage
BreatheUnderwater
BlurVision
SetVision
IsHeroic
LastSpellAttackHit
Resurrect
GetItemCount
SetItemCount
GetItemSkillReq
SetSpeedMultiplier
GetWardAmountLeft
SetIllusion
ResetIllusion
Re: Lua Editor
Posted: Tue Dec 17, 2013 3:10 pm
by Jabantiz
Changed autocomplete around a bit, now all keywords, both lua and emu, will be in auto complete, this includes lua functions that weren't before like the "math" functions. Also fixed an issue where auto complete was staying open after there were no more matches.
Also updated EQ2Emu keywords with the following
IsBehind
IsFlanking
AddThreatTransfer
RemoveThreatTransfer
Re: Lua Editor
Posted: Thu Apr 03, 2014 4:09 pm
by Jabantiz
Updated EQ2Emu keywords with the new lua functions
AddImmunitySpell
AddSpawnSpellBonus
CancelSpell
CheckRaceType
CopySpawnAppearance
CureByControlEffect
CureByType
GetRaceBaseType
GetRaceType
GetSpellTriggerCount
RemoveImmunitySpell
RemoveInvis
RemoveStealth
RemoveTriggerFromSpell
SetSpellSnareValue
SetSpellTriggerCount
StartHeroicOpportunity
Re: Lua Editor
Posted: Sun Apr 27, 2014 10:34 pm
by Jabantiz
Updated EQ2Emu keywords with some details for a couple functions so the tool tip feature will be useful on them. Also added a function I had missed
AddSpellTimer
Re: Lua Editor
Posted: Fri Jun 27, 2014 2:41 pm
by Jabantiz
Few small updates, changed the default back ground color for keywords to transparent, also generated scripts (File->New->Script) will now add the date and author name automatically
LuaEditorHeading.jpg
If a name is not set it will be the old "<author-name>", you can set your name in settings (View->Settings)
LuaEditorSettings.jpg
Re: Lua Editor
Posted: Sat Jul 12, 2014 6:23 pm
by Jabantiz
Few changes, mainly new and missing lua commands
Jabantiz wrote:
Added: New LUA commands GetQuestFlags, SetQuestFlags
Added: Missing LUA commands SetQuestFeatherColor, SetQuestRepeatable
Fixed: Background color selections are now properly set
Fixed: Unterminated strings will now be the same fore/back color as strings
I did finally figure out why when typing a string out it didn't match the string color settings until you finished, special settings for unterminated strings, changed them to match the string settings.
Re: Lua Editor
Posted: Sun May 31, 2015 5:31 pm
by Jabantiz
Fixed a bug that was preventing the editor from starting if you had already set up the script folder and then moved the folder to another location. Thanks Cynnar for finding this.
Re: Lua Editor
Posted: Wed Jul 08, 2015 11:59 pm
by Jabantiz
Updated EQ2Emu keywords with the new lua functions
GetQuestCompleteCount
GetServerVariable
SetServerVariable