ShaDoOoW wrote...
OK I see, however Im not sure what to do now - the performancy is really problem, the default scripts causes huge cross-server lags in the situation #1, my scripts made it a little better but still not perfect. ...
Sorry I have not been following this thread that much. Mainly because I have not had the time to test and fulsh out my Idea. If you have the time however you may want to test it out.
The Original Idea that I did not fully explaine with Fester pots original script is still valid. That was to use the ResistSell function. Where It would have worked with his script. It will take even more testion with your AoE's to make sure every thing is flushed out right.
I know you are now going to say that ResistSpell(),GetSpellId(), GetSpellSaveDC(), GetCasterLevel(), and so on; do not work outside of the SpellCastEvent. So to me the solution is to just place the script back inside of the Spell.
In Festers case he was trying to cast a fake spell that the player had to have, then reducing the spell usages, and then doing the calculations outside of the spell event. For him it would have been better to cast Real spell and create a spell hook that would re-run the script he was running inside the spellevent. Of cource the spell hook would also stop the SpellScript from running. Yes, you will also need to place a filter in the script/function to make sure that the script only tries to cast the splee to place it back into the Spellevent one time.
Festers script would have nt been to hard to get to work that way. After all we had full contorl of the action que for the in his script.
I do not currently have enought time to test out the Idea with the AOE's It should work there are just more thing to take into concideration. Like who is going to cast the spell to place it back into the spell event. If the PC who cast the spell to bengin with is no longer even log in, he sure can not do it. even if he was does the bInstant switch in actionCastSpell bypass the action que. would be nice if it did, Yea I really don have the time to flush it out right now.
Hopefully that give you enough information if you wanted to try and work out the kinks.
Modifié par Lightfoot8, 03 décembre 2011 - 03:57 .