Jump to content

Quests Sound Effects System


Recommended Posts

  • Former Staff

M2 Download Center

Hidden Content

    Give reaction to this post to see the hidden content.
( Internal )

Hello guys this is my first usefull topic in this forum

 

1#  First download this -> 

Hidden Content

    Give reaction to this post to see the hidden content.

 

now, unpack your sound.epk/eix

after that go to game.py in root and find this

			"mall"					: self.__InGameShop_Show,

and under that write this

			#quest_songs
			"qsucc"					: self.succ_quest,
			"qfail"					: self.fail_quest,
			"qrecive"				: self.recive_quest,
			#END_OF QUEST_SONG

 

BE SURE ABOUT THE TABS

 

now go down in game.py and write this

and write this

	#quest_sound by FlyGun
	#recive_QUEST
	def recive_quest(self):
		snd.PlaySound("sound/ui/quest_receive.wav")
	#END_OF recive_QUEST
	
	#SUCC_QUEST
	def succ_quest(self):
		snd.PlaySound("sound/ui/quest_success.wav")
	#END_OF succ_QUEST
	
	#FAIL_QUEST
	def fail_quest(self):
		snd.PlaySound("sound/ui/quest_fail.wav")
	#END_OF fail_QUEST
	#END OF quest_sound by FlyGun

 

this quest is for test

quest sound_test begin
	state start begin
		when login with pc.is_gm() begin
			send_letter("sound test")
			cmdchat("qrecive")
		end
		when info or button begin
			local a = select ("quest succ", "quest fail")
			if a == 1 then
				cmdchat("qsucc")
			else
				cmdchat("qfail")
			end
		end
	end
end
        
  • Love 10
Link to comment
  • 6 months later...
  • Former Staff

Or Just Edit The Fuction :

 
send_letter
buttom - info

and add the affect for it .

this will work on just  sending  :)

success and fail ??  :P

 

btw the mp3 sound are already from metin2 ... but nobody used them 

Link to comment
  • 1 month later...
  • VIP

 

Or Just Edit The Fuction :

 
send_letter
buttom - info

and add the affect for it .

this will work on just  sending  :)

success and fail ??  :P

 

btw the mp3 sound are already from metin2 ... but nobody used them 

 

 

 

in metin2 quests ( mission ) dont have fail , just success

 

If you're going to do something, then do it right.

Link to comment
  • VIP

 

I want to know about this :

 

send_letter
buttom - info
 
Otherwise, at every connection I got lot of "receive_quest" sound... :x

 

Yes , For This i Think Ymir Didn't Implanted it

If you're going to do something, then do it right.

Link to comment
  • Former Staff

actually the quests may fail ... :P

i mean (for example) the quest is to kill a spacific number of mobs in spacific time if you didn't succc you  fail :) so it's a fail

Link to comment

I give you idea guys, just create a new state for yours quests, for ex.

 

state start begin

-- play sound

set_state(next)

end

 

state next begin

-- begin quest text etc

end

 

Now it works only once and don't spam with music, otherwise may be better option but this is the easiest and not bad.  ^_^

  • Love 1
Link to comment
  • Former Staff

good idea .... btw i didn't create any quest i just made a test quest just for testing .... actually it's a noob How To :/ but people after reading this topic will easy know how to play sounds with quest :) (i mean those who doesn't know  )

  • Love 1
Link to comment
  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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