Ok soz I explain all.
ArcLua++ is the new branch of lua++ for arcemu. To make work the luas++ u need overwrite the files of arcemu original lua to compile the lua++, and apply this patch:
Code:
Index: src/arcemu-world/GameObject.h
===================================================================
--- src/arcemu-world/GameObject.h (revision 777)
+++ src/arcemu-world/GameObject.h (working copy)
@@ -180,6 +180,7 @@
//void LoadFromDB(GameObjectTemplate *t);
void DeleteFromDB();
void EventCloseDoor();
+ void EventCastSpell(uint32 guid, uint32 sp, bool triggered);
//Fishing stuff
void UseFishingNode(Player *player);
Index: src/arcemu-world/GameObject.cpp
===================================================================
--- src/arcemu-world/GameObject.cpp (revision 777)
+++ src/arcemu-world/GameObject.cpp (working copy)
@@ -144,6 +144,14 @@
SetUInt32Value( GAMEOBJECT_FLAGS, flags );
}*/
+void GameObject::EventCastSpell(uint32 guid, uint32 sp, bool triggered)
+{
+ Spell * spp = new Spell();
+ spp->Init(this,dbcSpell.LookupEntry(sp),false,NULL);
+ SpellCastTargets tars(guid);
+ spp->prepare(&tars);
+}
+
void GameObject::TrapSearchTarget()
{
Update(100);
Index: src/arcemu-world/Spell.h
===================================================================
--- src/arcemu-world/Spell.h (revision 777)
+++ src/arcemu-world/Spell.h (working copy)
@@ -1868,7 +1868,7 @@
return false;
}
-private:
+public: //was private
TargetsList m_targetUnits[3];
void SafeAddTarget(TargetsList* tgt,uint64 guid);
Is easy to patch, go to one of the 3 files in the code, search a line (example: spell.h, I search TargetsList m_targetUnits[3];, then I erase private and put public), add the line with the + at start or erase a line if have - at start
When u apply this patch only needs overwrite the normal lua with the arclua++.
If u are using compiled emu's u can't put lua++, u need compile arcemu yourself.
How to install arclua++:
================================
== WINDOWS USERS FOLLOW THESE ==
================================
Replace the file src/scripts/projects/LUAScripting2008.vcproj
(Other .vcproj will come soon!) of your ArcEmu with the one in the projects directory of our SVN and
place the LUAppArc directory from the src directory here in your ArcEmu src/scripts/src/ Folder:
src/scripts/src/LUAppArc
Then open
src/scripts/src/scripts2008.sln
with MSVC++
Thats all :-) Now recompile it (DO NOT COMPILE THE Sun++ LUAScripting Project, too!!!)
And some SVN:
Arcemu svn://arcemu.info/svn/arcemu
Lua++Arc http://svn.assembla.com/svn/LUAppArc/stable
To download files from svn needs tortoise