Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Brian

  1. Here is a longer explanation of the original post: create a SourceForge account https://sourceforge....er/registration create a new project: https://sourceforge.net/p/add_project * make sure you check the SVN tool, to enable SVN install TortoiseSVN on your computer http://tortoisesvn.net/downloads.html checkout a working copy of the SVN of your new project. The SVN url will be something like: https://svn.code.sf.net/p/PROJECTNAME/code/ * make sure your URL has https so you have read+write access In your new working copy, create folders for your patcher stuff. For example: / /patcher/ /patcher/data/ SVN Commit your changes. Now you should be able to browse your SVN and see the folders you just created http://svn.code.sf.net/p/PROJECTNAME/code/patcher/ Configure your patcher (see Category:Patchers) Your "patcher website" URL is the SVN url: http://svn.code.sf.net/p/PROJECTNAME/code/patcher/ * http for anonymous read-only access Here's an example of some of the Thor_Patcher urls you would configure: RootURL='http://svn.code.sf.net/p/PROJECTNAME/code/patcher/' file_url=http://svn.code.sf.net/p/PROJECTNAME/code/patcher/data/ Now in your working copy, add the patcher website files. Thor patcher for example, would have: /patcher/main.ini /patcher/plist.txt /patcher/data/this_is_a_patch.thor set appropriate SVN Properties for each file type "patchlist" and other text files should have svn:eol-style=native "patch files" (ex: .grf .gpf, .rar .thor) and any other binary files should have svn:mime-type=application/octet-stream "html files" - should have svn:mime-type=text/html (if you forget this property, the html file will display as plain-text. example) images - should have their corresponding image type (for example .png should have svn:mime-type=image/png) [*]SVN Commit [*]Each time you have a new patch, add the patch to your working copy, then SVN Commit the changes.
  2. OH I see what you mean, use SQL to check if the value is bigger/smaller than 32-bit integer. *fixes script* Thanks Annie!
  3. I wasn't sure how to precisely detect if they try to store an integer less than -2,147,483,648 or greater than 2,147,483,647. When I did stuff like set .@test, 2147483647; npctalk ""+ .@test; // 2147483647 set .@a, 214748364700; npctalk ""+ .@a; // 28 set .@b, 2147483647000; npctalk ""+ .@b; // 24 I got 28 and 24.
  4. Try uploading the image to: http://imgur.com/ then copy the code below BBCode (message boards & forums).
  5. Here you go : set_MAC_variable.txt These script functions + SQL table allow you to store variables tied to MAC addresses. execute the SQL query at the top to create the `mac_reg_value` table replace all 3 occurrences of getmacaddress() with the Harmony script command that returns a player's MAC address (I was not sure what the Harmony script command was named.) the example script that gives an item once-per-MAC is lines 17-32 $#variable - permanent MAC variable prefix "$#" means permanent MAC variable name identifier consists of underscore and alphanumeric characters (just like other script variables) postfix "$" means string variable variable names are NOT case sensitive (just like other script variables) variable name is limited to 255 characters value is limited to 255 characters (for strings) or 32-bit signed integer (-2,147,483,648 to 2,147,483,647), just like other permanent script variables
  6. Does Harmony have a script command that returns the character's MAC address? getmacaddress() Or do we need to create a script command ?
  7. Permanent monster spawns using boss_monster will trigger MVP Tombs. trunk/npc/re/mobs/fields/morocc.txt moc_fild22,0,0,0,0 boss_monster Wounded Morroc 1917,1,43200000,600000,0 ^ this one should leave a tomb
  8. Yes I used CentOS 6.3 (64-bit). pcre-devel-7.8-4.el6.x86_64 gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) hmm, could you try with a clean copy of rAthena? And I will try with the 2012-04-10aRagexeRE_S client.
  9. If you have a GUI (like Gnome) installed on CentOS, then yes there are MySQL GUI programs you can install. ex: MySQL Workbench You can also have MySQL Workbench installed on your Windows computer and have it connect to your MySQL server on CentOS.
  10. It works for me on Windows (compiled with Visual Studio 2010). I will test on Linux now. Edit: rAthena r16831 on CentOS 6.3 - works for me too. hmm what client are you using? (I tested with 2010-07-30aRagexeRE) I wonder if |00 in your messages is confusing the defpatterns. Try this defpattern, which will match everything and print what the npc "sees" to debugmes: prontera,155,188,0 script test 910,{ end; QuoteALL: debugmes "$@p0$ = " + $@p0$; end; OnInit: defpattern 1, "(.*)", "QuoteALL"; activatepset 1; end; }
  11. Yes, the configure and compile look fine to me too. Can you try loading trunk/doc/sample/npc_pcre.txt and see if the NPC responds to any of those phrases? "hi hello" --> "How do you do. Please state your problem." "do you have a name?" --> "I am not interested in names"
  12. No, you will not need to edit all the trunk/conf/ files again. Just upload, and compile (follow these steps on the wiki: Compiling#Unix).
  13. Or the source method: http://www.eathena.ws/board/index.php?act=findpost&pid=1446677 open trunk/src/map/pc.c find the function pc_authok and find these lines: pc_setinventorydata(sd); pc_setequipindex(sd); add BEFORE: sd->state.mainchat = 1;
  14. You want to create named items? (ex: hthuong's Stone) getnameditem .@item_id, strcharinfo(0); is the equivalent to: set .@char_id, getcharid(0); getitem2 .@item_id,.@amt,1,0,0, 254, 0, .@char_id & 0xFFFF, .@char_id >> 0x10;
  15. "Facebook" is Facebook's crawler bot. You can tell the bots from Members because bots' names are not links.
  16. Brian

    Ctrl + V

    4,7,19,9,22,28,16,6,11,10,29,13,8
  17. Yes, you only have to edit trunk/conf/subnet_athena.conf when rAthena is running behind a router and you want computers on the LAN to connect to your LAN ip instead of WAN ip. For example, if your computer's LAN IP is 192.168.1.22 and netmask 255.255.255.0 then you would put your LAN IP in subnet_athena.conf subnet: 255.255.255.0:192.168.1.22:192.168.1.22 and put your WAN IP in the other char/map configs.
  18. Are you compiling in the correct architecture (32 or 64-bit). Before r16197: # 32-bit ./configure # 64-bit ./configure --enable-64bit r16197 and later # 32-bit ./configure --disable-64bit # 64-bit ./configure
  19. Permanent server variables are stored in the `mapreg` SQL table. If at least one player has donated (and the $rachel_donate variable exists), you can view it with this SQL query: SELECT * FROM `mapreg` WHERE `varname`='$rachel_donate'; Edit the `value` column using phpMyAdmin or your Query Browser program, or you can edit the value using a SQL query: UPDATE `mapreg` SET `value`=10000 WHERE `varname`='$rachel_donate'; If no players have donated yet and the first query did not return any rows, you can insert (create) the variable like this: INSERT INTO `mapreg` VALUES ('$rachel_donate', 0, 10000); Note: to edit variables this way, you have to stop the server first, then run the SQL queries. The alternate method is set the variable using a script while the server is running. Copy-paste this into a script, @loadnpc, and click it if necessary (prior to r16130). prontera,155,188,0 open_rachel_sanct 910,{ OnInit: set $rachel_donate, 10000; atcommand "@unloadnpc " + strnpcinfo(3); }
  20. trunk/npc/quests/quests_rachel.txt //= Sanctuary Quest: //= - Actually two quests in one. Donation and dungeon quest. //= - Requires 10000 donations before players can start the quest. //= - Variable in use: ra_tem_q (max 23) (unset at end) //= - Variable in use: Once completed MISC_QUEST bit 8192 is set //= - Variable in use: ra_have_donated (0 no/1 yes) //= - Variable in use: $rachel_donate (max 10000) Rachel Sanctuary will open after $rachel_donate is greater than or equal to 10000.
  21. Here's the IPB hook we use: (SOS33) Topic Viewed by Users.
  22. When you diff'ed, which option did you select here? Enforce iRO Font Enable /showname (For the command /showname to work, you have to pick the 2nd options "Enable /showname".)
  23. Brian

    help?

    trunk/conf/char_athena.conf // Server name, use alternative character such as ASCII 160 for spaces. // NOTE: Do not use spaces or any of these characters which are not allowed in // Windows filenames \/:*?"<>| // ... or else guild emblems won't work client-side! server_name: rAthena
×
×
  • Create New...