Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Brian

  1. Read the wiki page about the changelook script command. changelook LOOK_HEAD_TOP, 1001; changelook LOOK_HEAD_TOP, 0;
  2. Make sure you recompiled all 3 servers (login, char, map).
  3. Try committing over svn+ssh. http://sourceforge.net/p/forge/site-support/2636/
  4. Try removing the 'sleep2' and see if it still happens. If the [Warning] still happens, you could do something like: script does the rand() check if it's going to Bot Check them, first set a temporary char variable set @is_bot_check, 1; add a check right after OnNPCKillEvent so if (@is_bot_check == 1), meaning they are in the middle of a both check, then the script won't try to check them again at the same time at the end of your script, right before 'close' set @is_bot_check, 0;
  5. Can you screenshot the TortoiseSVN error so we can see? By the way, there is Project Web hosting for open source projects hosted on SourceForge.
  6. You have to edit the file and actually resolve the conflict! Just typing/clicking SVN Resolved only remove the Conflict flag, it does not edit the conflict (unless you click "Resolve conflicts using mine" or "Resolve conflicts using theirs".
  7. The client might not have /showname enabled, depending on which option it was diffed with: - Enforce iRO Font - Enable /showname
  8. hmm it might be a bug with the Bug Tracker. Something similar happened on IPS's bug tracker (even though they are not using IP.Tracker) Does it still happen if you use Preview first? and are you using the plain text or rich text editor?
  9. The client command is /font to switch between showing names above/below characters. /showname also changes the way names are displayed (bolder, with guild title above name; guild and part names are hidden).
  10. Brian

    Nginx

    They have a wiki with Install and Configuration instructions. http://wiki.nginx.org/Install http://wiki.nginx.org/Configuration
  11. Do you feel like sharing any other details about your error, or perhaps a screenshot? or just that it's a "critical error" ?
  12. There is a sleep function in C that can sleep for seconds. To sleep for less than 1 second, use usleep (microseconds).
  13. rAthena has a Wiki, by the way: We do encourage users to post guides on our wiki (not on the forums), this way everyone can collaborate, edit, and update the guides.
  14. This connection is your control panel, using fsockopen to check if your server is Online or Offline.
  15. Yes, every single map needs the loadevent mapflag in order to trigger OnPCLoadMapEvent ... unless you did one of these source edits 1) when maps are loaded, loadevent mapflag is added to every map 2) change OnPCLoadMapEvent to trigger on all maps, even if they don't have the loadevent mapflag It looks like (almost) all your maps in .@mapname$[] are already listed in trunk/conf/mapflag/town.txt right? Then you could just check mapflag#town. - script undisguise_me -1,{ OnPCLoadMapEvent: if (!getmapflag(strcharinfo(3), mf_town)) { undisguise; } end; }
  16. What you need is a statpointcount() function that would count their StatusPoint, including points they already put into stats (similar to skillpointcount). Here you go! statpointcount.txt The script functions are based on trunk/src/map/pc.c::pc_need_status_point() ~line 5900 /// Returns the number of stat points needed to change the specified stat by val. /// If val is negative, returns the number of stat points that would be needed to /// raise the specified stat from (current value - val) to current value. int pc_need_status_point(struct map_session_data* sd, int type, int val) { PS: yes, we could have just created a 'statpointcount' script command with about 25 lines of code from pc_resetstate() (vs 600 lines of script) but writing the script was more fun!You could trigger this script with OnPCLoginEvent by replacing lines 3-40 with this: - script check_statpoints -1,{ OnPCLoginEvent: if (getgmlevel() > 50) end; function pc_need_status_point; // src/map/pc.c function pc_maxparameter; function read_statpoint_table; // db/re/statpoint.txt OR db/pre-re/statpoint.txt set .@should_have, read_statpoint_table(BaseLevel) + ( Class&EAJ_UPPERMASK ? 52 : 0 ); //==== statpointcount() ==================================================== set .@actual_statpoint, pc_need_status_point(bStr, 1-readparam(bStr)) + pc_need_status_point(bAgi, 1-readparam(bAgi)) + pc_need_status_point(bVit, 1-readparam(bVit)) + pc_need_status_point(bInt, 1-readparam(bInt)) + pc_need_status_point(bDex, 1-readparam(bDex)) + pc_need_status_point(bLuk, 1-readparam(bLuk)) + StatusPoint; //========================================================================== if (.@actual_statpoint > .@should_have) { set .@name$, strcharinfo(0); mes "We have detected your stats are over the limit."; mes "You will be disconnected shortly. Please contact a GM."; atcommand "@kick " + .@name$; atcommand "@block " + .@name$; debugmes .@name$ + " was blocked for having more stat points than normal."; atcommand "@request <-- was blocked for having more stat points than normal."; } end;
  17. Brian

    input error

    input .@freeset$;You're storing the input as a string, but then you're doing numeric comparisons. if ( .@freeset$ == 0 || .@freeset$ >= 3 ) Instead, you should store the input variable in an integer: input .@freeset;
  18. Your server does not have the implode script command. This was added to rAthena in r15039.
  19. CODE is the new CODEBOX. It has a scrollbar and Select Text button! I already did a mass Search+Replace on all old posts, and replaced [codebox] with [code]. | | | | | \ | / \ | / \|/ V Did you know you can add line numbers? [code=auto:1] You can specify a different starting line too: [code=auto:24] 'auto' can also be: js, html, sql, css, xml, nocode for JavaScript, HTML, SQL, CSS, XML, or no syntax highlighting. Don't use CODEBOX anymore because it won't do anything
  20. The script command query_sql() returns the number of rows your SQL query returned. So if(query_sql() == 0) will be true when the SQL query returned no rows, in this case meaning the code they entered was not found.
  21. Here's an example: CREATE TABLE IF NOT EXISTS `reward_codes` ( `code` VARCHAR(10) NOT NULL DEFAULT '', `nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0', `amount` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0', `redeem_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', `char_id` INT(11) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`code`) ) ENGINE=MYISAM; mes "Please enter the code:"; input .@pc$; if (query_sql("SELECT nameid,amount,char_id FROM `reward_codes` WHERE `code`='"+escape_sql(.@pc$)+"'", .@item,.@amt,.@char_id) == 0) { mes "^FF0000 Reward code not found."; } else if (.@char_id) { mes "^FF0000 This reward code has already been redeemed."; } else if (!checkweight(.@item,.@amt)) { mes "You are overweight or carrying too many items."; } else { getitem .@item,.@amt; mes "Congratulations"; query_sql "UPDATE `reward_codes` SET `redeem_time`=NOW(), `char_id`="+getcharid(0)+" WHERE `code`='"+escape_sql(.@pc$)+"'"; } close;
  22. Next time that error happens, open a web browser and see if you can view the patchlist: http://ao-ro.de/patcher/patchlst.txt
  23. Your patch list loads fine and is displaying as plain text. http://ao-ro.de/patcher/patchlst.txt The settings patch_site and patch_list look correct too, based on NeonCube. I don't know why it's not working.
  24. Brian

    MVP Spawn Time

    trunk/doc/script_commands.txt So to make it 1 - 2 hours: delay1 = 3600000 delay2 = 3600000
  25. Possible causes: your patchlist is in HTML instead of plain text your webhost is adding HTML garbage to all pages it serves (some free webhosts do this, like adding banner ads at the top/bottom) your patchlist file is in the wrong place (so the webserver returns a 404 page, which the patcher sees as HTML Can you post your Neoncube config file, and/or the link to your patchlist.txt ?
×
×
  • Create New...