Jump to content

mcNyj

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

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

mcNyj's Achievements

Poring

Poring (1/15)

0

Reputation

  1. So basically what I was hoping for the .@limits[.@i[0]] is to store the IGN of the player after they receive the reward. I wanted the character names to be in an array, which the arrays of the character names being in another array for all the classes. Not entirely sure if it actually works that way, but from researching for C++ coding to pull an element in an array within an array, I was told to do something like array[0][0], so I tried that. Thinking back and using more of my brain, Maybe it should be .@limits[.@i][0]. for the part where I declare the classes, I just wanted them to be in an array, so that I could run in the for loop to check their job. And since there different job level requirements, I had them in 3 different arrays for 3 different if statements. im gonna try out the .@limits change later when I’m back from my travels, and I’ll update on if it works. Anyhow, thanks for the reply!
  2. I've recently attempted to write a script for race to 99, and it's not working for some reason. The only bug detected on the map server is the duplicate name thing, which could be fixed easily later and i don't think it's the cause. So basically how I want the script to work is that 2 players of each of the classes will be mailed an item via rodex. Aside from that, there will be an announcement to the server if he/she is the first or second person to reach max level, etc. The following is the script I've wrote, I've went through it multiple times, couldn't figure out why it's not working. By not working, i meant the reward wouldn't be sent, and no announcement was made when the character reached maxed level for their respective class. Since I'm using OnPCLoginEvent, I've tested it via relogging. I'm also storing character names for an npc that shows who are the players that won the race to 99, and I've got that covered and working fine. - script Race to 99 -1,{ set retrieved,0; setarray $racelk,""; setarray $racepally,""; setarray $racehw,""; setarray $raceprof,""; setarray $racesniper,""; setarray $raceclown,""; setarray $racegypsy,""; setarray $racehp,""; setarray $racechamp,""; setarray $racews,""; setarray $racecreo,""; setarray $racesinx,""; setarray $racestalker,""; setarray $racesl,""; setarray $racesg,""; setarray $racegs,""; setarray $racesn,""; setarray .@transjobs[0], Job_Lord_Knight, Job_Paladin, Job_High_Wizard,Job_Professor, Job_Sniper, Job_Clown, Job_Gypsy, Job_High_Priest, Job_Champion, Job_WhiteSmith, Job_Creator, Job_Assassin_Cross, Job_Stalker; setarray .@extjobs[0], Job_Soul_Linker, Job_Star_Gladiator, Job_Ninja, Job_Gunslinger; setarray .@rewards[0], 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518; setarray .@limits[0], $racelk, $racepally, $racehw, $raceprof, $racesniper, $raceclown, $racegypsy, $racehp, $racechamp, $racews, $racecreo, $racesinx, $racestalker, $racesl, $racesg, $raceninja, $racegs, $racesn; OnPCLoginEvent: if (BaseLevel == 99 && retrieved == 0){ for (.@i = 0; .@i < getarraysize(.@transjobs); .@i++) { if (Class == .@transjobs[.@i] && JobLevel == 70) { if (getarraysize(.@limits[.@i]) == 0) { set .@limits[.@i[0]], strcharinfo(0); set retrieved, 1; mail getcharid(0), "Sender", "Race to 99", 0, .@rewards[.@i], 1, 0, 0, 0, 0, 0; announce "Congratulations " + strcharinfo(0) + " for being the first " + jobname(Class) + " to reach Max Level!",0; } else if (getarraysize(.@limits[.@i]) == 1) { set .@limits[.@i[1]], strcharinfo(0); set retrieved, 1; mail getcharid(0), "Sender", "Race to 99", 0, .@rewards[.@i], 1, 0, 0, 0, 0, 0; announce "Congratulations " + strcharinfo(0) + " for being the second " + jobname(Class) + " to reach Max Level! This is the last reward for " + jobname(Class) + " class.",0; } } } for (.@i = 13; .@i < 17; .@i++) { if (Class == .@extjobs[.@i] && JobLevel == 50 && .@limits[.@i+13] < 1) { if (getarraysize(.@limits[.@i+13]) == 0) { set .@limits[.@i[0]], strcharinfo(0); set retrieved, 1; mail getcharid(0), "Sender", "Race to 99", 0, .@rewards[.@i+13], 1, 0, 0, 0, 0, 0; announce "Congratulations " + strcharinfo(0) + " for being the first " + jobname(Class) + " to reach Max Level!",0; } else if (getarraysize(.@limits[.@i]) == 1) { set .@limits[.@i[1]], strcharinfo(0); set retrieved, 1; mail getcharid(0), "Sender", "Race to 99", 0, .@rewards[.@i+13], 1, 0, 0, 0, 0, 0; announce "Congratulations " + strcharinfo(0) + " for being the second " + jobname(Class) + " to reach Max Level! This is the last reward for " + jobname(Class) + " class.",0; } } } if (Class == Job_Super_Novice && JobLevel == 99) { if (getarraysize(.@limits[17]) == 0) { set .@limits[$racesn[0]], strcharinfo(0); set retrieved, 1; mail getcharid(0), "Sender", "Race to 99", 0, .@rewards[17], 1, 0, 0, 0, 0, 0; announce "Congratulations " + strcharinfo(0) + " for being the first " + jobname(Class) + " to reach Max Level!",0; } else if (getarraysize(.@limits[17]) == 1) { set .@limits[$racesn[0]], strcharinfo(0); set retrieved, 1; mail getcharid(0), "Sender", "Race to 99", 0, .@rewards[17], 1, 0, 0, 0, 0, 0; announce "Congratulations " + strcharinfo(0) + " for being the second " + jobname(Class) + " to reach Max Level! This is the last reward for " + jobname(Class) + " class.",0; } } } } In addition, I know that the script is no where near optimal, so any suggestions would be greatly appreciated. Thanks in advance.
  3. still got the exact same issue after exporting the water texture into browedit data / texture. I have another friend that is using the same grf files, but does not have the same issue. My head is about to explode.
  4. I'm currently having this issue with BrowEdit, where whenever I load a map with water, it shows that message, and the water wouldn't load. I've checked my grf, and the water files are in the correct directory. Extracted the water files, have them in the directory where the error is stating, still the same issue. The black box is just the directory of the RO folder. I'm thinking maybe the water files are corrupted or something? Not entirely sure since I can still open the jpg and viewing them seems fine. The weird part is while I get error for all the water files, I was able to view them in official maps in game, while only water in custom map crashes me. Currently moving backwards by downloading older versions of grf to see if it helps, will update after i test them. Any help would be greatly appreciated. Thanks in advance. Here's the error message I'm getting.
  5. New issue emerged, don't know if I should open a new topic or not, I'm just gonna ask it here for now. I appear to be getting an error while trying to open an sql-file in the schemas I've made. Not sure what's going on, followed the exact steps, got this instead. Couldn't have logs to check account logs, etc.
  6. Edited: I've applied all the changes you guys suggested, I'm not sure which ones are the one that fixed it, together with changing the subnet_athena back to the original which is 255.0.0.0:127.0.0.1:127.0.0.1, and it's working now!! Thank you everyone! I really appreciate it!
  7. Oh okay, thank you so much! Back to searching the forum.
  8. I hate that I have to do this, I really wanted to figure this out myself, but I've been on this for more than 12 hours, looking all around the forums, applying all the potential fixes, it still doesn't work for me. I'm currently following this guide by Earnestinence https://rathena.org/board/topic/111830-tutorial-video-edition-how-to-setup-rathena-and-run-ragnarok-updated-2018-7-28/ Here's the longs for the char, map, login servers. So the few potential fixes I've tried are char_conf char_ip: 60.x.x.x //WAN IP login_ip: 127.0.0.1 map_conf char_ip: 127.0.0.1 map_ip: 60.x.x.x //WAN IP subnet_athena subnet: 255.255.255.0:60.x.x.x:60.x.x.x //WAN IP on both the placeholders rathena/src/custom/defines_pre.hpp #define PACKETVER 20151104 I would appreciate it a lot if someone could assist me with this issue. Thanks in advance.
  9. Hi, I've used to own a couple of servers back in the day, but I was using pre-made servers from ragnarok hosts that pretty much spoonfed me everything, all I had to do was edit some scripts to change in game stuff. Now I'm trying to learn more about hosting a server using hosts like AWS, OVH, etc. I'm not sure how much difference it is, just wanted to learn ? My questions are: How does this whole thing work? Do I have to send any specific files to the host for them to host it? I've read a topic mentioning getting an IP from the host and using the IP in the configuration files, does that mean I have to run the servers on my end, while the data are being send through the host's servers? You could obviously tell from my questions I'm no computer scientist, hopefully I posted this in the correct section of the forum.
×
×
  • Create New...