when..... begin
if...... then
When command in a if command?
I think thats not right?
if...... then
PHP Code:
quest arvore_maligna begin
state start begin
when login begin
if pc.get_map_index() == 181 or map_index() == 182 or map_index() == 183 then
when 5.timer begin
timer("5", 60*5)
d.notice("Os mobs serão evocados em 5minutos.")
end
when respaw begin
d.spawn_mob(2092, xx, yy)
d.spawn_mob(2207, xx, yy)
d.spawn_mob(2680, xx, yy)
d.spawn_mob(2192, xx, yy)
d.spawn_mob(5002, xx, yy)
d.spawn_mob(2093, xx, yy)
d.spawn_mob(1095, xx, yy)
d.notice("Os mobs foram evocados.")
end
end
end
end
end
I think thats not right?