91
ScriptUO Application / Re: Returning player
« Last post by HellFish on July 21, 2023, 11:46:54 AM »Did you have any luck?
Heh there actually should have been a cast function in there. You are the first person to point out it's missing/broken. I'll add it in if I ever do an update. Right now there seems to be no interest, so no reason too. Your fix should work fine, may need to add a slight delay after Orion.Cast since my cast function adds the delays based on fcr, etc.Thank you for your answer. You are right, must be delay because script activate Whirwind attack very fast. And also tried to activate this attack with busido abilities but it no possible. So modification in progress. If you can give me some advices i will be appreciate. Thank you in advance.
function cast(spell, target){
var fcr = (6 - Player.FCR()) / 4 * 1000 + 250;
Orion.CancelWaitTarget();
if(Orion.HaveTarget())
Orion.CancelTarget();
if(Player.Frozen())
return;
if(target)
Orion.CastTarget(spell, target);
else
Orion.Cast(spell);
Orion.Wait(500);
while(Player.Frozen() && !Player.Paralyzed())
Orion.Wait(10);
Orion.Wait(fcr);
}
Heh there actually should have been a cast function in there. You are the first person to point out it's missing/broken. I'll add it in if I ever do an update. Right now there seems to be no interest, so no reason too. Your fix should work fine, may need to add a slight delay after Orion.Cast since my cast function adds the delays based on fcr, etc.Thank you for your answer. You are right, must be delay because script activate Whirwind attack very fast. And also tried to activate this attack with busido abilities but it no possible. So modification in progress. If you can give me some advices i will be appreciate. Thank you in advance.