Jump to content

Wait() doesnt work on my game :/


Go to solution Solved by ѕeмa™,

Recommended Posts

Hi, someone know why when i use "wait()" in one quest on my game doesnt work?

 

here an example:

quest bienvenida begin
	state start begin
	
		when login begin -- with pc.get_level() == 1 and pc.getqf("welcome") == 0 begin
			addimage(20, 12, "a.tga")
			say("")
			say("")
			say("")

			say("hello")
			return
		end
	end
end

this work fine

quest bienvenida begin
	state start begin
	
		when login begin -- with pc.get_level() == 1 and pc.getqf("welcome") == 0 begin
			addimage(20, 12, "a.tga")
			say("")
			say("")
			say("")

			say("hello")
			wait()
			say("hello again")
			return
		end
	end
end

Now when i click continue, the windows of quest dissapear and dont appear again, here a screen:

 

71b6278298528d313b2dbdfa5126314e.jpg

 

and here a gif:

 

9f9b5612b90f19dcbdf3a2b328f3e18b.gif

 

Here a syslog from game.

Feb 15 12:00:47.29353 :: QUEST Setting flag bienvenida.__status 0
Feb 15 12:00:47.29384 :: _raw_script : [IMAGE x;20|y;12 
Feb 15 12:00:47.29403 :: _raw_script : |src; 
Feb 15 12:00:47.29421 :: _raw_script : intro_quest.tga 
Feb 15 12:00:47.29439 :: _raw_script : ] 
Feb 15 12:00:47.29537 :: m_strScript [IMAGE x;20|y;12|src;intro_quest.tga][ENTER][ENTER][ENTER][COLOR r;1|g;0.90196078431373|b;0.72941176470588]Historia.[COLOR r;0.76862745098039|g;0.76862745098039|b;0.76862745098039][ENTER]Siglos atrás, los habitantes de Geomus vivían en paz[ENTER]y prosperidad.[ENTER]En 1975 los ancestros predijeron la llegada de un Dragón que[ENTER]destruiría Geomus y habitaría el cáos y la guerra.[ENTER]Pero nadie escuchó esas sabias palabras.[ENTER][ENTER]En el año 2000, como los ancestros predijeron, hubo un gran[ENTER]terremoto, que dividió geomus en 3 reinos.[ENTER][NEXT] size 572
SYSERR: Feb 15 12:00:47.29562 :: operator(): QUEST NOT END RUNNING on Login/Logout - bienvenida

Here a sysser from my game:

SYSERR: Feb 15 12:35:40.87653 :: operator(): QUEST NOT END RUNNING on Login/Logout - bienvenida
SYSERR: Feb 15 12:35:45.447860 :: Resume: wrong QUEST_WAIT request! : 1

Someone know how solve it?

Thanks.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

quest bienvenida begin
    state start begin
     
        when login begin -- with pc.get_level() == 1 and pc.getqf("welcome") == 0 begin
            addimage(20, 12, "a.tga")
            say("")
            say("")
            say("")
 
            say("hello")
            wait()
            say("hello again")
        end
    end
end

the problemm no is the return, i try it before go here to ask xD

Link to comment
Share on other sites

 

and like that?

quest bienvenida begin
    state start begin
      
        when login begin -- with pc.get_level() == 1 and pc.getqf("welcome") == 0 begin
            addimage(20, 12, "a.tga")
            say("")
            say("")
            say("")
  
            say("hello")
            wait()
            say("hello again")
            wait()
        end
    end
end

same error ,

but i tried this quest:

quest test begin
	state start begin
		when 101.kill begin
			say("Has matado un perro.")
			say("Ahora viene un wait")
			wait()
			say("Enhorabuena has pasado el wait.")
		end
	end
end

and work fine WTF!!!!!!!

 

why the wait() doesnt work on login? The question of the million of dolars xd

Link to comment
Share on other sites

  • Solution

1)remove this "-- with pc.get_level() == 1 and pc.getqf("welcome") == 0 begin" and yes i know that "--" is used to comment lines

2)make sure 'a.tga' image actually exists

3)remove line with 'addimage'

 

try them step by step

Thanks for try help me but, this dont work, so i go to try do an letter and try it with letter.

*EDIT: with letter work fine. SOLVED.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.