Player revived

09/02/2011 23:21 Fovi#1
How do make a quest like this:

when "player_revived" begin
if pc.get_map_index() == 114 then
warp_to_village();
end
end

But in dont now how to write that "revived".
I mean: someone klick "Start here" when he was dead and then im want to move him to the city.
09/03/2011 04:22 Benhero#2
try so...
PHP Code:
quest restart_city begin
    state start begin
        when login 
or levelup or kill with pc.get_map_index() == 114 begin
            timer
("dead_timer"2)
        
end
        when dead_timer
.timer begin
            
if pc.get_hp() <= and pc.get_map_inex() == 114 then
                warp_to_village
()
            else
                
timer("dead_timer_two"2)
            
end
        end
        when dead_timer_two
.timer begin
            
if pc.get_hp() <= and pc.get_map_inex() == 114 then
                warp_to_village
()
            else
                
timer("dead_timer"2)
            
end
        end
    end
end 
Mfg. benhero
09/03/2011 06:49 Fovi#3
I changed a couple of things and now its work ! Thenks.
One more question, how to restore HP and SP in player. Like GM command "/r" but in Quest

@up

Nobody ?
09/03/2011 20:57 Benhero#4
No. Thats not go..

Sry

Mfg. Benhero