Jump to content

JulianD

Members
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JulianD's Achievements

Poring

Poring (1/15)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Greetings appreciated community members, leaders and friends, I would like to kindly reach out to you *the amazing community*, inquiring about the rates that are found on db/item_findingore.txt, because I have been trying to change those rates and add 4 more entries to allow the Blacksmith Passive skill "Finding Ore", to allow it to have Bradiums and Carniums dropped too, as well as increase each of all types of ores that can be found individually. I have attempted setting multiple rates, such as 100, 1000 and even 10000 assuming 10000 would mean 100% chance: However, none of those changes are working on my renewal server... I would like to highlight that I have made changes on the db/item_findingore.txt and also db/import/item_findingore.txt, but none of those seem to work. I also noticed there is no item_findingore.txt file inside of db/re, and I even tried adding it just to make sure the settings could match. According to the rates that I have attempted to set, every time I kill a monster (with the Finding Ore skill learnt on a Blacksmith), one of 24 items should be picked and because of having those increased rates, monsters should always give one of the items on the list, but they are not giving me any: I would also like to remark that the config on conf/battle/drops.conf is currently: // The rate of monsters dropping ores by the skill Ore Discovery (Default is 100) finding_ore_rate: 100 I actually thought maybe some src modding might be needed, but I'm not really sure which file to look for, I tried looking the skill functionality but I wasn't able to find it. I wanna thank you in advance if you can help me, Kind regards, JulianD
  2. @Haruka Mayumi Thank you, your explanation was very clear to me and I am currently configuring it to work with the IDs that I want. I am currently thinking about also adding a different summon time. Would it be like this?: - script TFRSummoner -1,{ OnInit: setarray .Monster[1],1002,1115; setarray .Chance[1],30,5; setarray .Time[1],120,30; end; OnNPCKillEvent: .@id = inarray(.Monster,killedrid); if(!.@id) end; if( rand(1,100) <= .Chance[.@id]) atcommand "@summon "+killedrid+" .Time[.@id]"; end; } EDIT: I actually tested the script, and it does not display any error message, and the mobs are still being summoned... The only thing is that the summon is not lasting for the time that I set on the .Time array, but all mobs are lasting just 1 minute (default). I guess I'm not calling the value of the array properly. EDIT2: I was able to finally make it work: (If someone wants to add the script, it is currently summoning Champion Mobs with 75% chance during 20 minutes, mini-bosses and MVP have different % and duration depending on the amount of monsters that globally and naturally spawn as following: (Still all values can be changed separately.) # of Mobs Chance Time 1 100 240 2-5 100 120 6-10 89 107 11-15 79 94 16-20 68 82 21-25 58 69 26-30 47 56 31-35 37 43 36-40 26 31 41-45 16 18 +46 5 5 - script TFRSummoner -1,{ OnInit: setarray .Monster[0],1089,1090,1091,1092,1093,1096,1120,1198,1203,1204,1205,1259,1262,1283,1289,1295,1302,1307,1320,1388,1582,1626,1640,1641,1642,1643,1644,1645,1681,1700,1701,1702,1703,1704,1705,1706,1707,1709,1710,1711,1712,1720,1754,1755,1765,1783,1829,1830,1831,1833,1839,1870,1873,1894,1916,1918,1919,1920,1921,1929,1956,1958,1959,1960,1961,1990,1991,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2198,2208,2228,2229,2230,2231,2232,2233,2234,2242,2243,2244,2317,2320,2321,2322,2332,2470,2471,2472,2473,2474,2475,2476,2530,2542,2562,2563,2564,2650,2665,2675,2684,2685,2686,2721,2726,2736,2742,2743,2744,2788,2828,2861,2921,2923,2942,2988,2997,2998,2999,3001,3002,3003,3004,3005,3008,3098,3099,3105,3106,3108,3109,3191,3192,3193,3194,3195,3196,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3239,3240,3241,3242,3243,3244,3245,3246,3253,3474,3475,3484,3741,1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1418,1492,1511,1583,1623,1630,1646,1647,1648,1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1832,1871,1885,1917,2022,2068,2087,2131,2156,2165,2202,2235,2236,2237,2238,2239,2240,2241,2249,2251,2253,2255,2319,2362,2441,2442,2483,2529,2532,2533,2534,2535,2996,3000,3029,3073,3074,3091,3092,3096,3097,3124,3181,3254,3450,3473,2603,2604,2605,2606,2607,2608,2609,2610,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2645,2646,2647,2648,2649,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2666,2667,2668,2669,2670,2671,2672,2673,2674,2676,2677,2678,2679,2680,2681,2682,2683,2687,2688,2689,2690,2691,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2722,2723,2724,2725,2727,2728,2729,2730,2731,2732,2733,2734,2735,2737,2738,2739,2740,2741,2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,2766,2767,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,2780,2781,2784,2785,2786,2787,2789,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2857,2858,2859,2860,2862,2863,2864,2865,2866,2867,2868,2869,2870,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913; setarray .Chance[0],100,89,89,100,100,100,100,5,47,58,58,58,79,58,89,5,16,68,5,100,100,100,100,100,100,100,100,100,79,5,5,5,5,89,89,89,89,100,100,100,100,58,5,47,79,5,5,5,5,5,89,5,100,47,100,5,5,5,5,100,100,79,100,89,89,100,100,100,89,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,5,100,100,58,100,100,100,100,100,100,100,100,5,5,89,100,100,100,100,100,37,26,58,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,89,100,89,100,100,100,100,100,100,100,100,100,100,100,79,5,5,89,68,89,79,68,89,89,100,100,100,100,100,100,100,100,100,100,100,100,89,89,79,79,79,89,89,100,100,100,100,100,100,100,100,100,100,100,100,100,100,58,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,89,100,100,100,100,100,100,100,89,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75; setarray .Time[0],120,107,107,120,120,120,120,5,56,69,69,69,94,69,107,5,18,82,5,120,120,240,120,120,120,120,120,120,94,5,5,5,5,107,107,107,107,120,120,120,120,69,5,56,94,5,5,5,5,5,107,5,120,56,240,5,5,5,5,240,240,94,120,107,107,240,240,120,107,120,120,120,120,120,120,120,120,120,120,240,240,240,240,120,5,120,240,69,240,120,120,120,120,120,120,120,5,5,107,240,240,240,240,120,43,31,69,240,240,240,240,120,240,240,240,240,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,240,240,240,240,240,240,240,107,240,107,240,120,120,240,240,240,240,120,240,240,240,94,5,5,107,82,107,94,82,107,107,240,240,240,240,240,240,240,240,240,240,240,240,107,107,94,94,94,107,107,240,240,240,240,240,240,240,240,240,240,240,240,240,240,69,240,240,240,240,120,120,120,120,120,120,120,120,120,120,120,120,120,240,240,120,120,240,240,120,120,120,240,240,120,120,120,120,120,120,120,120,240,120,240,240,240,120,240,240,107,120,120,240,240,240,240,240,107,240,240,240,120,120,120,120,120,120,120,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20; end; OnNPCKillEvent: .@id = inarray(.Monster,killedrid); if(!.@id) end; if( rand(1,100) <= .Chance[.@id]) atcommand "@summon "+killedrid+" "+.Time[.@id]+""; end; } Thank you once again @Haruka Mayumi for your excellent support. @Terces Thank you as well for taking your time to answer. I think that chances with specific IDs work for me because it will allow me to choose what monsters reward the players by fighting on their side for some time. I will probably add mini-bosses and MVPs for now, and I will try to select some other specific regular mobs to be summoned as well. It was interesting to read your script too, I was able to learn from it too.
  3. Greetings appreciated development community, I'm trying to create a system that allow players to summon the monster they killed with a variable % chance: For example: After killing 1 Poring, it will have a 100% chance of using "@summon Poring 60" (60 will mean that the summon will last for 60 minutes) After killing 1 Eddga, it will have a 5% chance of using "@summon Eddga 60" This is so far what I have written: (I'm a beginner scripter, so I don't certainly know what I'm doing) - script TFRSummoner -1,{ end; OnNPCKillEvent: if( killedrid == 1002){ atcommand "@summon 1002 60"; } end; } This code allowed the players to summon a poring after killing it with a 100% chance, but I don't know how to make it work with a different % chance. Additionally, I don't know how to add multiple entries depending on different mob IDs. I would also like to know if there is any way to autodetect the monster ID that was killed, to avoid writing +1000 entries of different monsters in the script. Thank you for your assistance, I really appreciate it. Best regards, Julián Díaz Passionate Human Being
  4. Let me ask if I did understand clearly... I must add that function call on the main refiner NPC? Or what do I have to do? I'm really happy that you made it so far, I'm so glad and grateful for your help. EDIT: I think it's because I changed npc/merchants/refine.txt not npc/re/merchants/refine.txt... my server is running renewal, so I think that could be it... I'll see it this night, gotta go to work. I'll let you know if I can do it. ? EDIT2: So, I can't make it work... I don't get what am I doing wrong ? Does that line have to be commented with //? // callfunc("F_isCustomLevels",.@itemid,.@typevar$,.@levelvar,.@zenyvar,.@materialvar);
  5. I did now, no error shown on console, but when I do try to upgrade, Tirfing (ID:1139) still acts as a lv 4 weapon: OnInit: $WeaponL5_Zeny = 17600; $WeaponL5_Material = 6224; setarray $WeaponL5[0],1139; setarray $WeaponL5_Rates[0],100,100,100,100,95,90,85,80,75,70,65,60,55,50,45,40,35,30,25,20; end; }
  6. What about the normal values? I have all of these on zero. Must have impact whenever the npc try to do refine, it is not set even the required items or zeny, so I guess blacksmith'll do nothing. Please help me with Edit2 Above. I don't see any mistake.
  7. That's awesome job you did man, I've been checking the gist, trying to analyze all those codes you made, I'm afraid I did understand like 40% of all things on there. I'm going to do some research about the commands and variables on there, 'cause I don't really know how setarray or .@commands work. I'm not really clear about what to do when you say "try just patch" the refine.txt npc. I just add those lines in green and delete red ones? Sorry if I'm not that smart enough, but I'm a rookie on these scripting things. EDIT1: I attached my refine_db.yml because I think I have to give values on there based on the script you sent me? I mean, if you look at my file, all of my values are in zeros. Do I have to put values on refine_db for normal lv1 shields lv1 armors and lv1to-v4 weapons as usual? Or can I do it in with: $WeaponL1_Zeny = 1000; $WeaponL1_Material = 1010; setarray $WeaponL1[0],1103; setarray $WeaponL1_Rates[0],100,100,100,100,95,90,85,80,75,70,65,60, 55,50,45,40,35,30,25,20; $ArmorL1_Zeny = 800 $ArmorL1_Material = 998; setarray $ArmorL1[0],2302; setarray $ArmorL1_Rates[0],100,100,100,100,100,95,90,85,80,75,70,65, 60,55,50,45,40,35,30,25; ...and so on with the rest of them? EDIT2: I added the script but gives me this error: This is the file:
  8. Greetings community, I'm running a Ragnarok project which I will be releasing in some time, and I was planning to have up to Level 5 and Level 6 Weapons and Shields. So, first, I came up to think about how can I do that, so I realized I can't modify source to have 'em. Or at least, I don't know how to do it. But, it's okay, that's not the problem, because I have found that making a script which increase atk or matk would work, depending on the weapon or defense or damage taken depending on armor or shield. So, I added this to item scripts: (one by one) Alright, that works good so far, has nothing to do with the actual weapon level that would be a max of Weapon Level 4 on item_db. I also modified refine_db.yml so items won't gain any bonus at all by themselves through refining process. So refine_db.yml has ZERO (0) atk or def bonus on all cases. For armors and shields I used another scripts so it would be a balanced thing: Alright, I've tested those scripts and are working perfectly, values and that all works for the server class, mobs and other setups. Damage are balanced between players, mob and other players and when I do upgrade the items, bonuses are working just fine. So, the purpose of this post is about the refining NPCs. 'Cause I want the Blacksmiths NPCs to be able to refine up to Level 5 and 6 weapons and shields. As the emulator can't read those values, I thought about making a whole new NPC that read for the items IDs (I would add one by one) and then returning those values as a custom way to read Item Level. Also, custom upgrade rates are needed for this, 'cause refine_db.yml won't read level 5 or 6, so I thought about making the npc pick a random number from 1 to 100. For example: -Blacksmith NPC first read the item ID to check its "item level" which would then lead to another part of the script: if item id (1103,1106,1125,1127,1135) Those are weapons level 1. goto R_WeaponLevel1 if item id (1116,1117,1124) Those are weapons level 3. goto R_WeaponLevel3 if item id (1138,1140) Those are weapons level 6. goto R_WeaponLevel6 if item id (2102) Guard goto R_ShieldLevel1 if item id (2148) Rosa Shield goto R_ShieldLevel6 if item id (2302) Cotton Shirt goto R_ArmorLevel1 if item id (2342) Legion Plate Armor goto R_ArmorLevel6 At the end we'll have R_WeaponLevel1, R_WeaponLevel2, R_WeaponLevel3, R_WeaponLevel4, R_WeaponLevel5, R_WeaponLevel6, R_ShieldLevel1, R_ShieldLevel2, R_ShieldLevel3, R_ShieldLevel4, R_ShieldLevel5, R_ShieldLevel6, R_ArmorLevel1, R_ArmorLevel2, R_ArmorLevel3, R_ArmorLevel4, R_ArmorLevel5, R_ArmorLevel6. -Now NPC would ask for the upgrade items and zeny required to do the upgrade attempt: -Now that NPC checked for the items and zeny, it would probably check item's current upgrade level. (I don't know how's that on script language) -Then depending on +x current upgrade, it would pick a random number from 1 to 100 depending on these customs rates I've made so far: (remember the numbers colors to reference examples given down) So, if we're upgrading for instance a #1138 which is Mysteltainn (Level 6 Sword) from +6 to +7, if the npc picks a number from 1 to 80 upgrade will result in success, but if it picks from 81 to 100 then the upgrade would fail. NPC would take Refined Bradium and 31700z. After this, if success, npc can do @refine 2 +1 (As if GM command) If we're upgrading #2148 which is Rosa Shield (Level 6 Shield) from +15 to +16, the npc would pick a number, if its from 1 to 45 upgrade will result in success, but if it picks from 46 to 100 then the upgrade would fail. NPC would take Carnium and 31700z. After this, if success, npc can do @refine 32 +1 (As if GM command) If we're upgrading #2302 which is Cotton Shirt (Level 1 Armor) from +19 to +20, the npc would pick a number, if its from 1 to 25 upgrade will result in success, but if it picks from 26 to 100 then the upgrade would fail. NPC would take Carnium and 31700z. After this, if success, npc can do @refine 16 +1 (As if GM command) So that's the NPC I do want for refining but I do not know how to do it. If you have read so far, let me thank you for your spent time and thank you as well if you do decide to help me making the script or at least telling me how can I do it. Thank you very much, I appreciate it.
  9. I've moved the character to Alberta and used the second client again. Still crashing when logging into the map server. Server consoles are not showing any error. It didn't work, but still thanks. I've tried using clean KRO. Still crashing when logging into the map server. Server consoles are not showing any error. It didn't work, but still thanks.
  10. So, I came here 'cause I've searched a lot already on these forums and can't find solution to my problem. I have three clients (exes)... First one, is the base "virgin" exe before diff. Second one, is one I diffed WITHOUT checking "Disable Packet Encryption" patch. Third one, is one I diffed CHECKING "Disable Packet Encryption" patch. And fourth one, is the one I use to connect to the server and it DOES connect properly and has no issues at all. The fact is, the "old" exe named "RO The Forgotten Realms" is made up from the same base exe and it does works fine without connection issues, can log into game, everything works fine... But, it doesn't shows auras on other levels rather than 99 and 175, it has chat repeat restriction, chat filter, font is small and it's hard to read main and battle logs when using @ commands. So... I wanted to diff another exe and check all those stuff including auras to fix them. Now guess what... None of both new exes (checked "Disabled Packet Encryption" and unchecked too) connects to the server properly. First new exe connects to character screen properly, no error at all: But when I select a character and try to login to map server: Second new exe connects to character screen properly, no error at all: Then I try to select a character and connect to map server.. and BOOM! (Stopped Working on loading screen) I still can connect to my server using the old exe "RO The Forgotten Realms" which like I said before, is from the same base exe. But I really need to fix all issues I mentioned before like auras and font stuff, etc... So, I need to make a new exe or what do I have to do? Help, please. Thank you. EDIT: I tried diffing the already diffed exe which connects properly just checking the options I wanted to fix, but when I try to connect, same Rejected from Server or Stopped Working errors appeared.
×
×
  • Create New...