Jump to content

Frost Diver

Members
  • Posts

    156
  • Joined

  • Last visited

Posts posted by Frost Diver

  1. On 9/14/2021 at 1:29 AM, Yuno said:

    On stateiconinfo.lub
     

    StateIconList[EFST_IDs.EFST_DEVOTION] = {
    	haveTimeLimit = 1,
    	posTimeLimitStr = 2,
    	descript = {
    		{ "Devotion", COLOR_TITLE_BUFF },
    		{ "%s", COLOR_TIME },
    		{ "Under influence of devotion." },
    		{ "Received shield buff." },
    	}
    }

    On stateiconimginfo.lub
     

    [EFST_IDs.EFST_DEVOTION] = "devotion.tga"

     

    Great! Thanks alot 👍

  2. On 3/19/2021 at 10:48 PM, Haruka Mayumi said:
    #!/bin/bash
    run=1
    if [ "$run" -eq 1 ]; then
    if [ $(ps | grep -e login-server | wc -l) -eq 0 ]; then
    # Login server down
    ./login-server & > /dev/null
    fi
    if [ $(ps | grep -e char-server | wc -l) -eq 0 ]; then
    # Char server down
    ./char-server & > /dev/null
    fi
    if [ $(ps | grep -e map-server | wc -l) -eq 0 ]; then
    # Map server down
    ./map-server & > /dev/null
    fi
    sleep 10
    ./auto-restarter.sh &
    fi

    you can also cut each server in run it on screen.

    Hi, may i know how to use/run this script?

  3. up! still looking for help

    On 8/29/2021 at 10:55 PM, Emistry said:

    try change

    			mes "Proceed?";
    			if(select("Yes:No")==1)
    			{
    				set [email protected],getPoints(getcharid(3));
    				if([email protected]>[email protected])
    				{
    					next;
    					mes .npcname$;			
    					updatePoints(getcharid(3),[email protected]);
    					getitem [email protected],[email protected];
    					mes "Here you go!. Thank you for voting. Don't forget to vote again. :D";
    				}
    				else
    					mes "Sorry, you do not have enough points for this item.";				
    			}

    into

    
    			mes "Enter an Amount and proceed:";
    			input [email protected], 1;
    			if(select("Yes:No")==1)
    			{
    				set [email protected],getPoints(getcharid(3));
    				if([email protected]>= ([email protected] * [email protected]))
    				{
    					next;
    					mes .npcname$;			
    					updatePoints(getcharid(3),([email protected] * [email protected]));
    					getitem [email protected],([email protected] * [email protected]);
    					mes "Here you go!. Thank you for voting. Don't forget to vote again. :D";
    				}
    				else
    					mes "Sorry, you do not have enough "+([email protected] * [email protected])+" points for this item.";				
    			}

     

    Great! Thabks alot man 👍

  4. Hello!

    I need a little help. How can i make this script to have an input option. Example, i got 30 vote points. And when i talk to npc, i want to exchange only 15 vote points to vote token. So i need to input the amount of 15 to be exchange. The thing is, this script can only allow me to exchange 1 by 1 and it doesn't have an input option. Here's the script. 

    Thank you guys ^^

    votenpc.txt

  5. 22 hours ago, M a p l e said:

    https://github.com/rathena/rathena/blob/master/conf/battle/player.conf#L179

    in rA by default it is 3 cells apart, you can adjust it however you want.

    // Minimum distance a vending/chat room must be from a NPC in order to be placed.
    // Default: 3 (0: disabled).
    min_npc_vendchat_distance: 3

     

    this is distance from npc right? how about distance from other player's shop/vendor? 

  6. On 1/24/2021 at 9:53 PM, Cookie-rae said:

    The creator did something on the code why it jump even no one sells. 
    I have a fix code for this and a working correctly.

    Can you share the fixed and working correctly script sir?

    bump! still need help for this. anyone?

  7. On 12/31/2020 at 4:31 PM, Cookie-rae said:

    i have a latest of this one. 

    can you share, my friend?

    bump

    On 1/16/2021 at 11:59 AM, Cookie-rae said:

    thanks alot! im much appreciated. god bless you buddy

    hello, just tried the script. but i think it got bug where it's always jumped to the same vendor. when i type the command using the item ID or any item ID that are not sell by any vendors, it's still jumped me to the same vendor

  8. Hello guys!

    I would like to ask, does anyone here can fix/update this script or have a working script for this? I've tried to install it but it's not working on latest git.

    Thanks in advance

     

     

  9. 9 hours ago, TheKingDino said:
    while (1) {
    		if (getareausers("new_3-3",130,54,88,37) >= 2){
    			disablenpc "Duel-Assistant";
    			pvpon "new_3-3";
    			}

    to
     

    while (1) {
    		if (getareausers("new_3-3",130,54,88,37) >= 2){
    			disablenpc "Duel-Assistant";
              		sleep 5000;
    			pvpon "new_3-3";
    			}

    Have you tried this? I haven't worked with NPCs for a while.

    If it does work you can edit the sleep 5000; to whatever number is desired.

    Oh sorry. What i mean is a 10 secs countdown once there are 2 players in the arena. Countdown like localbroadcast in a map before pvp turn on. And also, there is a time limit once duel is started for 5 minutes only

  10. Hello!

    How can i add a timer like 10 seconds before the duel start in the arena? So that players can get ready before pvp turn on in arena. And also, once 2 players are inside the arena, there are limit for 5 minutes only. If exceed the time limit, both players will be kicked out of the arena. Here's the script:

    duel.txt

  11. is it possible to combine this 2 functions into 1? i think i found the error since im using @afk diff currently. when i tried to remove 1 of the functions, recompiling is working without any errors

     

    void pc_update_last_action(struct map_session_data *sd)
    {
    	nullpo_retv(sd);
    	t_tick tick = gettick();
    
    	sd->idletime = last_tick;
    
    	if (sd->state.afk == 1)
    	{
    		sd->state.afk = 0;
    		clif_changelook(&sd->bl, LOOK_HEAD_TOP, sd->status.head_top);
    		clif_displaymessage(sd->fd, "Happy to see you again !");
    	}
    }
    
    
    void pc_update_last_action(struct map_session_data *sd)
    {
    	struct battleground_data *bgd;
    	int64 tick = gettick();
    
    	sd->idletime = last_tick;
    
    	if (sd->bg_id && sd->state.bg_afk && (bgd = bg_team_search(sd->bg_id)) != NULL && bgd->g)
    	{ // Battleground AFK announce
    		char output[128];
    		sprintf(output, "%s : %s is no longer away...", bgd->g->name, sd->status.name);
    		clif_bg_message(bgd, bgd->bg_id, bgd->g->name, output, strlen(output) + 1);
    		sd->state.bg_afk = 0;
    	}
    
    	return 1;
    }

     

  12. 10 minutes ago, Brynner said:

    because it was outdated. but it can still be fixed just like the BG 2.0. btw they also removing threads like this.

    Yea i noticed that since the author is missing and no response. I've tried your diff but same error happens when recompile. Can u help me brynner?

  13. Hello!

    I need help on how to fix this issue.

    Im applying diff extended-bg by easycore and i got this error while recompiling (refer photo 1)

    Then i've tried to change the int pc_last_update to void pc_last_update and got this error while recompiling (refer photo 2)

    What should i do next? Im willing to pay if theres any charge to fix my issue.

    Thanks in advance

    1.PNG

    2.PNG

×
×
  • Create New...

Important Information

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