Page 1 of 1

Help me plx i'm noob

Posted: Wed Jul 05, 2006 6:55 am
by L.M.K
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

Posted: Wed Jul 05, 2006 10:17 pm
by L.M.K
there is someone??

maybe i'm had a bad expression of my problem....

i want to cast unfreeze!!!! Someone help me

i'm going crazy!!

Posted: Thu Jul 06, 2006 2:07 am
by Yukiko
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.

Posted: Thu Jul 06, 2006 3:25 am
by L.M.K
i understand...
but if i download the 96 version i can use the modificated file of the 95 pol?l

Posted: Thu Jul 06, 2006 10:39 am
by Yukiko
The first thing to do is look through the SpellRestrictions include file.

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);
Just change the 'me.frozen' line as follows:

Code: Select all

  if (umana > GetMana(me))
//    me.frozen :=1;
    PerformAction(me,ANIM_CAST_DIR);
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*

Posted: Fri Jul 07, 2006 2:13 am
by L.M.K
it doesn't work....

but maybe i wrong comething...

i don't know the meaning of 'recompile'

i save the sript as you tell me to do and i start my pol but my player are always fronze while casting...

Plx help me

Posted: Fri Jul 07, 2006 3:11 am
by Tritan
You have to run ecompile in the scripts directory after you make any changes to your .src files for the change to go in.

Posted: Mon Jul 10, 2006 10:00 am
by L.M.K
an other question...
i want to set that, if i go in another pixel, i cannot cast because i lost my concentration and so i could cast only in the pixel where the target appear...
could you help me?

Posted: Mon Jul 10, 2006 11:33 am
by CWO
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

Posted: Tue Jul 11, 2006 3:51 am
by L.M.K
i had to excange this line in same line?

what is the file?