I've been messing around with Lua scripting for a while now, I feel i have a solid understanding of the language, But i keep seeing how limited it can get with emulation. I also hear complains about how it lags servers, if you have too many scripts.
So I'm curious wheres the best place to start learning C++, And what differs between Aspire / Arcemu / Mangos C++ when scripting?
Also, I'm not a "It doesn't matter how it works, it just does" type of learner. (People who apply concepts they don't understand to a problem and still solve it).
Thanks.
Edit: I know I'm kind of getting ahead of myself, But for my first project I'd like to make a pvp token system to this extent(Theoretical sloppy Lua script);
Code:function OnPlayerKill(player) if (player:isInGroup() == true) then tblGroup = player:GetGroup() for i, v in pairs(tblGroup) do if (v:IsPvpFlagged() == true) then if (v:GetClass() == HealingClass) then if (v:HasSpell(xxx) then) -- xxx = Corresponding Healing classes resto/holy/disc 41 point talent if (v:GetDistance(player) <= 40yards) then v:AddItem(pvptoken) end end end end end else player:AddItem(pvptoken) end end
How would i go about getting the players in the group?