Jump to content

ic3

Inactive Member
  • Posts

    36
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ic3

  1. Hi metin2dev comunity. I`m searching for a querry to change my mobs dmg (the normal mobs do like 2-3 dmg and boss mobs do like 50-150k dmg). I don`t wanna change the hole mob_proto becouse of the new npc for the lycan. So if someone can give me a querry to modify the attack damage, i'll appreciate it.

  2. If the problem isn't on input_main.cpp, take a look to OnRecvWhisperError def from game.py, I think.

    This is the OnRecvWhisperError def from game.py:

     

    def OnRecvWhisperError(self, mode, name, line):
    pname = player.GetName()
    Gamemaster1 = constInfo.GM1Name
    Gamemaster2 = constInfo.GM2Name
    Gamemaster3 = constInfo.GM3Name
    Gamemaster4 = constInfo.GM4Name
    Gamemaster5 = constInfo.GM5Name
    Gamemaster6 = constInfo.GM6Name
    Gamemaster7 = constInfo.GM7Name
    Gamemaster8 = constInfo.GM8Name
    Gamemaster9 = constInfo.GM9Name
    Gamemaster10 = constInfo.GM10Name
    Gamemaster11 = constInfo.GM11Name
    Gamemaster12 = constInfo.GM12Name
    Gamemaster13 = constInfo.GM13Name
    Gamemaster14 = constInfo.GM14Name
    Gamemaster15 = constInfo.GM15Name
    Gamemaster16 = constInfo.GM16Name
    if locale.WHISPER_ERROR.has_key(mode):
    if (name == (Gamemaster1) != -1) and pname != Gamemaster1 and constInfo.GM1Online == 0:
    constInfo.GM1Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster1) != -1) and pname != Gamemaster1 and constInfo.GM1Online == 1:
    constInfo.GM1Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster2) != -1) and pname != Gamemaster2 and constInfo.GM2Online == 0:
    constInfo.GM2Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster2) != -1) and pname != Gamemaster2 and constInfo.GM2Online == 1:
    constInfo.GM2Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster3) != -1) and pname != Gamemaster3 and constInfo.GM3Online == 0:
    constInfo.GM3Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster3) != -1) and pname != Gamemaster3 and constInfo.GM3Online == 1:
    constInfo.GM3Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster4) != -1) and pname != Gamemaster4 and constInfo.GM4Online == 0:
    constInfo.GM4Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster4) != -1) and pname != Gamemaster4 and constInfo.GM4Online == 1:
    constInfo.GM4Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster5) != -1) and pname != Gamemaster5 and constInfo.GM5Online == 0:
    constInfo.GM5Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster5) != -1) and pname != Gamemaster5 and constInfo.GM5Online == 1:
    constInfo.GM5Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster6) != -1) and pname != Gamemaster6 and constInfo.GM6Online == 0:
    constInfo.GM6Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster6) != -1) and pname != Gamemaster6 and constInfo.GM6Online == 1:
    constInfo.GM6Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster7) != -1) and pname != Gamemaster7 and constInfo.GM7Online == 0:
    constInfo.GM7Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster7) != -1) and pname != Gamemaster7 and constInfo.GM7Online == 1:
    constInfo.GM7Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster8) != -1) and pname != Gamemaster8 and constInfo.GM8Online == 0:
    constInfo.GM8Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster8) != -1) and pname != Gamemaster8 and constInfo.GM8Online == 1:
    constInfo.GM8Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return 
    elif (name == (Gamemaster9) != -1) and pname != Gamemaster9 and constInfo.GM9Online == 0:
    constInfo.GM9Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster9) != -1) and pname != Gamemaster9 and constInfo.GM9Online == 1:
    constInfo.GM9Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster10) != -1) and pname != Gamemaster10 and constInfo.GM10Online == 0:
    constInfo.GM10Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster10) != -1) and pname != Gamemaster10 and constInfo.GM10Online == 1:
    constInfo.GM10Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster11) != -1) and pname != Gamemaster11 and constInfo.GM11Online == 0:
    constInfo.GM11Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster11) != -1) and pname != Gamemaster11 and constInfo.GM11Online == 1:
    constInfo.GM11Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster12) != -1) and pname != Gamemaster12 and constInfo.GM12Online == 0:
    constInfo.GM12Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster12) != -1) and pname != Gamemaster12 and constInfo.GM12Online == 1:
    constInfo.GM12Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster13) != -1) and pname != Gamemaster13 and constInfo.GM13Online == 0:
    constInfo.GM13Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster13) != -1) and pname != Gamemaster13 and constInfo.GM13Online == 1:
    constInfo.GM13Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster14) != -1) and pname != Gamemaster14 and constInfo.GM14Online == 0:
    constInfo.GM14Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster14) != -1) and pname != Gamemaster14 and constInfo.GM14Online == 1:
    constInfo.GM14Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster15) != -1) and pname != Gamemaster15 and constInfo.GM15Online == 0:
    constInfo.GM15Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster15) != -1) and pname != Gamemaster15 and constInfo.GM15Online == 1:
    constInfo.GM15Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster16) != -1) and pname != Gamemaster16 and constInfo.GM16Online == 0:
    constInfo.GM16Online = 0
    #chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return
    elif (name == (Gamemaster16) != -1) and pname != Gamemaster16 and constInfo.GM16Online == 1:
    constInfo.GM16Online = 0
    chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
    return 
    else:
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, locale.WHISPER_ERROR[mode](name))
    elif mode == 4:
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, str)
    else:
    chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Whisper Unknown Error(mode=%d, name=%s)" % (mode, name))
    
    
    self.interface.RecvWhisper(name)

    Is from a staff contact sys that i don`t use. And where can i find  input_main.cpp?

  3. Hello metin2dev. I wanna know how can i change this texts: Energie DistricTMetin2 Print: https://metin2.download/picture/g9B8x362NUuj4fkSiwl9jdrMpBPTpB23/.png WinMetin2 and Costume WinMetin2 Print: https://metin2.download/picture/6d8QypfCEFamzL84JIqcBiE257kKSJ8w/.png And M2S Mt2Seren from achivment points system Print: https://metin2.download/picture/Exh39G2W664XA1IfT4w1Y0aTkleH2J4G/.png Thanks :D

  4. Replace this 216 is mapindex i think 216 map index is metin2_map_capedragonhead ._. 

    pc.warp(11070, 17915,216)

    Kind Regards

    HaveBeen

    On my server metin2_map_capedragonhead is 209 so i put: pc.warp(11070, 17915,209) but still nothig. stil the npc is teleporting me to the wrong map.

    This is the map that i get teleported in: 6075a7f4ca6721d6387da0fe3970d2eb.png

    P.S - The quest for npc is not .quest is .lua. I don`t this that the error is becouse of the extension:-?

  5. Hello. I try to create a teleport for the beta map. This is the quest:

    quest map_beta begin
    	state start begin	
    		when 20083.chat."Piatra Dragon Intunecat" begin			
    			say_title("Teleporter:")
    			say("Recent, a fost descoperita o insula misterioasa.")
    			say("A fost denumita Piatra Dragon Intunecata.")
    			say("Aceia ce doresc sa supravetuiasca acolo")
    			say("trebuie sa aiba putina experienta.")		
    			say("Din acest motiv, pot transporta numai  pe cei")
    			say("care au trecut de nivelul 90 si o Autorizatie.")
    			say("Ce zici, esti pregatit?")	
    			
    			if pc.level < 90 and pc.count_item(30129) <= 0 then
    				say_reward("Pentru a putea intra ai nevoie")
    				say_reward("de o Insarcinare de la calaret ºi minim nivelul 90.")
    				say("")
    				return
    			end			
    			if pc.count_item(30129) <= 0 then
    				say_reward("Pentru a putea intra ai nevoie")
    				say_reward("de o Insarcinare de la calaret.")
    				say("")
    				return
    			end			
    			if pc.level < 90 then
    				say_reward("Pentru a putea intra ai nevoie")
    				say_reward("de minim nivelul 90.")
    				say("")
    				return
    			end
    			
    			if pc.count_item(30129) >= 1 then
    			
    			local s=select("Sunt pregatit", "M-am rãzgândit")
    			
    				if s==1 then
    					pc.remove_item(30129,1)
    					pc.warp(11070, 17915)						
    				end
    			end
    		end
    				
    	end
    end

    If i write ingame /warp 11070 17915, it`s teleport me to the right place in the cape (beta map coordonates 830 1275). But, with the npc that i inserted the quest, it`s teleport me to another map -_-".  This are the coordonates that are in the settings of the map (it`s teleport you to the corner of the map) 1024000 1664000.

    What shoud i change to teleport me to the right place?

    P.S - This is the map that i wanna be teleported to.

    eaff3e2d8570feca8596c63275a049a0.png

  6.  

     

    Delete the object folder,then make make_quest and then reload q.I think it'll works now.

     

    Regards.

    I only have a make.py in my quest folder. This is what is inside.

    #!/usr/local/bin/python
    import os
    os.system('rm -rf object')
    for line in file('quest_list'):
    	if os.system('./qc ' + line):
    		print 'Error occured on compile ' + line
    		import sys
    		sys.exit(-1)

    So, this is the one right?

     

     

    Yep is Right install python on your system

     

     

    Done

  7. Delete the object folder,then make make_quest and then reload q.I think it'll works now.

     

    Regards.

    I only have a make.py in my quest folder. This is what is inside.

    #!/usr/local/bin/python
    import os
    os.system('rm -rf object')
    for line in file('quest_list'):
    	if os.system('./qc ' + line):
    		print 'Error occured on compile ' + line
    		import sys
    		sys.exit(-1)

    So, this is the one right?

     

  8. Hello. I have a problem. After i tryed endless to make a quest that teleports ppl to a certain coordoante on a map, something gone pretty bad. I mean, now when i try to add/edit a quest, it dosen`t load. No matter what change i make to that quest, it remains the same. Tryed with ./qc . Tryed with reload q. Tryed with server and dedicat reboot. Nothing. Any idea of what is causes this?

  9. Hello. I have  a little problem. I put the sunzi map as a metin farm map(you can found it with the name "metin2_map_sungzi" in any serverfile map folder). When i type ingame, warp 9466 256  i get teleported on the middle of the map. This is the quest but i think the problem is from the map folder.

    quest farm_map begin
    	state start begin	
    		when 20381.chat."Intrã în Valea Sufletelor ..." begin			
    			say_title("Confucius:")
    			say("")
    			say("Salut, aventurierule.")
    			say("Te pot ajuta sã intri dacã doreºti, dar ...")
    			say("ai grijã, daca mori, o sa fi teleportat map1!")		
    			say("")
    			
    			if pc.level < 40 and pc.count_item(30129) <= 0 then
    				say_reward("Pentru a putea intra în Valea Sufletelor ai nevoie")
    				say_reward("de o Insarcinare de la calaret ºi minim nivelul 40.")
    				say("")
    				return
    			end			
    			if pc.count_item(30129) <= 0 then
    				say_reward("Pentru a putea intra în Valea Sufletelor ai nevoie")
    				say_reward("de o Insarcinare de la calaret.")
    				say("")
    				return
    			end			
    			if pc.level < 40 then
    				say_reward("Pentru a putea intra în Valea Sufletelor ai nevoie")
    				say_reward("de minim nivelul 40.")
    				say("")
    				return
    			end
    			
    			if pc.count_item(30129) >= 1 then
    			
    			local s=select("Uite biletul ...", "M-am rãzgândit")
    			
    				if s==1 then
    					pc.remove_item(30129,1)
    					pc.warp(9466 , 256)						
    				end
    			end
    		end
    				
    	end
    end

    But when i inserted the 9466 256 coordonates on the teleport quest, it teleports me on the edge of the map(coordonates 250 , 3). Any idea on how to fix it? I can`t find a working solution for it. And the second problem, when i get killed on Sungzi map, i get teleported on map1 (first town of my kindom). How can i disable that?

    Thanks

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