Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Brian

  1. Yes you can run the login, char, and map server on different computers. All computer(s) will need access to the same MySQL database. An example setup would be: Computer 1 - MySQL Server - login-server - char-server Computer 2 - map-server
  2. In the ACP, you have to set Email Settings. https://www.phpbb.com/support/documentation/3.0/adminguide/acp_general.php#acp_client_email Different webhosts might have different settings, so you'd need to ask them. (some might allow PHP mail function, some might require SMTP authentication)
  3. There is a SQL query that goes with that script. /raijero/trunk/sql-files/main2.sql -- Add columns to table `char` ALTER TABLE `char` ADD `secs_online` INT(11) UNSIGNED NOT NULL DEFAULT '0'; Connect to your MySQL Server and execute that query. Then the "Unknown column" SQL error will stop.
  4. Brian

    Make NPC Hide

    I just tested -- enablenpc works from a disabled npc! poring_w01,100,105,0 script test 910,{ OnInit: debugmes "(1) I am enabled"; sleep 1000; disablenpc strnpcinfo(3); debugmes "(1) I am DISabled"; sleep 1000; enablenpc strnpcinfo(3); debugmes "(2) I am enabled again!"; end; } All 3 debmessages printed.
  5. Spaces advantages: + all indentation is guaranteed to look the same in all text editors TABs advantages: + smaller file size (each tab is 1 character vs 4 spaces is 4 characters) + users set their own TAB display size in their text editors + editors that color tabs differently than spaces (might make TABs stand out more than 4 space indent?)
  6. - script Only1perMAC -1,{ OnPCLoginEvent: if (getgmlevel() >= 99) end; set .@myname$, strcharinfo(0); if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_mac=(SELECT last_mac FROM login WHERE account_id="+getcharid(3)+") AND `char`.online=1 AND `char`.char_id!="+getcharid(0), .@name$) >= 1) { for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) { if (checkvending(.@name$[.@i]) != 2) set .@samemac, .@samemac +1; } if (.@samemac >= 1) { announce "Sorry, only 1 account per computer can be logged in at a time.", bc_self; sleep 1000; atcommand "@kick " + .@myname$; } } end; }
  7. *moves my post here* @GreenBox: was the conversion of indents from tabs to spaces intended? I also vote for tab indents
  8. Ahhh, your 3.38 MB image was too big! max filesize: 2 MB I added better error messages (English instead of error codes). I increased the max_filesize to 4 MB. and here's your converted image: login_background.grf
  9. Are you trying to limit the number of players per IP address? http://rathena.org/board/topic/74823-at-solution/#entry159335
  10. When a character's `rename` column in the `char` table is greater than 0, they can rename their character. at the Char Select screen, when you select that character, a new button Rename will appear click Rename and you can enter the new character name the server checks if the char name exists and also applies all char name restrictions (like when creating a new char) after you confirm, the server renames your character and decrements `rename` by 1
  11. Sounds like you need a newer version of Windows Installer: http://www.microsoft.com/en-us/download/details.aspx?id=8483 Download and install this one: WindowsXP-KB942288-v3-x86.exe Then restart your computer and try installing TortoiseSVN again.
  12. Maybe try a hard refresh? (Ctrl+F5 or Shift+F5) ^ this page has been loading fine for me, and here is a login background it converted into a GRF: login_background.grf
  13. In that case, you need to copy ALL the phpBB files and transfer the whole SQL database.
  14. - script at_cmd -1,{ OnInit: bindatcmd "test","at_cmd::at_test"; bindatcmd "test2","at_cmd::at_test2"; bindatcmd "hello","at_cmd::at_hello"; end; at_test: set .@atcmd$, "test"; goto OnUseCmd; at_test2: set .@atcmd$, "test2"; goto OnUseCmd; at_hello: set .@atcmd$, "hello"; goto OnUseCmd; OnUseCmd: dispbottom "You used: @"+ .@atcmd$+" "+ .@atcmd_parameters$[0] + .@atcmd_parameters$[1]; end; } EDIT: on a more serious note, it looks like this is already implemented, but not documented. r16471/trunk/src/map/npc.c setd_sub(st, NULL, ".@atcmd_command$", 0, (void *)command, NULL);
  15. Brian

    Code Style

    @GreenBox: was the conversion of indents from tabs to spaces intentional? I also voted for tab indents
  16. Did you upload the entire phpBB folder? It looks like it's missing the installer files. Is this a brand new clean install, or were you phpBB forums located on another host and you are trying to move them to a new webhost?
  17. Are you using rAthena r16957 or later? (required for the getcharip script command)
  18. Oh I thought you wanted to allow 2 active players, and the 3rd to login would be kicked. Here is the edited script that only allows 1 active player per IP (no limit on @autotrade merchants). - script Only1perIP -1,{ OnPCLoginEvent: if (getgmlevel() >= 99) end; set .@myname$, strcharinfo(0); if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_ip='"+getcharip()+"' AND `char`.online=1 AND `char`.char_id!="+getcharid(0), .@name$) >= 1) { for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) { if (checkvending(.@name$[.@i]) != 2) set .@sameip, .@sameip +1; } if (.@sameip >= 1) { announce "Sorry, only 1 accounts per IP can be logged in at a time.", bc_self; sleep 1000; atcommand "@kick " + .@myname$; } } end; }
  19. 1. The rAthena Development sections are for emulator development. Since the forums are not part of rAthena trunk/, that's why it has a separate suggestion area (this forum: rAthena Forum Suggestions & Bugs). 2. Due to the way this hook counts commits and bugfixes, it can only display those stats for members with SVN accounts. The developers are discussing moving to another bug tracker because IPS has stopped supporting IP.Tracker. In this new system, counting bug tracker replies & fixes for all members might be more feasible, so we will keep this suggestion on the table.
  20. You can also use the client's built-in char rename button (I believe this properly updates their name in the guild table). namechange.txt (mirror of eAthena post #1184299) namechange2.txt - uses the client's Char Rename button namechange_charat.txt - like the first script, but also checks for allowed characters using charat
  21. Last night, SourceForge's project web was down for hardware maintenance. Everything is back up now. http://host-tracker.com/check_res_ajx/11682905-0/ http://sourceforge.net/blog/project-database-downtime-2012-11-27/
×
×
  • Create New...