Jump to content

Ninja

Members
  • Posts

    513
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Ninja

  1. You can actually use Cydh's tutorial for Multi Servers Though in his context, the servers are located inside 1 VM only. To get around that, setup 1 full server inside 1 VM, let's call it VM#1. In this VM#1, Make sure that your database, login-server and map-server are accessible externally by using the Public IP of your VM#1 in your conf files. Other than that, make sure that the user you created for your databases isn't bounded to 'localhost' rather should be '%' which means from anywhere. In your VM#2, use the Public IP of VM#2 in your conf files. You don't need to create a new login-server, just configure the char-server and inter-server to point to your VM#1. then point your map-server in VM#2 to your char-server in your VM#2. hence, graphically: Example: You have two VMs: VM#1: 1.1.1.1 VM#2: 2.2.2.2
  2. this is the "short way." The long way? Implement a hug database of costumes for each headgear in the game + create an NPC that will trade in the costume counterpart.
  3. Hey buddy, use the latest rathena, then copy-pasta. const.hpp skill.cpp
  4. Hi, long time no see. Here I am again having some free time but now, only for leisure purposes and maybe help out on anything I can. I've search the forums and didn't find anything related. I am stuck with one problem, I am trying to learn how to catch responses from menus generated via source. I know it's easy to do this via script and I've done a lot of them but I'm stuck on figuring out how to handle PC responses from source. Below is a snippet of my code that I'm trying to play with. skill.inc // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL // For more information, see LICENCE in the main folder #include "..\map\clif.hpp" #include "..\map\script.hpp" #include "..\common\socket.hpp" #include "..\common\malloc.hpp" #include "..\common\strlib.hpp" void test_skill_inc(struct map_session_data *sd){ struct s_packet_db* info = &packet_db[RFIFOW(sd->fd,0)]; if(sd->npc_id == 0){ //create and display the menu char* menu; menu = "this:is:a:test"; clif_scriptmenu(sd, -1, menu); } else { uint8 select = RFIFOB(sd->fd,info->pos[1]); //parse response switch(select){ case 1: clif_scriptmes(sd, sd->npc_id, "chose this"); break; case 2: clif_scriptmes(sd, sd->npc_id, "chose is"); break; case 3: clif_scriptmes(sd, sd->npc_id, "chose a"); break; case 4: clif_scriptmes(sd, sd->npc_id, "chose test"); break; } clif_scriptclose(sd, sd->npc_id); } } skill.cpp #include "../custom/skill.inc" int skill_castend_nodamage_id(...) ... case MC_VENDING: if(sd) { //Prevent vending of GMs with unnecessary Level to trade/drop. [Skotlex] if ( !pc_can_give_items(sd) ) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); else { test_skill_inc(sd); } } ... My aim is to pop up a menu - in this case, "this," "is," "a," "test" - when the vending skill(or generally any skill) is pressed then creates a message window that contains the chosen item from the menu. Will be grateful for the help ? thanks.
  5. Aug 2018:

    • Busy with life.
    • Not supporting anything for now.

    My life as a [ Dev. QA. Ops. ]

    Python. BASH. C++. Openstack. VMWare. Docker. Kubernetes.

    If you wanna discuss anything about these. Feel free to message me. Anything else, I won't be responding.

  6. If I may suggest, maybe you can also "open" the task list, if it exists, even just the minor to medium ones to the public and let them contribute? I know issues are there to get worked on but how about features and all that? That way you can offload/streamline some of the minor stuff to other people who wants to contribute. This is my 2 cents.
  7. I just want to confirm if it's really impossible at the moment.
  8. That's great. But if you can also optimize the Linux part then that would also be nice. Most users prefer Linux as they cost way less than a WindowsVPS.
  9. Rafael Mejia

  10. Yes you can, but you have to make sure that your internet connection is giving you public IP instead of NAT'd IPs.
  11. if it's rAmod, I don't think it's better to ask the rAmod devs themselves.
  12. @Secrets I've been looking forward and waiting patiently for this as I've got ideas to extend stuff but am holding back merge requests since @Aleos said to make stuff over it
  13. can you create a merge request for this and provide the link here? thanks and also I think I recall @Secrets planning to replace RFIFOs with packet structures with c++. I'm not sure if she's also considering refactoring this part.
  14. ////////////////////////////////////////////////////////////////////////////////// // Returns time remaining in a readable format. // The argument is subtracted from UNIX epoch time, or 'gettimetick(2)'. // -- callfunc "Time2Str",<tick in UNIX epoch time> // Example: // // Displays "Time left: 1 day, 1 hour, 8 minutes, 20 seconds" // set .@Timer, gettimetick(2) + 90500; // mes "Time left: " + callfunc("Time2Str",.@Timer); //////////////////////////////////////////////////////////////////////////////////
  15. I use it a lot to be honest. especially when I'm at work with no tasks to do.
  16. like I said, you should post what skillset you need so someone could check and help you don't give up. You can work on it slowly.
  17. Doesnt matter if theirs is dead. It's your motive goodluck and hope you do well
  18. You prolly want to mention what specific skillset you want from people to help you out I've seen potential in this too. Too bad, inspite of working for a web dev company doing tests, I've never coded stuff for web. I hope you do well with this project. Cheers!
  19. first you have to check if your WAN IP is the same as your Public IP. How? Check your router and see your WAN IP then compare it with the IP address you see in www.ipchicken.com, if they're the same. Then you're good to go. If not, you'll need to do some talks with your telecom company to give you a static IP.
  20. can you give the link to the src? thanks
  21. maybe you can give us a full list so we can pitch in information for you?
  22. The rendering is so crispy. I wonder if you already using DX11? and I'm excited to see how 3D monster would look like (Bow Guardian, Sword Guardian, etc.)
  23. Ninja

    Rodex Conflict

    I don't know. I think it will be for @Lemongrass to say
  24. Ninja

    Rodex Conflict

    we have the same issue for rodex + achievement. we will just have to wait for it to be merged with the latest rA commit and I think it'll work just fine.
×
×
  • Create New...