MrWick 0 Report post Posted July 22, 2023 How can I do, for example, put the swing item in my temp bag and still give me the stats, as well as change the slot number of the items? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted January 9 Hello @MrWick, It is impossible because we can't get access to items in the temporary bag from scripts, in other words the GetChaItem() function doesn't work with the temporary bag. P.S. The topic has been moved to Questions & Help section. Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
mkhzaleh 132 Report post Posted January 9 without source? no just alot of work you still can workaround using BagTempHasItem to check if temp bag has swing id or not , you have to use "MoveToTemp" function to move it from inventory to temp bag "not sure if this exist in compiled exes or using giveitemX but do not add gems in it or anything/? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted January 10 21 hours ago, mkhzaleh said: without source? no just alot of work you still can workaround using BagTempHasItem to check if temp bag has swing id or not , you have to use "MoveToTemp" function to move it from inventory to temp bag "not sure if this exist in compiled exes or using giveitemX but do not add gems in it or anything/? As a solution it is possible to patch lua function GetChaItem(), or, to be more precise, SItemGrid* CCharacter::GetItem2(Char chPosType, Long lPosID). This function can only work with equipped items (chPosType = 1) and main inventory (chPosType = 2). With the help of the patch, it will be possible to obtain the attributes of items in a temporary bag (chPosType = 3) by slot number. With this modification I did the following: On 7/19/2018 at 9:25 AM, V3ct0r said: This modification adds into the game new types of equipment from 2.x versions - bracelets, belt, handguards. To put a new type of equipment on the character, double-click on the corresponding icon in the character's inventory, after which the equipment will appear in the temporary bag. In order for the equipment to give the character attributes, it is necessary to arrange it in a temporary bag in a certain order (see screenshot): 1 and 2 slots - bracelets; 3 slot - belt; 4 slot - handguards. Equipment has limitations in level and class, the character must meet certain requirements in order to use it. The attributes of the new equipment are specified in ItemInfo.txt, just like for any other type of equipment. Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
Lua 35 Report post Posted January 14 On 1/10/2024 at 2:31 PM, V3ct0r said: As a solution it is possible to patch lua function GetChaItem(), or, to be more precise, SItemGrid* CCharacter::GetItem2(Char chPosType, Long lPosID). This function can only work with equipped items (chPosType = 1) and main inventory (chPosType = 2). With the help of the patch, it will be possible to obtain the attributes of items in a temporary bag (chPosType = 3) by slot number. With this modification I did the following: did you released this mod? thanks Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted January 14 10 minutes ago, Lua said: did you released this mod? thanks Hello! No, I didn't release it. 1 Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
MrWick 0 Report post Posted February 6 On 1/9/2024 at 6:03 PM, V3ct0r said: Hello @MrWick, It is impossible because we can't get access to items in the temporary bag from scripts, in other words the GetChaItem() function doesn't work with the temporary bag. P.S. The topic has been moved to Questions & Help section. Actually what I want is to free up space in the inventory, like using wings, but without ceasing to have the effect of the rb4, or swing, and allocate rb4 wings with effects-stats, swing + stats, go to the temp bag and have them that effect If you want, I'll leave you my discord, so we can chat more about this, because I'm new to this topic, and I have many questions Discord: gmcelestiax and thanks for responding Quote Share this post Link to post Share on other sites