hello at all!!
i'm new of this forum e i'm new of this pol ^^
i only want to now one thing, i want to know how can i walk while i'm casting because while i'm casting NPC are frozen!!! how can i unfroze while casting?
i'm italian so my english it's bad...
Someone could help me??
Thanks at all for the attention
Help me plx i'm noob
You mean you wish to be able to cast a spell and walk while you are casting? Not sure but I think you'll want to look in SpellRestrictions.inc in \pol\scripts\include. I think that is where you get frozen while casting. Could be a POL core issue though because pre 96 cores handled a lot of the spell casting stuff.
It's a pain but I am glad the devs have given us more control in the scripts for 96 and up.
It's a pain but I am glad the devs have given us more control in the scripts for 96 and up.
The first thing to do is look through the SpellRestrictions include file.
On or near line 353 you will find the following code:
Just change the 'me.frozen' line as follows:
further down you will find another 'me.frozen :=1' line. Do the same for it.
Save the file and then recompile all scripts.
I think that will allow you to walk and do the casting 'dance' at the same time
*smiles*
On or near line 353 you will find the following code:
Code: Select all
if (umana > GetMana(me))
me.frozen :=1;
PerformAction(me,ANIM_CAST_DIR);
Code: Select all
if (umana > GetMana(me))
// me.frozen :=1;
PerformAction(me,ANIM_CAST_DIR);
Save the file and then recompile all scripts.
I think that will allow you to walk and do the casting 'dance' at the same time
*smiles*
where the target appears, save their position just before and check it just after.
Code: Select all
var position := array{ caster.x, caster.y };
Target(caster);
if (caster.x != position[1] || caster.y != position[2])
SendSysMessage(caster, "You have moved and lost your concentration.");
endif