Jump to content

Sober

Inactive Member
  • Posts

    217
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Sober

  1. quest event1 begin
        state start begin
            when login with (pc.get_map_index()==103 and pc.getqf("timepass2")<=get_time()) or (pc.get_level()<95 and pc.get_map_index()==103) begin
                if pc.get_level()<95 then
                    chat("You need to be at least level 95, you will be warped")
                end
                if pc.get_empire()==1 then 
                    pc.warp(3812585, 3799162)
                elseif pc.get_empire()==2 then
                    pc.warp(3812585, 3799162)
                else
                    pc.warp(3812585, 3799162)
                end
            end
            when 20090.chat."Akapo Map (LV.95)" begin
                if pc.getqf("timepass2") >= get_time() then 
                    say("You can't teleport now please wait.")
                elseif pc.get_level()<95 then
                    say("You need to be at least level 95")
                else
                    pc.setqf("timepass2",get_time()+24*60*60)
                    say("You can go now, have fun.")
                    pc.warp(45600,45600)
                end
            end
        end
    end
    
  2. quest event1 begin
        state start begin
            when login with (pc.get_map_index()==103 and pc.getqf("timepass2")<=get_time()) or (pc.get_level()<95 and pc.get_map_index()==103) begin
                if pc.get_level()<95 then
                    chat("You need to be at least level 95, you will be warped")
                else if pc.get_level()>=95 then
                    chat("Your time period has ended.")
                    chat("Back later!")
                end
                if pc.get_empire()==1 then 
                    pc.warp(3812585, 3799162)
                elseif pc.get_empire()==2 then
                    pc.warp(3812585, 3799162)
                else
                    pc.warp(3812585, 3799162)
                end
            end
            end
            when 20090.chat."Akapo Map (LV.95)" begin
                if pc.getqf("timepass2") >= get_time() then 
                    say("You can't teleport now please wait.")
                elseif pc.get_level()<95 then
                    say("You need to be at least level 95")
                else
                    pc.setqf("timepass2",24*60*60)
                    say("You can go now, have fun.")
                    pc.warp(45600,45600)
                end
            end
        end
    end
    

    Okay this will work normaly i think :D sorry as i told you i don't have a running server atm

    • Love 1
  3. quest event1 begin
        state start begin
            when login with (pc.get_map_index()==103 and pc.getqf("timepass2")>=get_time()) or (pc.get_level()<95 and pc.get_map_index()==103) begin
                if pc.get_level()<95 then
    				chat("You need to be at least level 95, you will be warped")
    			else if pc.get_level()>=95 then
    				chat("Your time period has ended.")
    				chat("Back later!")
    			end
                if pc.get_empire()==1 then 
                    pc.warp(3812585, 3799162)
                elseif pc.get_empire()==2 then
                    pc.warp(3812585, 3799162)
                else
                    pc.warp(3812585, 3799162)
                end
            end
            end
            when 20090.chat."Akapo Map (LV.95)" begin
                if pc.getqf("timepass2") >= get_time() then 
                    say("You can't teleport now please wait.")
    			elseif pc.get_level()<95 then
    				say("You need to be at least level 95")
                else 
                    pc.setqf("timepass2",24*60*60)
                    say("You can go now, have fun.")
                    pc.warp(45600,45600)
                end
            end
        end
    end
    

    Okay try this out too, also i think that your cords should be (45600,45600) not (456,456)

  4. quest test begin
    	state start begin
    		when login with (pc.get_map_index()==INDEX and pc.getqf("time_pass")<=get_time()) or pc.get_level()<95 begin
    			if pc.get_level()<95 then
                                    chat("You need to be at least level 95, you will be warped")
                            else if pc.get_level()>=95 then
                                    chat("Your trial period has ended")
                            end
    			if pc.get_empire()==1 then 
    				pc.warp(cords,cords)
    			elseif pc.get_empire()==2 then
    				pc.warp(cords,cords)
    			else
    				pc.warp(cords,cords)
    			end
    		end
    		when npcvnum.chat."I want to teleport for one hour" begin
    			if pc.getqf("timepass") <= get_time() then 
    				say("You can't teleport now please wait.")
                            elseif pc.get_level()<95 then
                                    say("You need to be at least level 95")
    			else	
    				pc.setqf("timepass",24*60*60)
    				say("You can go have fun")
    				pc.warp(cords,cords)
    			end
    		end
    	end
    end
    

    I haven't got a test server atm so i can't tell you if it will work, replace the cords and map index, and try it :)

    • Metin2 Dev 1
    • Love 1
  5.  

    1011 23:47:09011 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item2.mse) Error
    1011 23:47:09011 :: CInstanceBase::RegisterEffect(eEftType=270, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item2.mse, isCache=1) - Error
    1011 23:47:09013 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item4.mse) Error
    1011 23:47:09013 :: CInstanceBase::RegisterEffect(eEftType=272, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item4.mse, isCache=1) - Error
    1011 23:47:21681 :: Traceback (most recent call last):
     
    1011 23:47:21681 ::   File "networkModule.py", line 245, in SetGamePhase
     
    1011 23:47:21682 ::   File "system.py", line 130, in __pack_import
     
    1011 23:47:21682 ::   File "
    1011 23:47:21682 :: game.py
    1011 23:47:21682 :: ", line 
    1011 23:47:21682 :: 2218
    1011 23:47:21682 :: 
     
    1011 23:47:21682 ::     
    1011 23:47:21682 :: def ZetsuGiftSystem__init__(self, index):   
     
    1011 23:47:21682 ::     
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 :: ^
     
    1011 23:47:21682 :: IndentationError
    1011 23:47:21682 :: : 
    1011 23:47:21682 :: unindent does not match any outer indentation level
    1011 23:47:21682 :: 

     
    What can it be? oO

     

    rookie mistake... you have forgoten TABS

    • Love 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.