Domanda Problemino teleporter a tempo +1

Stato
Discussione chiusa ad ulteriori risposte.

Trasu

Utente Gold
10 Aprile 2010
385
135
22
314
Ciao a tutti quando modifico il teleporter a tempo della metin2 project e poi lo metto in game nn funziona T.T +1 a ki mi trova l'errore
PHP:
quest tel begin
        state start begin
            when login or levelup with pc . get_level ( ) >= 90 begin
            set_state(inizio)
        end
    end
        state inizio begin
            when 9012.chat."Ascaria" begin
            if 3600 < get_global_time() - pc.getqf("rip") then
            say_title("Teleporter:")
            say("Ciao...")
            say("Vuoi andare in Ascaria?")
            say_reward("Per viaggiare dovrai pagare 10000000 yang")
            say_reward("e consegnarmi un item speciale:")
            say_item_vnum(8000)
            s = select("Si","No")
                if s == 2 then
                else
                say_title("Teleporter:")
                say("Vuoi continuare?")
                say_reward("Potrai rimanere nella mappa solo")
                say_reward("per 30 minuti.")
                say("Ti verrano tolti tutti i papiri luogo!")
                a = select("Si","No")
                    if a == 2 then
                    else
                        if pc . gold >= 10000000 and pc . count_item ( 279 ) >= 1 then
                        pc . changegold ( - 10000000 )
                        pc . remove_item ( 8000 , 1 )
                        a = pc . count_item ( 22010 )
                        pc . remove_item ( 22010 , a )
                        set_state (map)
                        pc . warp ( 8130500 , 70000 )
                    end
                end
            end
            else
            say ( "Devi Aspettare 1 Ora Prima[ENTER]Di Poter Essere Teleportato Di Nuovo" )
          end
        end
    end
        state map begin
            when login with pc . get_map_index ( ) == 1 begin
            timer ("map",1800)
        end
            when map.timer begin
            say ( "Tempo Scaduto." )
            set_state (start)
            wait()
               if pc . get_empire ( ) == 1 then
               pc . warp ( 469300 , 944200 )
               elseif pc . get_empire ( ) == 2 then
               pc . warp ( 63200 , 166500 )
               elseif pc . get_empire ( ) == 3 then
               pc . warp ( 969300 , 278400 )
           end
        end
    end
end
 
Prova Così
PHP:
quest teleporter begin
        state start begin
            when login or levelup with pc . get_level ( ) >= 85 begin
            set_state(inizio)
        end
    end
        state inizio begin
            when 9012.chat."Ascaria" begin
            if 3600 < get_global_time() - pc.getqf("rip") then
            say_title("Teleporter:")
            say("Ciao...")
            say("Vuoi andare in Ascaria?")
            say_reward("Per viaggiare dovrai pagare 10000000 yang")
            say_reward("e consegnarmi un item speciale:")
            say_item_vnum(8000)
            s = select("Si","No")
                if s == 2 then
                else
                say_title("Teleporter:")
                say("Vuoi continuare?")
                say_reward("Potrai rimanere nella mappa solo")
                say_reward("per 30 minuti.")
                say("Ti verrano tolti tutti i papiri luogo!")
                a = select("Si","No")
                    if a == 2 then
                    else
                        if pc . gold >= 10000000 and pc . count_item ( 279 ) >= 1 then
                        pc . changegold ( - 10000000 )
                        pc . remove_item ( 8000 , 1 )
                        a = pc . count_item ( 22010 )
                        pc . remove_item ( 22010 , a )
                        set_state (map)
                        pc . warp ( 8130500 , 70000 )
                    end
                end
            end
            else
            say ( "Devi Aspettare 1 Ora Prima[ENTER]Di Poter Essere Teleportato Di Nuovo" )
          end
        end
    end
        state map begin
            when login with pc . get_map_index ( ) == 1 begin
            timer ("map",1800)
        end
            when map.timer begin
            say ( "Tempo Scaduto." )
            set_state (start)
            wait()
               if pc . get_empire ( ) == 1 then
               pc . warp ( 469300 , 944200 )
               elseif pc . get_empire ( ) == 2 then
               pc . warp ( 63200 , 166500 )
               elseif pc . get_empire ( ) == 3 then
               pc . warp ( 969300 , 278400 )
            set_state("__COMPLETE__")
   end
    end
    state __COMPLETE__ begin
end
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom