Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/21/21 in all areas

  1. [Guide] Adding custom Random Options Introduction: In this guide I will introduce you how to implement custom Random Options. I will use as an example the bonus "bAddEff". -------------------------------------------------------------------- - Server-Side - First of all we will add our custom option to item_randomopt_db (db\import\item_randomopt_db.txt) When opening this file will appear: // Items Random Option Database // // Structure of Database: // ID,{ Bonus Script } So we add this: RDMOPT_WEAPON_FREEZE,{ bonus2 bAddEff,Eff_Freeze,getrandomoptinfo(ROA_VALUE)*100; } In this case getrandomoptinfo(ROA_VALUE) is multiplied by 100, because 100 means 1% in bAddEff. Also, we need to add the constant, opening db\const.txt. Find: "//RDMOPT_ATTR_TOLERACE_ALL 193" And add below: RDMOPT_WEAPON_FREEZE 194 Server side is finished~ -------------------------------------------------------------------- - Client-Side - For display our custom options we must adding to enumvar.lub and addrandomoptionnametable.lub, located in (luafiles514\lua files\datainfo\) Editing enumvar.lub: Find: ATTR_TOLERACE_ALL = { 193, 10 }, And add: WEAPON_FREEZE = {194, 0}, *The first number must be same that added in const.txt* Editing addrandomoptionnametable.lub: Find: [EnumVAR.MDAMAGE_SIZE_LARGE_USER[1]] = "Magical resistance Large size monster +%d%%", And add: [EnumVAR.WEAPON_FREEZE[1]] = "Freeze an enemy when attacking +%d%%", %d% is equal to ROA_VALUE. -------------------------------------------------------------------- After completing all of the above your Random Option is ready to use. Remember that there is documentation of how to add random options to items and a sample npc. If you have doubts, write on the comments.
    1 point
  2. Go to the same line and simply remove a 0 from the 100 after rnd()% it should look like this: if (skill_id == SL_SUPERNOVICE && dstsd && dstsd->die_counter && !(rnd()%10)) { //Erase death count 1% of the casts pc_setparam(dstsd, SP_PCDIECOUNTER, 0); clif_specialeffect(bl, EF_ANGEL2, AREA); //SC_SPIRIT invokes status_calc_pc for us. }
    1 point
  3. Thank you rAthena Team you're the best! The best ServerRO The best Team Thank you.
    1 point
  4. Hola buenos dias Espero con esto poder ayudarte: 1)Prueba con el @ii 12887 si este no existe agregalo es facil te dare la instruccion(Suponiendo que todavia estas usando txt): ~anda a db/pre-re/item_db.txt y agrega al final o despues de el numero anterior que exista por ejemplo 12886 y luego agregas el 12887(mas que nada por tema de orden ahi tu eliges) 12887,C_Wing_Of_Fly,Infinite Flywing,2,0,,0,,,,,0xFFFFFFFF,63,2,,,,,,{ itemskill "AL_TELEPORT",1; },{},{} Luego anda a la carpeta donde tienes tu servidor y busca otra carpeta llamada System y luego al archivo llamado iteminfo.lua, dentro del archivo trata de buscar como realizamos en el ejemplo el 12886 agregas despues lo siguiente: [12887] = { unidentifiedDisplayName = "Infinite Fly Wing", unidentifiedResourceName = "ÆÄ¸®Àdz¯°³", unidentifiedDescriptionName = { "..." }, identifiedDisplayName = "Infinite Fly Wing", identifiedResourceName = "ÆÄ¸®Àdz¯°³", identifiedDescriptionName = { "The wings cut from fly to be made into enchanted item.", "Enables character to move to random spot on map." , }, slotCount = 0, ClassNum = 0 }, abres el servidor realizas un @reloaditemdb y luego @refresh y estarias listo ;D 2)Si no me equivoco para la skill que en este caso es la id 291(Class Change=SA_CLASSCHANGE) debes ir la carpeta db/mob_classchange.txt y ahi debes seguir la estructura que se te indica igualmente dentro hay algunos casos activos ya(Si quieres hacer la prueba mas rapido en el archivo que esta igual en la carpeta db/abra.txt desactiva todas las skill excepto la que te mencione la 291 y subele las chances esta es una manera mas facil de probar la skill y ajustar los mvp). Saludos.
    1 point
  5. Version 1.0.0

    1095 downloads

    This system is already activated in the source of the brAthena. It was created by Orce, and with my friend's help, we converted to rA, and it's working perfectly with the last revision Language: PT-BR, EN-US Ps. Sorry my english
    Free
    1 point
×
×
  • Create New...