YJ1994

Members
  • Content Count

    16
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

5 Neutral

About YJ1994

Recent Profile Visitors

180 profile views
  1. use this if you're running maria-db v10+ on centos 7 yum install MariaDB-shared
  2. //===== rAthena Script ======================================= //= saders @petstats command //===== By: ================================================== //= Sader1992 //= Free!! //https://rathena.org/board/profile/30766-sader1992/ //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= rAthena Project //https://github.com/sader1992/sader_scripts //===== Description: ========================================= //==== @petstats command //============================================================ ACMD_FUNC(petstats) { struct pet_data *pd = sd->pd; nullpo_retr(-1, sd); char output[CHAT_SIZE_MAX], petname[100], mobname[100], infostring1[100], infostring2[100]; int i; struct { const char* format; int value; } output_table[] = { { NULL, 0 }, { NULL, 0 }, { "Pet ID - %d", 0 }, { "Pet Level - %d", 0 }, { "Pet Loyalty - %d", 0 }, { "Pet equip - %d", 0 }, { "Pet Hungry - %d", 0 }, { NULL, 0 }, { NULL, 0 }, { "Mob ID - %d", 0 }, { "Egg ID - %d", 0 }, { "Food ID - %d", 0 }, { "Equip ID - %d", 0 }, }; pd = sd->pd; if (!pd) { clif_displaymessage(fd, msg_txt(sd, 184)); // Sorry, but you have no pet. return -1; } std::shared_ptr<s_pet_db> pet_db_ptr = pd->get_pet_db(); memset(infostring1, '\0', sizeof(infostring1)); memset(output, '\0', sizeof(output)); memset(petname, '\0', sizeof(petname)); memset(infostring2, '\0', sizeof(infostring2)); memset(mobname, '\0', sizeof(mobname)); sprintf(infostring2, "- Pet Information -"); output_table[0].format = infostring2; sprintf(petname, "Pet Name - %s", pd->pet.name); output_table[1].format = petname; output_table[2].value = pd->pet.pet_id; output_table[3].value = pd->pet.level; output_table[4].value = pd->pet.intimate; output_table[5].value = pd->pet.equip; output_table[6].value = pd->pet.hungry; sprintf(infostring1, "- Database Information -"); output_table[7].format = infostring1; // sprintf(mobname, "Mob Name - %s", pet_db_ptr->); output_table[8].format = mobname; output_table[9].value = pet_db_ptr->class_; output_table[10].value = pet_db_ptr->EggID; output_table[11].value = pet_db_ptr->FoodID; output_table[12].value = pet_db_ptr->AcceID; for (i = 0; i<13; i++) { sprintf(output, output_table[i].format, output_table[i].value); clif_displaymessage(fd, output); } return 0; } atcommand.inc ACMD_DEF(petstats), atcommand_def.inc or alternatively you can use on npc scripts. - script petinfo -1,{ OnInit: bindatcmd "petinfo",strnpcinfo(0)+"::OnPetInfo"; end; OnPetInfo: [email protected] = getpetinfo(PETINFO_ID); [email protected] = getpetinfo(PETINFO_CLASS); [email protected]$ = getpetinfo(PETINFO_NAME); [email protected] = getpetinfo(PETINFO_HUNGRY); [email protected] = getpetinfo(PETINFO_INTIMATE); [email protected] = getpetinfo(PETINFO_FOODID); [email protected]$ = getmonsterinfo([email protected],MOB_NAME); if ([email protected] == 0) { dispbottom "You do not have a pet.",0xff0000; dispbottom "@petinfo failed.",0xff0000; end; } dispbottom " ===== Pet information =====",0x00ff00; dispbottom "Original Name: "[email protected]$+" - Name: "[email protected]$,0x00ff00; dispbottom "Hungry: "[email protected]+" - Intimacy "[email protected],0x00ff00; dispbottom "Pet Food: "+F_ItemL2([email protected]),0x00ff00; end; } the result
  3. YJ1994

    Picklog db

    yes edit on your Log.cpp find edit the query
  4. using *getmapusers logic is one of the options
  5. tested with latest rA hash no problem at all(copy paste whole script) and just need change the type for getmapxy syntax. do the debugmes for map name.
  6. to getmapxy [email protected]$,[email protected],[email protected],BL_PC,[email protected]$[[email protected]]; *getmapxy("<variable for map name>",<variable for x>,<variable for y>{,<type>,"<search value>"}) This function will locate a character object, NPC object or pet's coordinates and place their coordinates into the variables specified when calling it. It will return 0 if the search was successful, and -1 if the parameters given were not variables or the search was not successful. Type is the type of object to search for: BL_PC - Character object (default) BL_NPC - NPC object BL_PET - Pet object BL_HOM - Homunculus object BL_MER - Mercenary object BL_ELEM - Elemental object
  7. sure you can no need to downgrade your rAthena git hash xd since theyre using #if PACKETVER >= 20201012 for example btw better use 2018 ragexe with latest kRO resources
  8. Job Sprites located on ¿© = Female ³² = Male
  9. same thing as functor said move #if PACKETVER >= 20141008 if( battle_config.pet_autofeed_always ){ // Always send ON or OFF ..... and #if PACKETVER >= 20170920 if( battle_config.homunculus_autofeed_always ){ // Always send ON or OFF ..... to `after` // Notify everyone that this char logged in [Skotlex]. map_foreachpc(clif_friendslist_toggle_sub, sd->status.account_id, sd->status.char_id, 1);
  10. Case Solved Need to use this Patch (Nemo) Default value is 13, need to change to 20. Thanks
  11. Hello rA, anyone know what happen on my font like 30% try to hide from something. the better result should be like this Client Version 20180919 What i do 1. Change langtype on clientinfo.xml. FAIL 2. Use translalation from zackdreaver/asheraf. FAIL 3. Without translation (Clean kRO). FAIL 4. Use Recommended Patch/Minimum from Nemo. FAIL Thanks
  12. im not sure but you can check on script_commands with
  13. Imperial Glove is a jRO item i guess, you can find the sprites and texture on jRO client. for later on you can download fresh jRO client on https://ragnarokonline.gungho.jp/beginner/download.html dont worry no need to register just press download and update the grf with ai4rei tools for future on. here we go the files on attachment below Imperial Glove.rar
  14. you got me thanks for the answer. case solved
  15. thank you functor for the answer, but the problem is on that link not the RE version and i try to pack with Nemo most of patch is fail. back on that site i found 2018-09-19aRagexeRE on clients info. but on download page there is no 2018-09-19aRagexeRE i also try to change the parameters to get the file to the result show 5mb file size and fail to patch with Nemo thank you