HueHue
-
Posts
19 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by HueHue
-
-
-
-
Hi,
Is there a way to add a theif glove to mysql: account -> account.
I want to create a VIP system that automatically gives a theif glove, exp ring and lucky medal after purchase for 3 days.
I know that exp ring and lucky medal is there already but it doesn't have the theif glove.
Thank you. -
-
Hi,
I've done a side panel in my inventory and I'm trying to assign one of the buttons to "X" key.
So basically that one button presses X key on the keyboard. -
-
-
Hi,
Does anyone know how to list all the GM's in the friends list?
So when you open a Friend list window there will be a separate tab called Staff and there will be a list of all GM's and it will show if they are online or not.
-
Hi,
My game crashes while being on the devils catacomb and I have this error:0418 11:42:25494 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/tent_s_lamp.mse) Error 0418 11:42:25494 :: CArea::SetEffect effect register error d:/ymir work/effect/background/tent_s_lamp.mse
From what can I see I'm missing a file called tent_s_lamp.mse.
Does anyone have it or are there any other ways to fix it? -
Hi,
Is there a system that resizes the quest (npc talk) window automatically depending on the amount of text in each conversation?
So that if the npc talks a lot the window will be bigger and if there is only few sentences then the window gets smaller. -
Hi,
Is there a way to create a small chat window that is separate from the main one (like next to it) that shows the amount of Yang that we received and the amount of experience that we gained from the mob.
I mean probably there is but is it really difficult or has there been already a topic that has both Yang and exp. -
1 minute ago, WeedHex said:
Which library are you talking about, the one needed from game file?
I need the ones that can be found in usr/lib/
-
Hi,
I want to move my server from FreeBSD 11.2 to 13.2.
Does anyone have libs that are required to launch it or is there a topic that contains them.
I tried to search for it but I couldn't find it.Thank you
-
44 minutes ago, Owsap said:
for i in xrange(player.INVENTORY_PAGE_SIZE * 4):
I've tried this before with different combinations but it doesn't really want to work.
Anyway thank you -
Hi.
I'm looking for an automatic boost system that automatically uses items like 39017, 39024, 27102 etc. when they run out.
For example you put the items which you want to use in a special invetory and you press "Start" and then the system automatically uses the items when their time runs out.
-
4 hours ago, Owsap said:
Although I'm not entirely sure why you would want something like this, I will leave you an example for items.
Python Method Only
''' 1. @ root/game.py ''' # Search onPressKeyDict[app.DIK_F] = lambda : self.__PressFKey() # Add below onPressKeyDict[app.DIK_TAB] = lambda : self.__PressTABKey() # Search def __PressFKey(self): # Add below def __PressTABKey(self): if self.interface: self.interface.UseInventoryItem(50053) ''' 2. @ root/interfaceModule.py ''' # Search if __name__ == "__main__": # Add above def UseInventoryItem(self, itemVNum): self.wndInventory.UseItem(itemVNum) ''' 3. @ root/uiInventory.py ''' # Search def UseItemSlot(self, slotIndex): # Add above def UseItem(self, itemVNum): if player.GetItemCountByVnum(itemVNum) <= 0: return getItemVNum = player.GetItemIndex for i in xrange(player.INVENTORY_PAGE_SIZE): slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i) if getItemVNum(slotNumber) == itemVNum: self.UseItemSlot(slotNumber) break
Python & C++ Method
''' 1. @ root/game.py ''' # Search onPressKeyDict[app.DIK_F] = lambda : self.__PressFKey() # Add below onPressKeyDict[app.DIK_TAB] = lambda : self.__PressTABKey() # Search def __PressFKey(self): # Add below def __PressTABKey(self): net.SendChatPacket("/use_item_vnum 50053")
/// 2. @ game/src/cmd.cpp // Search ACMD(do_use_item); // Add below ACMD(do_use_item_vnum); // Search { "use_item", do_use_item, 0, POS_DEAD, GM_LOW_WIZARD }, // Add below { "use_item_vnum", do_use_item, 0, POS_DEAD, GM_PLAYER }, /// 3. @ game/src/cmd_general.cpp // Add to the bottom of the document ACMD(do_use_item_vnum) { char szArg[256]; one_argument(argument, szArg, sizeof(szArg)); DWORD dwVNum = 0; str_to_number(dwVNum, szArg); LPITEM pItem = ch->FindSpecifyItem(dwVNum); if (pItem == nullptr) return; if (pItem->GetCount() > 0) ch->UseItem(TItemPos(INVENTORY, pItem->GetCell())); }
I did not test before posting, excuse me if something goes wrong.
Oh man that "Python Method Only" works PERFECTLY!
Thank you soooo much i really appreciate it!5 hours ago, Owsap said:Although I'm not entirely sure why you would want something like this, I will leave you an example for items.
Python Method Only
''' 1. @ root/game.py ''' # Search onPressKeyDict[app.DIK_F] = lambda : self.__PressFKey() # Add below onPressKeyDict[app.DIK_TAB] = lambda : self.__PressTABKey() # Search def __PressFKey(self): # Add below def __PressTABKey(self): if self.interface: self.interface.UseInventoryItem(50053) ''' 2. @ root/interfaceModule.py ''' # Search if __name__ == "__main__": # Add above def UseInventoryItem(self, itemVNum): self.wndInventory.UseItem(itemVNum) ''' 3. @ root/uiInventory.py ''' # Search def UseItemSlot(self, slotIndex): # Add above def UseItem(self, itemVNum): if player.GetItemCountByVnum(itemVNum) <= 0: return getItemVNum = player.GetItemIndex for i in xrange(player.INVENTORY_PAGE_SIZE): slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i) if getItemVNum(slotNumber) == itemVNum: self.UseItemSlot(slotNumber) break
Python & C++ Method
''' 1. @ root/game.py ''' # Search onPressKeyDict[app.DIK_F] = lambda : self.__PressFKey() # Add below onPressKeyDict[app.DIK_TAB] = lambda : self.__PressTABKey() # Search def __PressFKey(self): # Add below def __PressTABKey(self): net.SendChatPacket("/use_item_vnum 50053")
/// 2. @ game/src/cmd.cpp // Search ACMD(do_use_item); // Add below ACMD(do_use_item_vnum); // Search { "use_item", do_use_item, 0, POS_DEAD, GM_LOW_WIZARD }, // Add below { "use_item_vnum", do_use_item, 0, POS_DEAD, GM_PLAYER }, /// 3. @ game/src/cmd_general.cpp // Add to the bottom of the document ACMD(do_use_item_vnum) { char szArg[256]; one_argument(argument, szArg, sizeof(szArg)); DWORD dwVNum = 0; str_to_number(dwVNum, szArg); LPITEM pItem = ch->FindSpecifyItem(dwVNum); if (pItem == nullptr) return; if (pItem->GetCount() > 0) ch->UseItem(TItemPos(INVENTORY, pItem->GetCell())); }
I did not test before posting, excuse me if something goes wrong.
Just one more thing the "Python Method Only" works only on the 1st inventory page.
How to change it so that it will work on all 4 inventory pages. -
8 hours ago, xTryhard said:
yes you can do this go to game.py create a function with your key send this to the server check if you have this item id in your inventory and if you have it do what you want and send it back to the client
Ok that's great but could you or someone help me to write the code for this as I have never done something like this before.
All i know is that i need to use this command in game.pyonPressKeyDict[app.DIK_TAB] = lambda : self?????
So basically what I want to have is when i press Tab key an item 50053 is being used.
Thank you in advance. -
Hi.
Is there a way to assign an item or a quest to a button on the keyboard?
For example I have an item 50053 and I want to use it by pressing TAB key on my keyboard.
Or I have a quest and I want to open the quest by pressing ~ key on my keyboard.
Theif Glove in mysql -> account -> account.
in Community Support - Questions & Answers
Posted
Sorry I figured it out myself.
Please close.