![]() |
Spell and Run - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Spell and Run (/Thread-Spell-and-Run) |
Spell and Run - Mimosa - 08-29-2018 11:53 PM Hello Guys, How are you? I'm trying to make my pet use spell and walk at the same time. Someone know how to do that? The script i'm using to make the spell and the go function is down there, but when i use magic and try to make the pet walk the magic is cancelled. PHP Code: [SPEECH fala_galinha] Thanks for the support. RE: Spell and Run - Coruja - 09-03-2018 09:16 AM I never played with "scripted" NPC actions because usually it's not a good idea replace the internal AI actions with any kind of scripted behavior (it will mess the AI action). But anyway, I think it's not possible make the NPC walk and cast spells at the same time because to make it walk you need to set ACTP and start action 074 ("runningto") and to make it cast spells you must set ACTPRV, ACTARG1 and start action 25 ("skill_magery"), so one action will override the other. Even if you call ATTACK function it will probably also override the previous action long story short: NPC AI can't handle 2 actions at the same time |