Page 1 of 1
activeate spells 1000000-2009999
Posted: Mon Apr 22, 2019 3:52 am
by Ememjr
can somebody(JA or Cynnar) please activate all spells with spell ids listed above with a script
there are close to 3000 of them and it will take forever by hand
these are all for AA, and it deadlocks the server when you try to examine or hover over a non active spell
thanks
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 2:52 pm
by Cynnar
Done
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 3:11 pm
by Ememjr
omg thanks so much, now tell me this how did you figure out the script lol
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 3:20 pm
by Cynnar
The SQL script? I used the UPDATE spells SET is_active = 1 WHERE id between 1000000 and 2009999;
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 3:26 pm
by Ememjr
sweet i am proud of you that you figured that out
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 3:28 pm
by Cynnar
You do know that three are no spell scripts for these yet, right?
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 3:44 pm
by Ememjr
yes but a missing spell script does not crash the server
or does it?
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 3:46 pm
by Ememjr
did you reboot after they were loaded?
if not ill reboot realquick since the server is deadlock already
Re: activeate spells 1000000-2009999
Posted: Thu Apr 25, 2019 3:50 pm
by Cynnar
Did not reboot the server. Spells can be reloaded with /reload spells command. Of course since the server I'd deadlocked a reboot is required.
Dunno if the missing spell script causes a crash or not. I would not think it does.
Re: activeate spells 1000000-2009999
Posted: Fri Apr 26, 2019 6:46 pm
by John Adams
You should not Activate unfinished spells. That's the reason for the Active flag
I think the worse that will happen is if someone casts the script-less spell, the console will get an error.
I'm not even sure the code ignores is_active = 0. That was just an idea I had forever ago.