Cydh

Developer
  • Content count

    2,186
  • Avg. Content Per Day

    1
  • Joined

  • Last visited

  • Days Won

    57

Cydh last won the day on June 10

Cydh had the most liked content!

Community Reputation

594 Excellent

About Cydh

  • Rank
    Self Title - New Single
  • Birthday March 5

Profile Information

  • Gender
    Male
  • Location
    Ngayogyakarta Hadiningrat
  • Server
    NotYourRO
  • Github
    cydh

Contact Methods

Recent Profile Visitors

20,354 profile views
  1. *getobjects(<type>,<data>{,"<map name>"{,<x1>,<y1>,<x2>,<y2>}}) Get object GIDs on specified location based on specified 'type'. The returned value is number of all objects found. The GIDs is stored in temporary NPC variables. <type> can be combined value as bitwise of BL_PC - Character object BL_MOB - Monster object BL_PET - Pet object BL_HOM - Homunculus object BL_NPC - NPC object BL_MER - Mercenary object BL_ELEM - Elemental object 'data' values are bitmask of 0x1 - GID (default) 0x2 - Name 0x4 - Char ID (only for BL_PC) 0x8 - Class (Job ID for BL_PC, Sprite ID for BL_NPC, and Class for other types) Default 'map name' for look up is invoker location or NPC if no invoker found. Object GID found will be saved in these arrays, while 'type' is value of UNITTYPE_*. Use getd for good practice. [email protected]_type_id[] [email protected]_type_name$[] [email protected]_type_cid[] [email protected]_type_class[] Example 1: getobjects(BL_PC,0x1); [email protected] = getarraysize(getd("[email protected]_"+BL_PC+"_id")); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { getitem 607,1,getd("[email protected]_"+BL_PC+"_id["[email protected]+"]"); } Example 2: getobjects(BL_PC|BL_NPC,0x1|0x2); // For players [email protected] = getarraysize(getd("[email protected]_"+BL_PC+"_id")); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { getitem 501,1,getd("[email protected]_"+BL_PC+"_id["[email protected]+"]"); } // For NPCs [email protected] = getarraysize(getd("[email protected]_"+BL_NPC+"_id")); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { npctalk "My number is "+([email protected]+1)+"",getd("[email protected]_"+BL_NPC+"_name$["[email protected]+"]"); } Keywords how to get players (account id) on a map, how to get player/char name on a map, how to get char id on a map, how to get char's job on a map, how to get npc id on a map, how to get npc name on a map (exname with hidden part), how to get monster gid on a map, how to get monster name on a map, how to get monster id (class) on a map, .... so does with homunculus, elementals, pets, mercenaries Downloads getobjects-rA-20180708-b2c026d4.diff testgetobjects.txt
  2. Updated for rAthena Git Hash: f2437f4a (20180708) I updated this last April, but somehow forgot to update here
  3. Cydh

    [FluxCP] New "Feeding Logdata"

    yes, fixed here https://github.com/rathena/FluxCP/commit/e0fa6a8347db17de99b3fe0926dc87c0769262fc
  4. Version 1.0.0

    18 downloads

    So the example usage for Sub-query part of Pull: 3272 can be tested by using this FluxCP Addon: Char Deletion Code for #3272. No source mod needed (iirc lol). The plot is to not using birthdate, email, nor pincode as deletion code for deleting character (the confirmation part after the char deletion date's turned blue). The code will be sent into the registered e-mail. This is not OTP (one true pair couple... errrr One-time Password) but has expiration time, so make sure your FluxCP has same timezone with your server timezone (don't ask me). Requirements Have this Pull Request merged into your working rAthena Pull: 3272 For FluxCP from https://github.com/rathena/FluxCP Tested only after https://github.com/rathena/FluxCP/commit/e0fa6a8347db17de99b3fe0926dc87c0769262fc Make sure your server enable to send e-mail You can edit the addons/delcode/module/create.php to disable Captcha check or merge this PR to your FluxCP https://github.com/rathena/FluxCP/pull/196 Installations Import table from char_delcode.sql into database that has your login table Copy addons/delcode directory to your FluxCP's addons directory Edit the char_deletion_code value to char_deletion_code: (SELECT `delcode` FROM `char_delcode` WHERE `account_id`=`login`.`account_id` AND `expired` > NOW() ORDER BY `id` DESC LIMIT 1) Copy data/templates/delcode.php to data/templates directory on your FluxCP's That's all Example Usage PS: The menu labels were edited

    Free

  5. View File Char Deletion Code for #3272 So the example usage for Sub-query part of Pull: 3272 can be tested by using this FluxCP Addon: Char Deletion Code for #3272. No source mod needed (iirc lol). The plot is to not using birthdate, email, nor pincode as deletion code for deleting character (the confirmation part after the char deletion date's turned blue). The code will be sent into the registered e-mail. This is not OTP (one true pair couple... errrr One-time Password) but has expiration time, so make sure your FluxCP has same timezone with your server timezone (don't ask me). Requirements Have this Pull Request merged into your working rAthena Pull: 3272 For FluxCP from https://github.com/rathena/FluxCP Tested only after https://github.com/rathena/FluxCP/commit/e0fa6a8347db17de99b3fe0926dc87c0769262fc Make sure your server enable to send e-mail You can edit the addons/delcode/module/create.php to disable Captcha check or merge this PR to your FluxCP https://github.com/rathena/FluxCP/pull/196 Installations Import table from char_delcode.sql into database that has your login table Copy addons/delcode directory to your FluxCP's addons directory Edit the char_deletion_code value to char_deletion_code: (SELECT `delcode` FROM `char_delcode` WHERE `account_id`=`login`.`account_id` AND `expired` > NOW() ORDER BY `id` DESC LIMIT 1) Copy data/templates/delcode.php to data/templates directory on your FluxCP's That's all Example Usage PS: The menu labels were edited Submitter Cydh Submitted 07/05/2018 Category FluxCP Addons Video https://www.youtube.com/watch?v=wJdkRYmcSyY Content Author Cydh  
  6. Cydh

    [Showcase] Hakurei Shrine

    Awesome! next North Shirahebi Shrine? xD
  7. Cydh

    [FluxCP] New "Feeding Logdata"

    Error 500 is internal, commonly because when people disable debug and the error occurs on script (access unset array, invalid functions, etc) or query (invalid table/fields). The close PHP tag in 'full' PHP file in not the issue So, you can try enable the DebugMode, see the error, after you got that, you can disable it again 'DebugMode' => false, // Set to false to minimize technical details from being output by Flux. WARNING: DO NOT USE THIS OPTION ON A PUBLICALLY-ACCESSIBLE CP.
  8. restrict the prize item trading use getitembound instead getitem to force 'normal' item becomes bound
  9. Cydh

    w0w: Custom Items

    Dullahan is headless, that's why when it opens the helm cover you found nothing -not his head behind it- but just simply darkness
  10. EXPIRED

    Status Updated, goal reached. Changes in https://github.com/rathena/FluxCP/pull/201. Thank you for supporting This is the first step and the gist are Item random option info in every items (it has any) in player's inventory, cart, storage, and guild storage Also, item random option info added in /logdata/picks and all "rA Logs" pages have search feature now In addition, added Egg renamed info, so for pet that was renamed will be append with 'Beloved' title This update is packed with bonus to make Vending & Buyingstore listing all items and searching of course the options info is added here
  11. Cydh

    [Showcase] Rune-Midgards Mini

    damn that's so cool. and somewhat funny xD
  12. download it, read the file, edit the file by removing unwanted stone group & stones
  13. Cydh

    Xpalace

    I thought it's a pool xD
  14. Cydh

    Request Custom Refining System

    Ok, here tested. Because I like your idea, I have to try this myself. Look again at my gist https://gist.github.com/cydh/75f5071a0691d393d3cd1c08d57789be. The changes are in The lines after // Init dummy val All inside F_isCustomLevels function Well, I hope you learning from this, because you need to take care other refiner that maybe not using refine.txt NPC file xd