Jump to content

shatowolf

Members
  • Posts

    249
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by shatowolf

  1. 7 hours ago, iraciz said:

    [Error]:  Loading NPC file: npc/custom/dualkick.txt
    script error on npc/custom/dualkick.txt line 22
        script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes.
        17 : //===== Contact Info: ========================================
        18 : //= [Tauro]
        19 : //= Email: [email protected]
        20 : //= Discord: Trinity#7962
        21 : //============================================================
    *   22 : '-'    script  dl_map  -1,{
        23 : end;
        24 :
        25 :
        26 : OnInit:
        27 :        // 1= if you have gepard 0=if you do not use gepard
     

    at line 22. u should <tab>    22 : '-'<tab>script<tab>dl_map<tab>-1,{

  2. 1 hour ago, GMH said:

    Good day, I always got map crash issues during @reloadmobdb on my happy hour script. I tried to search but i cannot find the answer that related to this issue. Hoping that you guys could help me to figure out the map crash issue on happy hour or floating rates. 

    I have the screenshot of crash log from "gdb map-server map-server.core".

    By the way, i am using latest rAthena-rev62532.

    I also enabled the mobs_level_up: yes in conf/battle/monster.conf so the monster will level up each time a player is killed.

    This is the Happy Hour script i've been using:

      Reveal hidden contents

    -    script    HappyHourAuto    -1,{
     
    OnClock0200:
    OnClock0800:
    OnClock1400:
    OnClock2000:
        set $@brate,1000;
        set $@jrate,1000;
        set $@drate,500;
        setbattleflag("base_exp_rate",$@brate);
        setbattleflag("job_exp_rate",$@jrate);
        setbattleflag("item_rate_common",$@drate);
        setbattleflag("item_rate_heal",$@drate);
        setbattleflag("item_rate_use",$@drate);
        setbattleflag("item_rate_equip",$@drate);
        announce "Happy Hour Time!!!",bc_all,0xB6FF00;
        sleep 1500;
        announce "Happy Hour has started for 2 hour's and the new rates will be these: Base:"+($@brate/100)+"x, Job:"+($@jrate/100)+"x, Drop:"+($@drate/100)+"x, card not included.",bc_all,0xB6FF00;
        initnpctimer;
        set .HHAuto,1;
        sleep 1000;
        atcommand "@reloadmobdb";
        sleep 10000;
    end;

    OnTimer7200000:
        set .HHAuto,0;
        setbattleflag("base_exp_rate",$defaultbrate);
        setbattleflag("job_exp_rate",$defaultjrate);
        setbattleflag("item_rate_common",$defaultdrate);
        setbattleflag("item_rate_heal",$defaultdrate);
        setbattleflag("item_rate_use",$defaultdrate);
        setbattleflag("item_rate_equip",$defaultdrate);
        sleep 1000;
        atcommand "@reloadmobdb";
        sleep 10000;
        announce "Happy Hour Event has ended. Rates have returned to normal.",bc_all,0xB6FF00;
    end;

    OnPcLoginEvent:
        if (.HHAuto == 1) announce "Happy Hour Event currently active!",bc_self,0xB6FF00;
    end;

    OnInit:
        set $defaultbrate,700;
        set $defaultjrate,700;
        set $defaultdrate,300;
    end;
    }

    Thanks in advance and more power.

     

    map crash error.png

    you can check it at line 3031 at status.ccp.  

  3. On 8/2/2020 at 9:43 AM, aksehc said:

    na no ko na sya sa login_athena.conf ko.. at na restart na din pero still nakaka pag create pa din ako ng account gamit ang _M/F meron na bang naka encounter nito mga boss?

    comment mo dto ung login_athena.conf mo,   cover mo ung mga sensitive.

  4. 1 hour ago, aksehc said:

    pa request naman script ng 2 random box
    box 1 = pag inopen ko sya mag bibigay sya ng 1 custom items na random between 20001 - 20020 or more..
    box 2 = pag inopen ko sya mag bibigay sya ng 10pcs custom items na random between 20001 - 20020 or more...

    // ========================================================================================================
    //{ callfunc "CustomBox"; },{},{}
    function	script	CustomBox	{
    
    	set .@Total,9;
    	//<%>,<ItemID>,<Amount>
    	setarray .@P1[0],1,512,1; //Gallon Hat of Flame
    	setarray .@P2[0],2,512,1; //Crow_Tengu_Mask
    	setarray .@P3[0],3,512,1; //Canopy 
    	setarray .@P4[0],5,7179,10; //PODS
    	setarray .@P5[0],30,969,150; //(Gold) 
    	setarray .@P6[0],80,12016,10; //Speed_Up_Potion
    	setarray .@P7[0],90,12214,5; //12214
    	setarray .@P8[0],95,12412,5; //HE_Bubble_Gum
    	setarray .@P9[0],70,12103,5; //Bubble Gum
    	setarray .@Default[0],rand(969,512),rand(1,5);
    	set .@i, rand(1,.@Total);
    	if (rand(1,100) > getd(".@P"+.@i+"[0]"))
    	{
    		for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2)
    		{
    			getitem .@Default[.@j], .@Default[.@j+1];
    			if(!.@k[0])
    				setarray .@k[0], .@Default[.@j], .@Default[.@j+1];
    		}
    	}
    	else{
    		for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)
    		{
    			getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
    			if (!.@k[0])
    			{
    				set .@gz,.@i;
    				setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
    				break;
    			}
    		}
    	}
    	
    	if(1<=.@gz&&.@gz<=9)
    	announce ""+strcharinfo(0)+" has opened Egg Scroll and reward ["+getitemname(.@k[0])+" x "+.@k[1]+"]!",0;
    	specialeffect2 251;
    	end;
    }

     

  5. 53 minutes ago, erjsanmiguel said:

    Hi ! recently i used Devil Square event ... But all my players are using duals to abuse rewards ... I just want to make a warp/portal that will restrict dual char to enter the area by checking its Gepard ID ... If no same ID the player will warp into reward area but if it has It will kick out the dual player ...Thankyou !

    try this. credit to Tauro.

    -	script	dl_map	-1,{
    	end;
    
    OnInit:
    	// 1= if you have gepard 0=if you do not use gepard
    	set .Gepard,1;
    	end;
    	
    OnPCLoadMapEvent:
    	if (.Gepard == 1) {
    		getmapxy(.@map$,.@mapx,.@mapy,0);
    		query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(3)+"", .@UniqueId$);
    		query_sql("SELECT account_id FROM `login` WHERE last_unique_id = '"+.@UniqueId$+"'", .@CuentaId);
    		set .@error,getcharid(3,strcharinfo(0));
    		for(set .@i ,0;.@i<getarraysize(.@CuentaId);set .@i,.@i+1) {
    			if(attachrid(.@CuentaId[.@i])) {
    				if (.@CuentaId == 2000000) {
    					set .@j,0;
    				} else {
    					getmapxy(.@map2$,.@mapx2,.@mapy2,0);
    					if (.@map2$ == .@map$){
    						set .@j,.@j+1;
    					}
    				}
    			}	
    		}
    		detachrid;
    	
    	attachrid .@error;
    	if(.@j > 1) {
    		//dispbottom "Sorry, dual client is not allowed on this map.";
    		announce "Sorry, dual client is not allowed on this map.", bc_self;
    		warp "SavePoint",0,0;
    	}
    
    	end;
    	} else {
    		getmapxy(.@map$,.@mapx,.@mapy,0);
    		query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@UltimaIp$);
    		query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@UltimaIp$+"'", .@CuentaId);
    		set .@error,getcharid(3,strcharinfo(0));
    		for(set .@i ,0;.@i<getarraysize(.@CuentaId);set .@i,.@i+1) {
    			if(attachrid(.@CuentaId[.@i])) {
    //if .Gepard is 0 add id of accounts to which the system will not affect, brothers, couple, gms, etc ... .@CuentaId == accountId
    				if (.@CuentaId == 2000001 || .@cuentaId == 2000156 || .@CuentaId == 2000249 || .@CuentaId == 2000002 || .@CuentaId == 2000031 || .@CuentaId == 2000050 || .@CuentaId == 2000021 || .@CuentaId == 2000073 || .@CuentaId == 2000029) {
    					set .@j,0;
    				} else {
    					getmapxy(.@map2$,.@mapx2,.@mapy2,0);
    					if (.@map2$ == .@map$){
    						set .@j,.@j+1;
    					}
    				}
    			}	
    		}
    		detachrid;
    	
    	attachrid .@error;
    	if(.@j > 1) {
    		//dispbottom "Sorry, dual client is not allowed on this map.";
    		announce "Sorry, dual client is not allowed on this map.", bc_self;
    		warp "SavePoint",0,0;
    	}
    
    	end;
    	}
    }
    
    //Your map here
    //loadevents
    guild_vs3	mapflag	loadevent

     

  6. 3 hours ago, kevinyrchua said:

    Hi Guys,

    I tried searching through the forums and found few "fixes" tried them but didn't work. My rathena works perfectly through my local server, this only occurs through my VPS via OVH.

    First issue is that I encounter missing msvcr110.dll, after fixing that by adding that DLL through my system32 and syswow64 (don't know if this is just a quick fix), but I solved that issue.

    Now this is what I am trying to overcome.. maybe anyone here experiences the same issue or have tried and succeeded to fix them?

     

    What I have done... I already tried reinstalling windows server from 2016 to 2019 both same issue, tried to uninstall all redistributable file from 2015-2019 and reinstalled a new one, still failed.

    mapserver application error.PNG

    i recommended : linux - centos or debian. much stable.

  7. 4 hours ago, saggys said:

    already succes impelement proxy server. but when user type wrong pass, and ip proxy get ban from main server....
    how to solve this problem? bcz all player cant login using proxy bcz banned

     

    you can disable the

    (login_athena.conf)

    // Ipban features
    ipban_enable: yes (set to no)

  8. On 7/4/2020 at 9:18 AM, funtwocrasher said:

    Sino gumagamit ng vultr hosting dito? Patulong po pano foforward yung port. Na try ko na lahat. Pero closed pa rin yung port nya. 

    I tried opening my ports:
    TCP: 4500,5121,6121,6900.
    UDP: 4500,5121,6121,6900.

    Using this command:
    $ sudo ufw allow 4500/tcp
    $ sudo ufw allow 4500/tcp

    But when I checked in https://www.yougetsignal.com/tools/open-ports/ it is still closed. And I still cant connect.

    you can do,

     

    yum install firewalld

    to enable firewall : systemctl enable firewalld

    to start : systemctl start firewalld

    to check status systemctl status firewalld

    then ---> firewall-cmd --zone=public --add-port=6900/tcp --permanent

    the Red is the port. just change it to your port.

    check if the port is open : firewall-cmd --zone=public --list-all

    then reload the firewall : firewall-cmd --reload

    your good to go.

     

×
×
  • Create New...