Jump to content

iBeast

Banned
  • Posts

    83
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by iBeast

  1. Hello!
    I am writing and asking for help on this forum after some weeks.

     

    I am creating ranking system and everything works fine, but I need to know how to read from metin2 client binary .mse file.

    I have this line in C++ binary function:

    sprintf(c_pszRank, "d:/ymir work/ui/ranking/ranker_%d.mse", iTOPPlayersRank);

    and I return 1, so it is ranker_1.mse. But when I try it, nothing happens (so it can not read .mse) and when I change path to .tga file, it will load but picture is static.

     

    Could you help me how to solve this problem?
    Thanks.

  2. 4 hours ago, Cunoo said:

    " if i can put this source in another serverfile" ?? How put source? Just compile your source -> game, db, binary and after put in sf/client..
    If you use 40k client/sf you not must change more files.. If you use old sf/client, yes you must change more files, but working too.. I have 2012 client, same year serverfiles with 40k source and working fine.

    If you want clean sf, use this:
    //reupload is in topic, look for all pages..

    
    https://metin2dev.org/board/index.php?/topic/190-fully-untouched-34083-server-files-db/

     Working fine with 40k source..

    Good client here:

    
    https://metin2dev.org/board/index.php?/topic/2420-release-current-metin2deen-client/

    Not bad for start. If you have more questions, asking.

    Why 34083 files? Why not (for example) Fliege (40k)?

  3. 8 hours ago, lTz said:

    Hi guys , today i have a request, ofc just if someone want to help :)

    I want this command /test to open a script from game.py for ex the script is switchbot on f5 , and i want to open it with that command not with f5 , any solution will be welcome , ty again

    Create new command in cmd.cpp and insert into cmd_general.cpp that command with ChatPacket:

    ch->ChatPacket(CHAT_TYPE_COMMAND, "TestCommand");

    And then move into game.py:

    Find:

    serverCommandList={

    And insert into list:

    "TestCommand"			: self.__TestCommandFunction,

    And insert function at the end of game.py:

    def __TestCommandFunction(self):
    	import dbg
    	dbg.LogBox("Command received!")

     

    Hope I helped.

    iBeast

    • Love 1
  4. 1 hour ago, Ekinox said:

    Hi,

    Thanks for your reply

    My uiToolTip : 

    This is the hidden content, please

    My problem can it come from the src ?

    I was right. There is solution (probably):

    1. Find:

    def SetShopItem(self, slotIndex):

    2. Add on the end of function this:

    self.AppendPrice(price)

    So it should be like that:

    	def SetShopItem(self, slotIndex):
    		itemVnum = shop.GetItemID(slotIndex)
    		if 0 == itemVnum:
    			return
    
    		price = shop.GetItemPrice(slotIndex)
    		self.ClearToolTip()
    		self.isShopItem = TRUE
    
    		metinSlot = []
    		for i in xrange(player.METIN_SOCKET_MAX_NUM):
    			metinSlot.append(shop.GetItemMetinSocket(slotIndex, i))
    		attrSlot = []
    		for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
    			attrSlot.append(shop.GetItemAttribute(slotIndex, i))
    
    		self.AddItemData(itemVnum, metinSlot, attrSlot)
    		self.AppendPrice(price)

     

    iBeast

  5. 5 hours ago, Ekinox said:

    Hi,

    I don't have buy price on item from all shop see :

    1119-130942.jpg

    syss err client and server is empty

    Someone would have any idea ??

    Thx

    Sorry for my bad English

    Hi.

    Maybe you are missing function "AppendPrice" in uiToolTip.py.

     

    Upload your uiToolTip.py.

    iBeast

    • Love 1
  6. Hello there.

    title-title.png

    Check my website (click on signature). I have this function for that on my website.

    Enjoy.

     

     

     

    32 minutes ago, Cunoo said:

    Too want solution, but I mean this is in ->  InstanceBaseEffect???

    Thanks

     

    19 hours ago, ReFresh said:

    @tierrilopes Can you post a solution for this? I really want this too. Thanks

     

    • Sad 1
    • Love 1
  7. 1 minute ago, amosth said:

    not work =/

    my quest complete

    
    	when 20006.chat."Labirinto" with pc.get_map_index()== 1 or pc.get_map_index() == 21 or pc.get_map_index() == 41 begin
    		----"111111222222333333444444555555666666777777888888999999000000"
    	    say_title("Mirine:")
    		say("")
    	    say("test")
    		say("")
    		local lab  = select("Enter", "Exit")
    		if lab == 1 then
    		if pc.count_item(2498) >= 1 then
    		pc.give_item2("2499",1)
    		pc.remove_item("2498",1)
    		pc.warp(772800,774700)
    		timer("leave_timer", 10)
    		else
    	    say_title("Mirine:")
    		say("")
    		say("Not item sorry =/")
    		say("")
    		end
    		end
    		if lab == 2 then
    		return
    		end
    	end
    
    	when "leave_timer".timer begin --When runs out - returns to basic position timer
    		--warp_to_village()
    		say("teste")
    	end --when	

     

    Add me on Skype (contact on my website).

    I will look at it.

  8. Just now, amosth said:

    sorry.

    
    quest special map
    	state start begin
    		when 20006.chat."Take me to the map" begin
    			say("Do you want to enter?")
            	local s = select ("Yes", "No")
    			if s == 2 then return end
    			if s == 1 then pc.warp(772800, 774700) timer("leave_timer", 10) end --Warping and setting timer
    		end --when
    		
    		when "leave_timer".timer begin --When runs out - returns to basic position timer
    			warp_to_village()
    		end --when
    	end --state
    end --quest

    is correct? warp_to_village() to leave time?

    (As I wrote... It is not tested, so  theoretically yes)

    And yes, when timer runs out, it will do "commands" in that "when".

     

    iBeast

  9. 1 minute ago, amosth said:

    my edit

    
    quest special map
    	state start begin
    		when xyz.chat."Take me to the map" begin
    			say("Do you want to enter?")
            	local s = select ("Yes", "No")
    			if s == 2 then return end
    			if s == 1 then pc.warp(772800, 774700) timer("leave_timer", 10) end --Warping and setting timer
    		end --when
    		
    		when "leave_timer".timer begin --When runs out - returns to basic position timer
    			warp_to_village()
    		end --when
    	end --state
    end --quest

    enjoy?

    You have not edited NPC ID in chat function.

  10. quest special map
    	state start begin
    		when xyz.chat."Take me to the map" begin
    			say("Do you want to enter?")
    			local s = select ("Yes", "No")
    			if s == 2 then return end
    			if s == 1 then pc.warp(x, y) timer("leave_timer", secs) end --Warping and setting timer
    		end --when
    		
    		when "leave_timer".timer begin --When runs out - returns to basic position timer
    			pc.warp(x, y)
    		end --when
    	end --state
    end --quest

    Try it this way... Code is not tested, only "sample".

     

    iBeast

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