Sallycantdance Posted December 20, 2023 Posted December 20, 2023 (edited) hello i would like to disable homunculus from getting item in this script since i already disabled it settings in homunculus in autoloot mode but in this script homunculus can get the item how can i disable the homun in this script any idea? Quote - script SpecialEventScroll -1,{ OnNPCKillEvent: if ( rand( 100 ) <= 2 ) { .@item_id = F_Rand( 501,502 ); getitem .@item_id,1; } end; } Edited December 30, 2023 by GM Winter Quote
0 Rynbef Posted December 26, 2023 Posted December 26, 2023 There are many ways. As example by getting the unit data https://github.com/rathena/rathena/blob/6750837854d8e0701ca7a112e6631fc10889b245/doc/script_commands.txt#L8568 Rynbef~ Quote
0 Sallycantdance Posted December 27, 2023 Author Posted December 27, 2023 4 hours ago, Rynbef said: There are many ways. As example by getting the unit data https://github.com/rathena/rathena/blob/6750837854d8e0701ca7a112e6631fc10889b245/doc/script_commands.txt#L8568 Rynbef~ im sorry im still new in scripting and dont have any idea about what im really doing i will try this guide thank you Quote
0 Rynbef Posted December 27, 2023 Posted December 27, 2023 U don't have to say sorry for asking for help. That's why we are here. Rynbef~ 1 Quote
0 Sallycantdance Posted December 27, 2023 Author Posted December 27, 2023 (edited) 3 hours ago, Rynbef said: U don't have to say sorry for asking for help. That's why we are here. Rynbef~ i can't understand this. anyways thank you Quote *getunittype <GID>; Returns the type of object from the given Game ID. Returns -1 if the given GID does not exist. Return values: BL_PC - Character object BL_MOB - Monster object BL_PET - Pet object BL_HOM - Homunculus object BL_MER - Mercenary object BL_NPC - NPC object BL_ELEM - Elemental object Edited December 27, 2023 by GM Winter Quote
0 Emistry Posted December 29, 2023 Posted December 29, 2023 maybe use these setting instead? // Is getting exp/item from the homunculus disabled when their master's idle? // Set to no, or the amount of seconds (NOT milliseconds) that need to pass before considering // a character idle. // Characters in a chat/vending are always considered idle. // A character's idle status is reset upon item use/skill use/attack (auto attack counts too)/movement. // Their master will only receive items if 'homunculus_autoloot' is activated, // otherwise they will be dropped on the ground as usual. // NOTE: This option uses a special timer to track idle time, separated from the normal idle timer. hom_idle_no_share: no // How the server should measure the homunculus master's idle time? (for homunculus exp share and autoloot ONLY) (Note 3) // (This will only work if 'hom_idle_no_share' is enabled). // 0x001 - Walk Request // 0x002 - UseSkillToID Request (Targetted skill use attempt) // 0x004 - UseSkillToPos Request (AoE skill use attempt) // 0x008 - UseItem Request (Including equip/unequip) // 0x010 - Attack Request // 0x020 - Chat Request (Whisper, Party, Guild, Battlegrounds, etc) // 0x040 - Sit/Standup Request // 0x080 - Emotion Request // 0x100 - DropItem Request // 0x200 - @/#Command Request // Please note that at least 1 option has to be enabled. // Be mindful that the more options used, the easier it becomes to cheat this features. // Default: walk (0x1) + useskilltoid (0x2) + useskilltopos (0x4) + useitem (0x8) + attack (0x10) = 0x1F // NOTE: This allows you to configure different settings for homunculus, separated from normal idle timer and 'idletime_option'. // It will only apply to homunculus-only kills and it will not affect normal autoloot and party share options. idletime_hom_option: 0x1F Quote
0 Sallycantdance Posted December 30, 2023 Author Posted December 30, 2023 22 minutes ago, Emistry said: maybe use these setting instead? // Is getting exp/item from the homunculus disabled when their master's idle? // Set to no, or the amount of seconds (NOT milliseconds) that need to pass before considering // a character idle. // Characters in a chat/vending are always considered idle. // A character's idle status is reset upon item use/skill use/attack (auto attack counts too)/movement. // Their master will only receive items if 'homunculus_autoloot' is activated, // otherwise they will be dropped on the ground as usual. // NOTE: This option uses a special timer to track idle time, separated from the normal idle timer. hom_idle_no_share: no // How the server should measure the homunculus master's idle time? (for homunculus exp share and autoloot ONLY) (Note 3) // (This will only work if 'hom_idle_no_share' is enabled). // 0x001 - Walk Request // 0x002 - UseSkillToID Request (Targetted skill use attempt) // 0x004 - UseSkillToPos Request (AoE skill use attempt) // 0x008 - UseItem Request (Including equip/unequip) // 0x010 - Attack Request // 0x020 - Chat Request (Whisper, Party, Guild, Battlegrounds, etc) // 0x040 - Sit/Standup Request // 0x080 - Emotion Request // 0x100 - DropItem Request // 0x200 - @/#Command Request // Please note that at least 1 option has to be enabled. // Be mindful that the more options used, the easier it becomes to cheat this features. // Default: walk (0x1) + useskilltoid (0x2) + useskilltopos (0x4) + useitem (0x8) + attack (0x10) = 0x1F // NOTE: This allows you to configure different settings for homunculus, separated from normal idle timer and 'idletime_option'. // It will only apply to homunculus-only kills and it will not affect normal autoloot and party share options. idletime_hom_option: 0x1F i already set it like that sir but still they can get the item even they are afk Quote
Question
Sallycantdance
hello i would like to disable homunculus from getting item in this script since i already disabled it settings in homunculus in autoloot mode but in this script homunculus can get the item how can i disable the homun in this script any idea?
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.