Jump to content

Tasho

Banned
  • Posts

    358
  • Joined

  • Last visited

  • Days Won

    11
  • Feedback

    0%

Posts posted by Tasho

  1. 20 hours ago, Dobrescu Sebastian said:

    You can make that F1,F2,F3,F4 to light when click and not open from right to left. With a background image your login interface its 10/10.

    F1 F2 F3 F4 are openning when you put just the cursour on top of them ... I think its uselles to light them up. And it has 2 propertys, when you drag the cursor over the F1 image it shows you extra information and after it works like a glisant image. An the F` part is just for when you save the account, to auto connect when you press F1 etc.

    Hope that I explain the idea.

    Thanks for the advice.

  2. Ok, thanks for release but 470 lines is to ugly for this small thing, here is better and only in some lines:

    def __UseItem(self, slotIndex):
    	itemVnum = player.GetItemIndex(slotIndex)
    	item.SelectItem(itemVnum)
    	itemCount = player.GetItemCount(slotIndex)
    	inventoryMaxSlot = 45 * 2
    
    	if itemVnum == 50300 and itemCount > 1:
    		for i in xrange(inventoryMaxSlot):
    			if player.GetItemIndex(i) == 0:
    				net.SendItemMovePacket(slotIndex, i, 1)
    				self.__SendUseItemPacket(i)
    				attachedCount = mouseModule.mouseController.GetAttachedItemCount()
    				net.SendItemMovePacket(slotIndex, i, attachedCount)			
    			else:
    				chat.AppendChat(chat.CHAT_TYPE_INFO, "Inventory is full, you need more space.")
    				return
    	else:
    		self.__SendUseItemPacket(slotIndex)
    		return

     

    • Love 1
  3. First one you need to kill processes and after that to do reboot.

    For can make all very easy, just use command:

    cd /usr/home/game && sh close.sh && reboot

    Or you can make like this:

    • Create a file with name reboot.sh in ../usr/home/game/
    • Put this in him:
    #!/bin/sh
    #If processes change their name, killall may not be able to match them correctly, so change "game" or "db" with your name, type "ps" or "top" for know.
    echo -e "Kill processes and reboot server ..."
    killall game && killall db && reboot

    e12452ee79844ec3b7057c591d53d835.png

    And when you want to make a reboot just type command: sh reboot.sh

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

    the system is old but useful will be for sell.

    (2.4) Content

    • Don't post stuff other made and/or sell stuff others made.
    • No posting (whether to sell or give away for free) anything that involves cheating or stealing from people's clients or servers. 

    Wom2 do that since 2014 (3 years ago), and full code is already public, a lot a people have that, and also i have, works perfectly without "bugs", i can't post here because is not allowed, but again romanians guys try to make money from nothing.

    PS: I dont know why you create this topic, to show one system from 3 years ago from wom2 and say is your and you "rebuild"...you not code nothing here, works full what exist on public.

    Someone does not respect the rules.

  5. Very easy to make.

    Just make a copy of alignment via packet info and also you have full check on source client/server + python module and you can do all what you want with these functions..

    And all return value row [name_row] from mysql player.player

    	case ITEM_LOCK_INVENTORY:
    		SetLockInventory(1);
    		
    	case ITEM_UNLCOCK_INVENTORY:
    		SetLockInventory(0);
    #Python
    player.GetInventoryLocked() # Result current value from mysql
    
    #Client
    int CInstanceBase::GetInventoryLocked()
    {
    	return m_iInventoryLocked;
    }
    
    PyObject * playerGetInventoryLocked(PyObject* poSelf, PyObject* poArgs)
    {
    	CInstanceBase * ch = CPythonPlayer::Instance().NEW_GetMainActorPtr();
    	int iInventoryLocked = 0;
    
    	if (ch) {
    		iInventoryLocked = ch->GetInventoryLocked();
    	}
    
    	return Py_BuildValue("i", iInventoryLocked);
    }
    
    #Server
    int CHARACTER::GetInventoryLocked() const
    {
    	return m_iInventoryLocked;
    }
    
    void CHARACTER::SetLockInventory(int iAmount)
    {
    	m_iInventoryLocked = iAmount;
    	UpdatePacket();
    }

     

    Anyway, good ideea.

  6. 48 minutes ago, Shang said:
    
    		if (12010 <= itemVnum and itemVnum <= 12019):				# 12010 | 12011 | 12012 | 12013 | 12014 | 12015 | 12016 | 12017 | 12018 | 12019
    
    		if (1 <= itemVnum and itemVnum <= 20009):				# 1 | 2 | 3 | 4 | 5 etc  etc...max 20009

    Hmm... 12010 <= it checks values less than 12010 too. The same with the other conditional.

    it check values starting from 12010 to 12019 for fu.ck sake.

  7. Hi devs, I have 2 problems with offlineshop, maybe some of you had this errors and maybe can point me in the direction of fixing them :

    1.The first item when I create the offline shop npc is deleted and in mysql the vnum of that item goes to 0.

    https://metin2.download/picture/3QJE6IA7p6Y9oyE1NtsqGWfvGOnvUfAX/.png

    2.When i make a offline shop npc I get 2kkk gold from nothing.

    https://metin2.download/picture/6UkJ6cmGtZYt85012a8rcNN5Ldkf0ClS/.gif

     

     

  8. Do someone know how to resolv this problem? 

     

    Spoiler

     

    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=7, SkillLevel=88)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=7, SkillLevel=109)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=8, SkillLevel=109)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=8, SkillLevel=51)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=8, SkillLevel=109)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=108, SkillLevel=120)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=210, SkillLevel=252)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=211, SkillLevel=109)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=213, SkillLevel=109)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=214, SkillLevel=54)
    0416 20:18:18313 :: CPythonPlayer::SetSkillLevel(SlotIndex=215, SkillLevel=102)
    0416 20:18:38103 :: 
    game.py(line:576) Open
    game.py(line:1006) StartGame
    game.py(line:1163) RefreshCharacter
    interfaceModule.py(line:706) RefreshCharacter
    uiCharacter.py(line:1110) RefreshCharacter
    uiCharacter.py(line:1172) __SelectSkillGroup
    uiCharacter.py(line:1158) __SetSkillSlotData
    uiCharacter.py(line:855) RefreshSkill
    uiCharacter.py(line:830) __RefreshSkillPage

    GameWindow.Open - <type 'exceptions.RuntimeError'>:skill.GetSkillType - Failed to find skill by 115

    0416 20:18:38103 :: ============================================================================================================
    0416 20:18:38103 :: Abort!!!!


     

    I added the sash, but dont know why It gives me this error.
     

  9. Hi guys, I was looking for a way to stop resteing the client every time I edit a .py file from root and I found this function in consolemodule:

    self.AddFunction("re", Console.ReloadDevel)

    def ReloadDevel(self):
            "ReloadDevel"
            import consoleModule
            import uiGuild
            import uiInventory
            import uiTaskbar
            import uiParty
            reload(uiGuild)
            self.Print("ReloadGuild")
            reload(uiInventory)
            self.Print("ReloadInventory")
            reload(uiTaskBar)
            self.Print("ReloadTask")

     

     

    My question is: how can I use this function?

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