Jump to content

kyithios

Members
  • Posts

    39
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kyithios

  1. On 2/9/2017 at 1:53 PM, Technoken said:

    That's weird. I tried it in my server and it's working fine. Does the name has space character?

    No, no spaces. @evenpt kyithios 10 (command, name, quantity) doesn't work. Just says character not found or is offline.

    On 2/10/2017 at 12:25 PM, Technoken said:

    What git hash are you using? Anyways try this one

    
    -	script	point_cmd	-1,{
    OnInit:
    	bindatcmd("eventpt","point_cmd::OnAtcommand",0,99);
    	end;
    
    OnAtcommand:
    	.@points = atoi(.@atcmd_parameters$[1]);
    	if( .@atcmd_parameters$[0] == "" || .@points < 1 || .@atcmd_numparameters != 2 ) {
    		message strcharinfo(0),"Please enter correct parameters (usage: @evenpt <character name> <number of event points>)";
    		message strcharinfo(0),"@evenpt failed.";
    		end;
    	}
    	.@charname$ = .@atcmd_parameters$[0];
    	.@accid = getcharid(3,.@charname$);
    	.@rewarder$ = strcharinfo(0);
    	if( attachrid(.@accid) ) {
    		#EVENTPOINTS += .@points;
    		dispbottom "You received "+.@points+" event points.";
    		dispbottom "Total Event Points: "+#EVENTPOINTS+"";	
    		message .@rewarder$, ""+.@points+" Event Points was rewarded to "+.@charname$+".";
    	} else {
    		message strcharinfo(0),"No character found.";
    		message strcharinfo(0),"Might be offline or a non-existing character name.";
    		message strcharinfo(0),"@evenpt failed.";
    	}
    	end;
    }

     

    That worked. I'm super happy about that, that'll help my staff give out the right stuff. I had to make a small modification, but the whole thing works great.

  2. 10 hours ago, Technoken said:

    Its always my bad habit. I forgot to add $ on strings variable. lol

    Try this again and let me know if it works

    
    -	script	point_cmd	-1,{
    OnInit:
    	bindatcmd("eventpt","point_cmd::OnAtcommand",0,99);
    	end;
    
    OnAtcommand:
    	.@points = .@atcmd_parameters$[1];
    	if( .@atcmd_parameters$[0] == "" || .@points < 1 || .@atcmd_numparameters != 2 ) {
    		message strcharinfo(0),"Please enter the exact character name (usage: @evenpt <character name> <number of event points>)";
    		message strcharinfo(0),"@evenpt failed.";
    		end;
    	}
    	.@charname$ = .@atcmd_parameters$[0];
    	.@charid = getcharid(0,.@charname$);
    	.@accid = getcharid(3,.@charname$);
    	if( !isloggedin(.@accid,.@charid) ) {
    		message strcharinfo(0),"No character found.";
    		message strcharinfo(0),"Might be offline or a non-existing character name.";
    		message strcharinfo(0),"@evenpt failed.";
    		end;
    	}
    	set #EVENTPOINTS, #EVENTPOINTS + .@points, .@charid;
    	message strcharinfo(0),""+.@points+" Event Points was rewarded to "+.@charname$+"";
    	dispbottom "You received "+.@points+" event points.", 0x63D1F4, .@charid;
    	dispbottom "Total Event Points: "+#EVENTPOINTS+"", 0x63D1F4, .@charid;
    	end;
    }

     

    Command functions now without any errors in the console, but it doesn't recognize anyone I put in, online or not, even myself. Just says "No character found." 

  3. 1 minute ago, Cyro said:

    No offence... He got Miss leaded filezilla set to the port FTP not sftp which new people may not know... Even wincp got FTP profile

    Hope u get my point ,:)

    No offense taken, I just figured I should point out where I corrected myself after, because it is a bit misleading. I should edit it, but I'm not sure if I should.

    • Upvote 2
  4. 12 hours ago, Cyro said:

    FTP client for webhost dude... Don't misslead new people

    That's why I said "SFTP"... I use FileZilla. 

     

    17 hours 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.

    ^ See? I mislead nobody. Almost every single FTP client has the power to use SFTP, you just have to select the right option.

    • Upvote 1
  5. 1 minute ago, Hossam said:

    i get error 

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

    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.

  6. 1 hour ago, Technoken said:

    Try

    
    -	script	point_cmd	-1,{
    OnInit:
    	bindatcmd("eventpt","commands_limit::OnAtcommand",0,99);
    	end;
    
    OnAtcommand:
    	if( .@atcmd_parameters$[0] == "" || .@atcmd_parameters$[1] < 1 || .@atcmd_numparameters > 2 ) {
    		message strcharinfo(0),"Please enter the exact character name (usage: @evenpt <character name> <number of event points>)";
    		message strcharinfo(0),"@evenpt failed.";
    		end;
    	}
    	.@charname = .@atcmd_parameters$[0];
    	.@points = .@atcmd_parameters[1];
    	.@charid = getcharid(3,.@charname);
    	if( !isloggedin(.@charid) ) {
    		message strcharinfo(0),"No character found.";
    		message strcharinfo(0),"Might be offline or a non-existing character name.";
    		message strcharinfo(0),"@evenpt failed.";
    		end;
    	}
    	set #EVENTPOINTS, #EVENTPOINTS + .@points, .@charid;
    	message strcharinfo(0),""+.@points+" Event Points was rewarded to "+.@charname+"";
    	end;
    }

     

    Try to change the poring coin in item_db.txt to

    
    7539,Poring_Coin,Poring Coin,0,0,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ set #EVENTPOINTS, #EVENTPOINTS + 5; },{},{}

     

    PS: Didn't test it. Please let me know if it works.

    The third line of the script hits an error when @eventpt is used, says "event not found [commands_limit::OnAtcommand]"

  7. So I want to use eventpoints as a currency players can gain from doing events, and also from a consumable as a reward for voting. So this question/request is two fold.

    How do I get an @command to give people event points?

    How do I create a consumable (say poring coins) that gives event points?

  8. 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.

    • Upvote 1
  9. 16 hours ago, Technoken said:

    Sorry, I was talking about the folder name of the theme.

    Check your cp/config/application.php and look for 'ThemeName'.

    If you're using 'default', the folder name of your addon theme should be 'default' too. ( path: cp/addons/voteforpoints/themes/<theme folder name>/ )

     

    In that case, it's default. and under the voteforpoints/themes folder, it's also default.

  10. So, so far I've had no luck. I put the folder in my addons as you'll see in the screenshot below, taken the SQL entries and input them in the proper places, but when I refresh my website, no prompts come up for install as per the only topic I could find via google on the subject. What am I missing? Am I supposed to move any of the other folders?

    58b40736246947df5c3ebd4fc4be321b.png

  11. 2 hours ago, Akkarin said:

    Click RSS Feeds under Content Discovery in ACP

    e82078d79c.png

    Click Create New button, then select "Topics" and give it a name.

     

    ab6351dfc3.png

     

    You'll then find the link under the orange RSS button at the bottom of all your forum pages

    b78186652a.png

     

    Use that link as the RSS Feed URL.

    This was exactly what I needed. It turns out this was exactly what I was doing, but because the RSS link showed the content but no graphics otherwise, I was unsure. I tested it on my website, and I'm quite satisfied. FluxCP is seriously one powerful thing.

    Now if I could just figure out how to get the pvp rankings to show up.

  12. On my main page I have a section for news and the like, previously filled with RSS feeds from eADev that didn't pretain to my server, so I removed them. Let's say I want to take new topics from my forums (Things like announcements, patch notes, maintenance times, etc) and put them there as a link, that automatically updates itself, how do I do that?

  13. 54 minutes ago, HappyMan said:

    here.

    
    Lunette,44,113,5    script    SG Resetter    644,{
       cutin "arang01",2;
       mes "[sG Resetter]";
       mes "What do you wish to reset?";
       menu "Reset Feeling",feeling,"Reset Hatred",hatred;
    
    feeling:
       atcommand "@feelreset";
       mes "Done.";
       close2;
       cutin "",255;
       end;
    
    hatred:
       set PC_HATE_MOB_MOON, 0;
       set PC_HATE_MOB_STAR, 0;
       set PC_HATE_MOB_SUN, 0;
       mes "Done.";
       next;
       mes "[sG Resetter]";
       mes "Hatred will be reset upon relogging.";
       mes "Do you wish to relog now?";
       menu "Relog now",relog,"Later",later;
    
    relog:
       atcommand "@kick "+strcharinfo(0);
       end;
    
    later:
       next;
       mes "[sG Resetter]";
       mes "Ok then, but don't forget changes won't take effect until you relog.";
       close2;
       cutin "",255;
       end;
    
    }

     

    You sir, are great. Thank you.

  14. so in application.php, I changed the following line

     

    'CreditExchangeRate'		=> 0.5,						// The rate at which credits are exchanged for dollars.

    It doesn't seem to be working as I want it to. I want to turn the exchange rate to 1$=5 points. I've tried a number of things, such as setting the above value to 1.5 to 1.05, to the thing you see above, to .05, still doesn't work. Please advise.

  15. When I fix one according to the console, it pops up another until I hit a wall where it just says pretty much nothing.

    new_3-1,50,113,6	script	Willcom Maan	405,{
    if( !#Freebies ){
    set #Freebies,1;
    mes "Welcome to Exia Star RO! Here's some rewards. By the way, talk to Shion twice! She likes that!";
    getitem2 1203,1,1,10;
    }else{
    mes "You have claim the Reward already.";
    }
    close;
    }

    I'm using tabs, but for some reason it starts with the }else{ portion.

×
×
  • Create New...