Jump to content

Ninja

Members
  • Posts

    513
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Ninja

  1. Here's the item_db.txt reference, you can just go ahead and filter it out for yourself ? https://raw.githubusercontent.com/rathena/rathena/master/db/re/item_db.txt Also, here's a reference on how to create NPC shops https://github.com/rathena/rathena/blob/da83e6173857076d793820c40ce0cae67973d4a6/doc/script_commands.txt#L278-L292
  2. Short answer, you can't. Long answer, you can go around it by using set, BaseExp, JobExp, strmobinfo, OnNPCKillEvent and killedrid.
  3. problem is that nobody is maintaining NEMO anymore ?
  4. You prolly need this. https://github.com/rathena/rathena/blob/c856b07c45aed6c5842ee19a940f7e76f780221c/doc/script_commands.txt#L5003-L5012 *enable_items; *disable_items; These commands toggle the ability to change equipment while interacting with an NPC. To avoid possible exploits, the commands affect the particular script instance only. Note that if a different script also calls enable_items, it will override the last call (so you may want to call this command at the start of your script without assuming it is still in effect). The default setting, 'item_enabled_npc', is defined in 'conf/battle/items.conf'.
  5. Then that would be a huge problem as the release is made specifically for c++ releases. You might wanna ask the mod creator to port it to older versions of rA.
  6. Great. If you just want to separate servers but the same characters just point it to the same database. Hopefully, multiserver setups would have a mechanism to sync with each other so people from different geolocations can enjoy low lantency games.
  7. This is pretty straight forward, you just have to create another server account in the login database ? it's a rule that "no one account can be used more than once."
  8. As I can see above, you are still using ".c" which means a much older version as we are already into using c++. I think, the best thing to do is update your server to the latest rAthena and try to diff it again.
  9. I see. Well, as far as I can see, you are able to connect to the remote SQL database and the only problem now is the IP Address binding. Perhaps you might wanna try to check if your this VM has the interface for your IP via ifconfig or ip addr. Some hosting companies are using NAT and if that will be the case, you will have to ask your hosting company to provide you with a port and portforward it to your VM.
  10. Ayt. I guess this is good as done ?
  11. The IP addresses should be Public IP. The IP 1.1.1.1 and 2.2.2.2 are just examples
  12. Are you asking for anything? I'm not sure how to help you
  13. Ahh, no. I'm suggesting to change all your setarray lines to start at index 0. ? Ex. setarray .gar0[0]
  14. *rand(<number>{,<number>}); This function returns a number ... (if you specify one) ... randomly positioned between 0 and the number you specify -1. (if you specify two) ... randomly positioned between the two numbers you specify. rand(10) would result in 0,1,2,3,4,5,6,7,8 or 9 rand(0,9) would result in 0,1,2,3,4,5,6,7,8 or 9 rand(2,5) would result in 2,3,4 or 5 these will prolly help you. To make the story short, try starting at index 0. Hence, setarray .gar0[0], 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24; because .gar0[rand(getarraysize(.gar0))]; can still end up as .gar0[0] and will produce the same output as I've pointed out above
  15. I suggest that this be reported in the issues section of github for investigation
  16. You actually hit it right except for your understand with arrays. for example: set .@opt,rand(.mhd4); this would be evaluated as rand(0) as .mhd is not a numerical value. thus: .@opt = 0 so when .@opt is interpreted as an input value to setrandomoption setrandomoption(.@part,.@indx,.@opt,.@val,.@indx,getcharid(0)); You will be expecting an error since option 0 does not exist at all. next example: set .@opt,.thd0[rand(1,18)]; this will be interpreted as let x = rand(1,18), let's say it randomed a value of 2 let .@opt = index 2 of array .thd0 since: setarray .thd0[1], 13, 14, 11, 12, 16, 18, 3, 4, 5, 6, 7, 8, 20, 21, 22, 23, 24, 19; .thd[2] = 14 I assume that you already understand why it is so and thus you know the difference between starting at .thd0[0] vs .thd0[1]. thus, .@opt = 14. and will be interpreted correctly by setrandomoption since option 14 exists. TLDR; your set .@opt statements should point to a random index of an array hence follow the pattern THead: if(.@indx == 0) set .@opt,.thd0[rand(getarraysize(.thd0))]; if(.@indx == 1) set .@opt,.thd1[rand(getarraysize(.thd1))]; if(.@indx == 2) set .@opt,.thd2[rand(getarraysize(.thd2))]; if(.@indx == 3) set .@opt,.thd3[rand(getarraysize(.thd3))]; if(.@indx == 4) set .@opt,.thd4[rand(getarraysize(.thd4))];
  17. Let me try to point you to the right direction mate. https://github.com/rathena/rathena/wiki/Basic-Scripting https://github.com/rathena/rathena/blob/429541fb81ac5d54007b42eb9ca9393bb01d0856/doc/script_commands.txt#L8210-L8238
  18. Ninja

    Job Changer

    Hello, yes they do, but you can configure them to your liking. https://github.com/rathena/rathena/blob/429541fb81ac5d54007b42eb9ca9393bb01d0856/npc/custom/jobmaster.txt#L452-L477 OnInit: // Initialisation, do not edit these .NPCName$ = "[Job Master]"; // Settings .ThirdClass = true; // Enable third classes? .RebirthClass = true; // Enable rebirth classes? .SecondExpanded = true; // Enable new expanded second classes: Ex. Super Novice, Kagerou/Oboro, Rebellion? .BabyNovice = true; // Enable Baby novice classes? Disable it if you like player must have parent to get job baby. .BabyClass = true; // Enable Baby classes? .BabyThird = true; // Enable Baby third classes? .BabyExpanded = true; // Enable Baby Expanded classes: Ex. Baby Ninja, Baby Taekwon, etc. .BabySummoner = true; // Enable Baby Summoner? .LastJob = true; // Enforce linear class changes? .SkillPointCheck = true; // Force player to use up all skill points? .Platinum = true; // Get platinum skills automatically? .GetJobEquip = false; // Get job equipment (mostly weapons) on job change? // Level Requirements setarray .Req_First[0],1,10; // Minimum base level, job level to turn into 1st class setarray .Req_Second[0],1,40; // Minimum base level, job level to turn into 2nd class setarray .Req_Rebirth[0],99,50; // Minimum base level, job level to rebirth setarray .Req_Third[0],99,50; // Minimum base level, job level to change to third class setarray .Req_Exp_NJ_GS[0],99,70; // Minimum base level, job level to turn into Expanded Ninja and Gunslinger setarray .Req_Exp_SNOVI[0],99,99; // Minimum base level, job level to turn into Expanded Super Novice .SNovice = 45; // Minimum base level to turn into Super Novice
  19. There's a crowd funding project going on by @Lemongrass to release this to rAthena
  20. Did you check if there are some network maintenance with your hosting? Also, can you please post which git commit you're using?
  21. If you followed the setup I suggested correctly, the server will appear after logging in as the char server will be connected to the login server ?
  22. I have longed to pursue that problem, tbh. unfortunately, I haven't seen anybody who was able to resolve such unless I was out for too long that I missed it. Also, it'll be problematic if the the latency between the two servers exceed 50ms as delays will be very much conceivable beyond that number.
  23. Unfortunately, No. They will be 2 completely different servers under 1 login server
  24. Maybe you can also extend the guide for 1 login -> multi char -> multi map on different VMs. Seen an question about it.
×
×
  • Create New...