Setting phases

Hi!

I have a lot of problem with phases.I have set npc-s to phase 1,2,4,8.

But the player can’T go those phases.

I can set them to phase 2 with a spell,but I have tried about 10 phase spells,and none of them set the player to the correct,instead the spells sometimes add the value of the correct phase to the current phase (for example: current 2,spell should set the phase to 8 → the phase is 10)

So that’s why I stopped using spells,because only 1 is working,and I need 4 phases.

Spell set phase from 1 to 2

I wanted to set the player from phase 2 to 4 with a smart_script.

But I used a lot of actions,but they won’T work.

Event = when mob gets in combat

[SIZE=12px]And a lot of actions whose names can be related to phases somehow,but they don’t work.I also tried them with a lot of target types.[/SIZE]

[SIZE=12px]The only one working is:[/SIZE]

[COLOR=rgb(51,51,51)]SMART_ACTION_SET_INGAME_PHASE_MASK: 44

[COLOR=rgb(51,51,51)]But I can set every target type and etc.: But the target is always the mob,so this will set the mob’s phase

[COLOR=rgb(51,51,51)]Pls help me.

Solved the smart_scripts problem with Lua.

Update: but the spell_area problem is still on.How can I make this:

When the player logges out,or leaves the area → Set Phase to 1

Enter the area ->Set Phase to 4

How can I make that?DB or Lua?

Simply use spell_area to apply a phase(aura) on players entering a specific area.

http://collab.kpsn.org/display/tc/spell_area