sahisahi Member Feb 11, 2018 #1 So it is possible to make a player move to a random direction (and make the character uncontrollable ) for few seconds? like fear spells from many mmorpgs. Last edited: Feb 11, 2018
So it is possible to make a player move to a random direction (and make the character uncontrollable ) for few seconds? like fear spells from many mmorpgs.
zerodowned Moderator Feb 22, 2018 #2 you could try using the SlideAway ability: https://github.com/ServUO/ServUO/blob/master/Scripts/Abilities/Abilities.cs#L1094
you could try using the SlideAway ability: https://github.com/ServUO/ServUO/blob/master/Scripts/Abilities/Abilities.cs#L1094
OP sahisahi Member Feb 22, 2018 #3 Thank you so much will take a look at it Im using runuo 2.2, not sure if i can even use that ''ability'' is it possible to call that SlideTimer when a player gets affected by an spell? or call the Slide target from an item? I added to some spell: Code: new = SlideTimer(this).Start(); and it gives me an error: CS1031: Line 233: Type expected Last edited: Feb 22, 2018
Thank you so much will take a look at it Im using runuo 2.2, not sure if i can even use that ''ability'' is it possible to call that SlideTimer when a player gets affected by an spell? or call the Slide target from an item? I added to some spell: Code: new = SlideTimer(this).Start(); and it gives me an error: CS1031: Line 233: Type expected
zerodowned Moderator Feb 22, 2018 #4 you would use it like this: Spoiler: Code Mobile target = from.Combatant as Mobile; if (target == null || CanUse(from, target)) return; SlideAway(target, from.Location, (dist > 12) ? 12 : dist); SlideAway(Mobile target, Point3D point, int dist)
you would use it like this: Spoiler: Code Mobile target = from.Combatant as Mobile; if (target == null || CanUse(from, target)) return; SlideAway(target, from.Location, (dist > 12) ? 12 : dist); SlideAway(Mobile target, Point3D point, int dist)
OP sahisahi Member Feb 22, 2018 #5 Wooow ,i added it to Cure spell just to testing, and it actually pushes the player away :O Very cool