Jump to content

Hossam

Members
  • Posts

    92
  • Joined

  • Last visited

Posts posted by Hossam

  1. 22 minutes ago, kyithios said:

    In FileZilla (which I use to upload scripts and download server stuff to edit)...

    Host IP: (Whatever your host IP is according to the mail in your client area)
    SFTP - SSH File Transfer Protocol
    ALWAYS USE PORT 22
    Enter the username and password you were given.

    If it still doesn't work, you're gonna have to go through their support. Which has been inactive for three days. Good luck.

     

    0.jpg

  2. 18 hours ago, Cyro said:
    
    //credits to emistry
    // usage :
    // [npc:Sample]map#512#10
    // [npc:Sample]all#512#123
    
    
    -	script	Sample	-1,{
    OnWhisperGlobal:
    if( getgmlevel() >= 99 ){
    	// check map
    	if( @whispervar0$ == "all" ) set .@type$,"";
    	else if( @whispervar0$ == "map" ) set .@type$,strcharinfo(3);
    	else {
    		dispbottom "Error, pick 'map' or 'all' ";
    		end;
    	}
    	
    	// check item
    	set .@itemid,atoi( @whispervar1$ );
    	set .@amount,atoi( @whispervar2$ );
    	if( getitemname( .@itemid ) == "null" || .@amount < 1 ){
    		dispbottom "Enter valid item id and amount.";
    	}
    	
    	set .@self_id,getcharid(3);
    	query_sql( "SELECT COUNT(`account_id`) FROM `char` WHERE `online` = 1 ", .@total );
    	while( .@count < .@total ){
    		query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY `account_id` LIMIT 128 OFFSET "+.@offset, .@aid,.@name$ );
    		set .@i,0;
    		set .@size,getarraysize( .@aid );
    		while( .@i < .@size ){
    			if( .@aid[.@i] != .@self_id ){
    				if( .@type$ != "" ){
    					getmapxy( .@map$,.@x,.@y,0,.@name$[.@i] );
    					if( .@map$ == .@type$ ){
    						getitem .@itemid,.@amount,.@aid[.@i];
    						set .@gave,.@gave + 1;
    					}
    				}else{
    					getitem .@itemid,.@amount,.@aid[.@i];
    					set .@gave,.@gave + 1;
    				}
    			}
    			set .@count,.@count + 1;
    			set .@i,.@i + 1;
    		}
    		set .@offset,.@offset + .@size;
    		deletearray .@aid,.@size;
    		deletearray .@name$,.@size;
    	}
    	dispbottom "Gave "+.@amount+" x "+getitemname( .@itemid )+" to "+.@gave+" Player(s).";
    }
    end;
    }

    to add this npc to you server download wincp
    login using your server details and add this file to your custom folder (or what ever folder you using)
     and also add your npc path in  scripts_custom.conf  
    then do reloadscript/restart server/loadnpc

    script not work why ??
    i used in go 16 but get error

     

    0.jpg

  3. 20 hours ago, kyithios said:

    Go to your client area at Ragnahosting, check your messages there, and there should be one that says "Your Cloud Instance Has Been Deployed." That has all the information you need to add the script to your server, use FileZilla or any other FTP program to upload your scripts to rAthena/npc/custom/

    Then go back to rAthena/npc/ and edit scripts_custom.conf.

    i get error 

    Response:    ‎‪331 User  OK. Password required
    Command:    ‎‪PASS ****************
    Response:    ‎‪530 Login authentication failed
    Error:    Critical error: Could not connect to server
     

×
×
  • Create New...