"there was a error creating an instance of blah blah"
I've seen this problem a bit when i've searched it ,although from many years ago, and most of the help suggests that it was spelt incorrect or script outdated etc.
If i put the brain in the actual core folder /AI , i can create it no problem... odd? . So i look in /mob command and the method for "brain" , from what i can see, only looks at GameServer scripts , it doesnt actually look in gameserverscripts!
I tried adding something similar to the method from /mob create
- Code: Select all
foreach (Assembly script in ScriptMgr.GameServerScripts) { try { client.Out.SendDebugMessage(script.FullName); brain = (ABrain)script.CreateInstance(brainType, false);
but it still fails to create unfortuantly.... the only way i've got them to work from outside of the core folder was to imbed them into a custome GameNPC script and SetOwnBrain from inside there...