Jump to content

Akkarin

Forum Manager
  • Posts

    3,067
  • Joined

  • Last visited

  • Days Won

    182

Community Answers

  1. Akkarin's post in opening the storage when using an item was marked as the answer   
    Essentially, you can just use "openstorage; end;", though following the other items in the database that provide access to the kafra storage would be a good way to go. The Kafra Card (id:12211) uses callfunc "F_CashStore"; to bring up an npc dialogue window which then opens the storage. It's up to you how you implement this.
  2. Akkarin's post in [Error] Command "make" doesn't work at all. was marked as the answer   
    Use ./configure first, then you can 'make server'.
  3. Akkarin's post in About LINQ was marked as the answer   
    Short answer: No.
  4. Akkarin's post in MAX_EVENTQUEUE and Server Optimization was marked as the answer   
    From what i understand, it's optimum value is 2. I personally have set mine to 20 as i have a lot of OnPCLoginEvent scripts which would ordinarily exceed the queue value.
    There's no magic settings to "optimize performance". The more scripts you run on a server, the more resources it will use. The more players you have connected, the more scripts you have running.
    The best answer i can give you for number 3 though, is to avoid scripts that use timers/loops. Scripts that use static data perform better than scripts that use dynamic data. Keep your variable usage to a minimum by using bitmasked values. Event scripts that spawn x amount of monsters in a specific location at x times of the day are discouraged, as that will create your resource bottlenecks.. but if you know where they are, then you can do things to combat them
  5. Akkarin's post in Github pull request implementation was marked as the answer   
    rAthena takes "too long" to merge pull requests because too few people bother merging, testing, giving us their results.
    There are plenty of guides around on how to merge Pull Requests:
    https://help.github.com/articles/checking-out-pull-requests-locally/
    https://gist.github.com/piscisaureus/3342247
     
     
  6. Akkarin's post in VNC Shortcut support was marked as the answer   
    There's no single solution to this as there are many aspects to running a VNC server that affect how this would be setup.
    For a basic example though, you can look at these:
    Desktop shortcut file (start.desktop)
    [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Start rAthena Type=Application Terminal=false Exec=/path/to/scripts/start_server.sh Icon=/path/to/icon.png start_server.sh
    #!/bin/sh DIR=/path/to/scripts xterm -title "Login Server" -bg black -fg white -hold -e $DIR/start_login_server.sh & start_login_server.sh
    #!/bin/sh cd /path/to/rAthena ./login-server There are a great many guides on the internet that can walk you through setting up a VNC server and then configuring it to run scripts based on desktop shortcuts.
     
  7. Akkarin's post in HELP! rAthena Error 10061 was marked as the answer   
    As i said, the error is telling you which file is the problem. It's even telling you which line the issue is on.
  8. Akkarin's post in (2015-11-02aRagexe) Both Rodex and Mail System disabled? was marked as the answer   
    RODEX is still being completed, while the old mail system isn't compatible with newer clients because of RODEX being introduced.
    Everyone seems to be waiting on the Devs to add new features. This would be sped up by people testing on official servers and providing packets, screenshots, replays, video files - anything to help the devs. Most server owners seem to be able to add their own content based off official servers before rAthena gets it because they do their own background work and then don't bother sharing it, because "they're the best servers because they have newer stuff". Very few people help the devs out so that code can make it's way into the master branch of the repo.
    If you want to use the old mail system, use an older client.
  9. Akkarin's post in where is geffenia quest npc was marked as the answer   
    npc/quests/the_sign_quest.txt
  10. Akkarin's post in How to make a sub-directory inaccessible? was marked as the answer   
    Inside your patch folder, have a .htaccess file that contains:
    Options -Indexes That will remove directory indexing so your patch files don't just appear as a list when your directory is visited... or simply put a blank index.htm file in there..
  11. Akkarin's post in emu compile error was marked as the answer   
    Latest GIT compiles fine. Check that things you've added previously work with later implementations.
  12. Akkarin's post in Cinematic inside client was marked as the answer   
    The client can call openning.bik to play when the client is launched. As far as i understand there's no way of inserting any other kind of cinematics into the client to play at other times.
  13. Akkarin's post in Is it possible to @warp into a instanced dungeon? was marked as the answer   
    No - players need to join the instance via the instance script commands, otherwise they'd be @warp'ing themselves into the map without any of the instance scripts running.
  14. Akkarin's post in Server crashing was marked as the answer   
    Without knowing your full situation, it's impossible for anyone to answer your question. rAthena doesn't just "hang", so it's possibly a resources issue, most likely you're running on a system with restricted CPU availability, or you're running out of RAM. Check those first, then provide more information.
  15. Akkarin's post in Flux cp Naviagion link help was marked as the answer   
    <?php echo $this->url('pages', 'content', array('path' => 'rules')) ?> equates to <a href="?module=pages&action=content&path=rules">  
  16. Akkarin's post in FluxCP Donation Issue was marked as the answer   
    Nope - paypal has IPN support for both types of accounts so you don't need to change anything.
  17. Akkarin's post in How to Properly use DonationNPC.txt was marked as the answer   
    Changing the donation system to issue points in-game instead of keeping them as donation credits on the site isn't that difficult. You'd just need to modify the npc script to check for donation credits with a timer and then deduct them from the sql table for the CP.
  18. Akkarin's post in Flux cp was marked as the answer   
    https://code.google.com/archive/p/fluxcp/
  19. Akkarin's post in Cart weight was marked as the answer   
    It's likely a limitation doesn't exists - it's more due to the fact that the defines in mmo.h are just that.. a define. They're not configs and changing any of them will have odd effects throughout the emulator.
  20. Akkarin's post in Register _m _f how ? was marked as the answer   
    When you open the client, instead of typing in your username to login, you type the username you want with _m or _f to register through the client.
    Example: Akkarin_m would register a male account called Akkarin. The password you use when registering is also the password you'd need to use the next time you login.
  21. Akkarin's post in Multiple Server Question was marked as the answer   
    You can have many char & map servers connect to a single login server, just use the same login server details in each of your configs. Editing athena-start to remove the login server is the easiest solution.
  22. Akkarin's post in Freebie NPC using Account SQL was marked as the answer   
    Untested example:
    prontera,100,100,5 script Freebie 123,{ if(accfreebie > 0){ goto L_Already; } .id = getcharid(3); if(.id < 2000051){ getitem .reward, .qty; accfreebie = 1; mes "Here, have a reward!"; close; } L_Already: mes "You have already been given this reward."; close; OnInit: .reward = 501; // Red Potion .qty = 1; end; } Alter to suit your needs. You can find basic functions for scripting in the script_commands.txt file
  23. Akkarin's post in Latest RO Files? was marked as the answer   
    https://rathena.org/board/forum/99-client-releases/
    There are several threads offering kRO's installer and/or files. Please use the search feature.
  24. Akkarin's post in OnInit: was marked as the answer   
    If-statements with more than one line of code to perform should be in curly braces:
    OnInit: if (gettime(3) >=0 && gettime(3) <=3) { [email protected] = 1; night; } if (gettime(3) >=4 && gettime(3) <=7) { [email protected] = 0; day; if (gettime(3) >=8 && gettime(3) <=11) { [email protected] = 1; night; } if (gettime(3) >=12 && gettime(3) <=15) { [email protected] = 0; day; } if (gettime(3) >=16 && gettime(3) <=19) { [email protected] = 1; night; } if (gettime(3) >=20 && gettime(3) <=23) { [email protected] = 0; day; } end; Don't forget that gettime() now uses constants:
     
  25. Akkarin's post in NPC isn't showing any dialogue box (Help please) was marked as the answer   
    Your script has a few curly braces in the wrong place. Try this: 
    hoh_v5,120,143,6 script Room 1 858,{ mes "[Woman]"; mes "Please enter your password"; next; input [email protected]$; if ([email protected]$ == "password") { mes "[Woman]"; mes "Well done, you typed it correctly."; next; switch(select("Enter your room:Cancel")) { case 1: warp "hoh_v5",27,236; break; case 2: break; } } else { mes "[Woman]"; mes "Sorry, you got it wrong."; close; } end; } Please use the Codebox in future
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.