-- /\/\ __ _ _ __ __ _ ___ / _\ ___ _ __(_)_ __ | |_ -- / \ / _` | '_ \ / _` |/ _ \\ \ / __| '__| | '_ \| __| -- / /\/\ \ (_| | | | | (_| | (_) |\ \ (__| | | | |_) | |_ -- \/ \/\__,_|_| |_|\__, |\___/\__/\___|_| |_| .__/ \__| -- |___/ |_| -- A WHOLE NEW WORLD -- MangoScript - Bringing a whole new world to MaNGOS ItemProto_TestScript = Mango.Scripts.Create('item_prot_lua'); ItemProto_TestScript:ForceLUA(); -- Don't use the CPP version if valid -- Define spells & yells ItemProto_TestScript.Spell1 = 27571; --ItemProto_TestScript.Spell2 = ???????; --ItemProto_TestScript.Spell3 = ???????; --ItemProto_TestScript.Spell4 = ???????; ItemProto_TestScript.Yell1 = "OMFG IM USING THE SCRIPTED ITEM PROTOTYPE... in LUA!"; --ItemProto_TestScript.Yell2 = ???????; --ItemProto_TestScript.Yell3 = ???????; --ItemProto_TestScript.Yell4 = ???????; function ItemProto_TestScript_OnClick(_Player, LUA) Player:DoCast(_Player,ItemProto_TestScript.Spell1); Player:DoSay(ItemProto_TestScript.Yell1,0); return true; end -- Link the AI to the different scripts -- Note: Only the ones who use the Mango.Scripts method of scripting can use TEST_Threat_AI --ItemProto_TestScript:Register('item_prot_lua');