Jump to content

Frozen

Inactive Member
  • Posts

    199
  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Posts posted by Frozen

  1.  

     

     

     

    Help ? 

    e967862ab2.png

     

    Syserr is empty.

    What happens when you  start up the client?

     

    Nothing... 

     

    What version you use?

     

    40k . I try to change the lib folder, and when I did that I recive an error, so I think the lib isn't compatible with my launcher, am I right ? 

     

    no is the code, the code was made for 34k or lower  you have to change some things in the code try this one:

     

    Download; 

    This is the hidden content, please

    • Metin2 Dev 1
  2. Here is it i didnt test it but i think it should  work:

    quest pentakill begin 
        state start begin 
            when kill with npc.is_pc() begin
                local ilosc = pc.getqf("ilosc")
                pc.setqf("ilosc", pc.getqf("ilosc")+1)
                if pc.getqf("ilosc") == 1 then
                    cmdchat("PlayMusicxd onekill.mp3")
                    timer("killone", 10)
                elseif pc.getqf("ilosc") == 2 then
                    cmdchat("PlayMusicxd doublekill.mp3")
                    timer("killtwo", 10)
                    cleartimer("killone", 10)
                elseif pc.getqf("ilosc") == 3 then
                    cmdchat("PlayMusicxd triplekill.mp3")
                    timer("killthree", 10)
                    cleartimer("killtwo", 10)
                elseif pc.getqf("ilosc") == 4 then
                    cmdchat("PlayMusicxd quadra.mp3")
                    timer("killfour", 10)
                    cleartimer("killthree", 10)
                elseif pc.getqf("ilosc") == 5 then
                    cmdchat("PlayMusicxd pentakill.mp3")
                    timer("killfive", 10)
                    cleartimer("killfour", 10)
                end
            end
            when killone.timer or killtwo.timer or killthree.timer or killfour.timer or killfive.timer begin
                pc.setqf("ilosc", 0)
            end
        end
    end

    Kind Regards,

    Frozen

    • Love 1
  3. Here it is i didnt test, but i think it works.

    quest party_bonus begin
    	state start begin
    		function party_member_counting()
    			local pids = {party.get_member_pids()}
    
    			for i, pid in pids do
    	            local player_count = player_count + 1
    			end
    			return player_count
    		end
    		function party_give_bonus(count)
    			local pids = {party.get_member_pids()}
    			for i, pid in pids do
    				q.begin_other_pc_block(pid)
    	            affect.add_collect(apply. ,count*10, 60*60*60*60*60)
    	            pc.setqf("party_bonus", 1)
    	            pc.setqf("party_members_last", party_bonus.party_member_counting())
    	            q.end_other_pc_block(pid)
    			end
    		end
    		function party_remove_bonus(count)
    			local pids = {party.get_member_pids()}
    			for i, pid in pids do
    				q.begin_other_pc_block(pid)
    	            affect.remove_collect(apply. ,count*10, 60*60*60*60*60)
    	            pc.setqf("party_bonus", 0)
    	            pc.setqf("party_members_last", party_bonus.party_member_counting())
    	            q.end_other_pc_block(pid)
    			end
    		end
    		when kill with not npc.is_pc() and party.is_party() begin
    			local party_member_count = party_bonus.party_member_counting()
    			if pc.getqf("party_bonus") == 0 then
    				party_bonus.party_give_bonus(party_member_count)
    			else
    				if party_member_count == pc.getqf("party_members_last") then
    					return
    				else
    					party_bonus.party_remove_bonus(pc.getqf("party_members_last"))
    					party_bonus.party_give_bonus(party_member_count)
    				end
    			end
    		end
    		when kill with not party.is_party() begin
    			if pc.getqf("party_bonus") == 1 then
    				party_bonus.party_remove_bonus()
    				pc.delqf("party_bonus")
    				pc.delqf("party_members_last")
    			end
    		end
    	end
    end

    PS: add in affect.add_collect(apply. HEREADDTHEBONUS) and the same to addect.remove_colllect.

     

    Kind Regards,

    Frozen

    • Love 2
  4. Thanks for updating, Chawaka!

     

    xzPBe.png

     

    UPDATE

    8wgAd.png

     

    retouched it a little bit!

    click on image for high resolution.

     

    edit: i made this just for fun in my spare time. in case your gon be using it i dont need the rank thingy you just have fun with it

    ___________________________________

    metin2devbanner1.png

    in action and comparison to older version:

    logo%20in%20action.PNG  compare.PNG

    and again, because it was so nice :)

    metin2dev_banner_big.png

     

    with special thanks to RossaLyxa for his useful thread.

    Cool one i like it :)

    • Love 1
  5.  

    Hey guys i made a version 2, i dont know if you guys like it, but i think is better than the older one:

      zbbNivZ.png

     

    qfp4MRc.png

     

    i think it's cool, but there's a tiny mistake at the very right gear weel (the shadow).

     

     

    Your right Thx :) i will edit

    • Love 1
  6. import time
     
    class Wait(ui.ScriptWindow):
        def __init__(self):
            ui.ScriptWindow.__init__(self)
            self.eventTimeOver = lambda * arg: None
            self.eventExit = lambda * arg: None
             
        def __del__(self):
            ui.ScriptWindow.__del__(self)
             
        def Open(self,waitTime):
            curTime = time.clock()
            self.endTime = curTime + waitTime
            self.Show()
         
        def Close(self):
            self.Hide()
             
        def Destroy(self):
            self.Hide()
             
        def EmptyFunc(self):
            pass
             
        def SAFE_SetTimeOverEvent(self,event = 0):
            if(not event):
                self.eventTimeOver = self.EmptyFunc
                 
            self.eventTimeOver = ui.__mem_func__(event)
             
        def SAFE_SetExitEvent(self,event = 0):
            if(not event):
                self.eventExit = self.EmptyFunc
             
            self.eventExit = ui.__mem_func__(event)
             
        def OnUpdate(self):
            lastTime = max(0,self.endTime - time.clock())
            if(lastTime == 0):
                self.Close()
            else:
                return
                 
        def OnPressExitKey(self):
            self.Close()
            return True
             
             
     
    ## Example ;
     
    self.waitFor = Wait()
    self.waitFor.Open(20.0)
    self.waitFor.SAFE_SetTimeOverEvent(self.SecondFinished)
    self.waitFor.SAFE_SetExitEvent(self.ExitKey)
     
    def SecondFinished(self):
        print "======================================================"
        print "Second is finished."
        print "======================================================"
         
    def ExitKey(self):
        print "======================================================"
        print "Exit Key -- Write Something"
        print "======================================================"

    maybe you could work on your business

     

    Best Regards

    Aveline

     

    There is no need to make that, he can simply write this:

    define a variable for your action, for example you whant to make a timer when you buy.
    When you buy a thing you define sothing like this:
    self.buytime = app.GetTime()
    
    and then you whant to wait like 30 seconds before you can buy, you can write this:
    
    import time
    if app.GetTime() < self.buytime+30:
                   code the part when the timer is running
    else:
                after timer stopped
                Here you make a action so he can buy again.
  7. Hello guys,

    a few days ago ChuckNorris posted here a very usefull toll that highlighted metin2 functions, so i had an idea. I wanted a thing that helped us like in Java, vb and in other lenguages we can press cntrl + space and a list of existent functions appear, So that is what i created for sublime text 3.

     

    Is still not finish i still ned to make some updates, but i have this help!

     

    Here is a Print how it works:

     

    guYaErN.png

     

    You just need to write some letters of the function to appear this list that show you the available ones.

     

    Select one

     

    And then press tab

     

    For example here i selected quest function (one i created be faster to create quest structures), and clicked tab:

     

    rqmtIrT.png

     

     

    So i hope you enjoy and make your work easier.

     

    PS: One contradiction is that Sublime text 3 snippets do not support periods so when you are writing pc. or item. the list will disappear so you can only write pc and then the list will appear.

     

     

     

    Installation:

     

    - To install this just drag the metin2 folder that is in the rar folder to:

    C:UsersYourDirectorieAppDataRoamingSublime Text 3PackagesUser

    If you find any bug please contact me.

     

    Download : https://mega.co.nz/#!NtQ3wLaJ!1SPGUISPm1AmMuoRO1hyeZWB-7sipkkcBC3xvGuGhhs

     

    TODO:

    - Make almost all descriptions for functions.

     

    Credits:

    - Frozen

     

    I hope you enjoy,

    Kind Regards,

    Frozen

     

     

     

     

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