Jump to content

TemplarOfTheMist

Members
  • Posts

    31
  • Joined

  • Last visited

Posts posted by TemplarOfTheMist

  1. Hello,

    I am curious if I delete logs let's say every 1 or 2 months, that it will have a negative impact on server performance/cause crashes etc.

    Can anyone tell me the possibilities of those things happening? Because logs are currently what's eating up the the server's storage. Maybe you can share best practices as well (when to delete, how etc)

    Thanks!

  2. 16 hours ago, Playtester said:

    You did not actually react to anything I said... the code I quoted is somewhere else. Debug it and answer my question or I can't help you.

    Apologies for misunderstanding your reply. Is there a way to debug it other that from Windows? I currently do not have a test server within my resources. My server is currently up on a Linux based VPS though.

  3. 6 hours ago, Playtester said:

    I honestly don't understand that code part either (why axes, why swords?).

    Anyway, you could debug here (just set a breakpoint, run server in debug, then log in and equip an item, then check the variables):

    
    	if(pos == EQP_ARMS && id->equip == EQP_HAND_R) { //Dual wield capable weapon.
    		pos = (req_pos&EQP_ARMS);
    		if (pos == EQP_ARMS) //User specified both slots, pick one for them.
    			pos = sd->equip_index[EQI_HAND_R] >= 0 ? EQP_HAND_L : EQP_HAND_R;
    	}

    Is pos "EQP_ARMS"? What is req_pos? What does pos get set to at the end?

    This is the block of code I currently have at pc.c:

    int pc_equippoint_sub(struct map_session_data *sd,struct item_data* id){
    	int ep = 0;
    
    	nullpo_ret(sd);
    	nullpo_ret(id);
    
    	if (!itemdb_isequip2(id))
    		return 0; //Not equippable by players.
    
    	ep = id->equip;
    	if(id->look == W_DAGGER	||
    		id->look == W_1HSWORD ||
    		id->look == W_1HAXE) {
    		if(ep == EQP_HAND_R && (pc_checkskill(sd,AS_LEFT) > 0 || (sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN ||
    			(sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO))//Kagerou and Oboro can dual wield daggers. [Rytech]
    			return EQP_ARMS;
    	}
    	return ep;
    }
    

    This seems to be the same one with the latest rAthena code but I have no idea why doesn't it work...

  4. From my research I think pc.c is the only one I should check... Here is my current PC.C

    int pc_equippoint_sub(struct map_session_data *sd,struct item_data* id){
    	int ep = 0;
    
    	nullpo_ret(sd);
    	nullpo_ret(id);
    
    	if (!itemdb_isequip2(id))
    		return 0; //Not equippable by players.
    
    	ep = id->equip;
    	if(id->look == W_DAGGER	||
    		id->look == W_1HSWORD ||
    		id->look == W_1HAXE) {
    		if(ep == EQP_HAND_R && (pc_checkskill(sd,AS_LEFT) > 0 || (sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN ||
    			(sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO))//Kagerou and Oboro can dual wield daggers. [Rytech]
    			return EQP_ARMS;
    	}
    	return ep;
    }

     

    Should this be changed to

    if(ep == EQP_HAND_R && (pc_checkskill(sd,AS_LEFT) > 0 && (sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN?
  5. Hello!

    I've been using the Hunting Missions script at GitHub. For some reason the Party Setup doesn't work for me. When the characters are in a party, the counter won't go up when they kill the required monster. But when he leaves the party, it gains normally.

    No errors on script run or compile. 

    Any help would be appreciated.

  6. Hello!

    I'd like to request a script, or just a draft on how to make an area with barricades to prevent entering the next area until 3 monsters (let's say 1 Poring, 1 Drops and 1 Poporing) are killed in the same map. I'd like to know which function should be used and how nested are they.

    The idea in my head would be

    -1 Script Name {
    If map have mobID present or mobID present or mobID present{
    summon barricades to prevent players from accessing the warp portal
    }
    else {
    remove barricades
    }

    I believe this won't have any bugs? or will this script only check once? I need to make my script running all the time in the map.

    And I need to set it to run only for an hour (so I guess OnHourxx)?

    If someone can make this idea into a real code that would be great

     

    Thanks in advance

  7. 24 minutes ago, Z3R0 said:

    Might be interested in attempting it, however I am working on some other projects right now, so if no one else offers to help, I can look at it when I have the time, doesn't appear to be too complicated.

    Thanks so much to even consider! I've added a few more specs in it so there will be less likely follow up additions, you can comment on any of the specs that are not obtainable via src modification

    Again, thanks so much

  8. Hello,

    I've been searching around for a 7v7/GvG script but I haven't seen anything that caters to what I want in my server. I would consider myself a novice in coding so I'd like to ask more experienced ones to just even modify existing scripts to these specs:

    - Can be time configurable (hourly), if no members register in 10 minutes it will cancel

    - GMs (admin level something) can disable the NPC if ever the map is gonna be used for an event

    - Party members can be set (for other people to make use of the script)

    - There must not be repeating classes in a party

    - 2 parties can register per session

    - Will be warped to guild_vsx, mapflags set to gvg rules

    - On warp, there will be 10 seconds to cast buffs/skills, they are closed in a box (barricade/invisible wall) to prevent setting up at an area early

    - Maybe if possible before the go message, no gvg mapflag yet so Priests can cast Assumptio during buffing period, and non when it starts

    - Battle begins in 3, 2, 1, go message

    - The goal is to eliminate the other team

    - If no one wins within 30 minutes, cast death on a random player every 10 seconds on the map until a team wins (is this possible?) if not, just kill all of them (lol) and announce noone won the match

    - Winner gets x amount of coins and is broadcasted

    Thank you in advance to anyone who would consider doing this script. 

  9. Hello,

    I just started making my own private server and I decided to have a VPS company setup the latest rAthena version. Now, I specified the Ragexe version of the client (2012-04-10aRagexeRE) and they gave me a DIFFd client already. It connects seamlessly without a problem. But I wanted to change the brackets in the guild name (currently it's (Guild Title) instead of [Guild Title]) so I just downloaded a clean 2012-4-10a version and DIFF'd it. My new version can't connect anymore.

    I didn't change anything yet Server Side, same with the clientinfo. Because the provided one still works.

    Now, I logged a ticket asking for what they used to DIFF and what did they DIFF. They answered they used NEMO (same with me) and they attached a clean RagexeRE and their NEMO DIFF log. I tried using both of it and it still won't connect. (I'm assuming the guy who set up the server isn't the same guy who replied to my ticket)

    Is there any way I can just manually HEX the current working client to just be the standard font (see attachment)/bracket, or is there a way to figure out what's causing my failed to connect issue? I would really like to diff my own version of the client.

    Thank you so much.

     

    Sample photo.png

  10. Hello,

    In my Ragnarok I want to use the PIN Code when logging in, but I want to edit the whole interface (buttons, background), where do I find those? I tried scouring the data.grf but to no avail. I can use the default ones though so I know it's there on my client.

    Thanks

  11. My server just got transferred from one VPS to another, meaning it worked before,

    I haven't changed client type/version, so basically the mmo.h stays the same and the packetver as well.

    But when I start up the server on the new VPS and logged in, I can see the server selection screen which is

    ServerRO (0) then it would just display Failed to Connect to Server after a few seconds.

    Here is what is happening on the console:

    404074_492972787394485_200569073_n.jpg

    Any ideas? Thanks in advance.

×
×
  • Create New...