Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Brian

  1. Brian

    LAST MAC

    You can purchase Harmony from their website: https://harmonize.it/feature
  2. In vip_rental.txt, add these +lines: Index: vip_rental.txt =================================================================== --- vip_rental.txt (revision 15) +++ vip_rental.txt (working copy) @@ -31,6 +31,8 @@ // timer in future dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); atcommand "@adjgmlvl 1 "+strcharinfo(0); + sc_start SC_EXPBOOST, -1,25; // 25 means increase exp by 25% + sc_start SC_ITEMBOOST,-1,200; // I think 200 means increase drop rates by 2x OnVIPcheck: if ((#VIP_expire - gettimetick(2)) < 2147483) { // prevent overflow error addtimer (#VIP_expire - gettimetick(2)) *1000, strnpcinfo(3)+"::OnVIPend"; @@ -42,6 +44,8 @@ // else, their VIP has ended OnVIPend: atcommand "@adjgmlvl 0 "+strcharinfo(0); + sc_end SC_EXPBOOST; + sc_end SC_ITEMBOOST; set #VIP_expire, 0; dispbottom "Your VIP Rental has expired."; end;
  3. vip_rental.txt You can convert Unixtime to "days hours minutes" like this: dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); The script saves their expire time in a permanent account variable: #VIP_expire Here's the SQL query to view that info: SELECT `char`.`name`, TIME_FORMAT(SEC_TO_TIME(CAST(`value` AS UNSIGNED) - UNIX_TIMESTAMP()),'%Hh %Im') AS 'VIP time left' FROM `char` LEFT JOIN global_reg_value ON `char`.account_id=global_reg_value.account_id WHERE global_reg_value.`str`='#VIP_expire' ORDER BY CAST(global_reg_value.`value` AS UNSIGNED) ASC; name VIP time left -------- --------------- TestChar 23h 11m
  4. Are you talking about "Target" in shortcut links? I'm not sure what you're trying to do can you explain more?
  5. Make sure all your files got updated when you did 'svn up'. cd /home/dedi194/trunk/ svn up ./configure make clean make sql BuildBot says the latest revision compiles OK. http://build.rathena.org/console
  6. Hi everyone, The server that rAthena is hosted on will be down for maintenance around 11:00 pm EST while our host replaces a failed hard drive. Thank you for your patience. Server maintenance is complete. Forums: ONLINE BuildBot: ONLINE The forums may be a little sluggish while the RAID is rebuilding. EDIT: the RAID rebuild is complete
  7. Here is an example of a script calling a recursive function: http://rathena.kpaste.net/02ba430fdc?raw
  8. 2147483647 is the maximum value for script numbers because they are declared as 32-bit signed integers. The error means your script tried to do some math that resulted in a value larger than 2147483647.
  9. ^ this one should work. The SQL query would be like this: SELECT guild_id FROM guild WHERE `name` LIKE '%test%'; So the code in a script: query_sql "SELECT guild_id FROM guild WHERE `name` LIKE '%" + .@guild_name$ + "%'", .@guild_id;
  10. Make sure your website folders are accessible by the user/group Apache is running as. On Ubuntu/Debian, Apache runs as the user www-data and group www-data, so you should 'chown' all website files: chown -R www-data:www-data /var/www/ And then make sure the user (www-data) has read+write permissions, chmod -R u+rw /var/www/ or if it only needs read permissions: chmod -R u+r /var/www/
  11. run PuTTY and login to SSH on your server type this: mysql -h localhost -u root -p (If your MySQL host is different, replace localhost with the IP or hostname.) type your MySQL root password and press Enter type this and press Enter: CREATE DATABASE ragnarok; (replace ragnarok with the name you want for your new database) repeat Step 4 for more databases
  12. Don't forget the comma at the end of each of those lines. 'Hostname' => '127.0.0.1', 'Username' => 'ragnarok', 'Password' => 'ragnarok', 'Database' => 'ragnarok',
  13. No, there is no label like "OnDay" or "OnNight". Instead, you could: 1. control your server's day/night cycle with a script (instead of the battle configs) Then in your script you could have it do 'day' then 'setmapflag'. or 2. keep using the battle configs for day/night, and add a script that checks every minute (or every hour?) and if it's day, then setmapflag.
  14. Instead of installing gd2, you can also use reCAPTCHA. 'EnableReCaptcha' => false, // Enables the use of reCAPTCHA instead of Flux's native GD2 library (http://www.google.com/recaptcha) 'ReCaptchaPublicKey' => '...', // This is your reCAPTCHA public key [REQUIRED FOR RECAPTCHA] (sign up at http://www.google.com/recaptcha) 'ReCaptchaPrivateKey' => '...', // This is your reCAPTCHA private key [REQUIRED FOR RECAPTCHA] (sign up at http://www.google.com/recaptcha) (sign up for reCAPTCHA, then paste your PublicKey and PrivateKey in the next 2 configs)
  15. Make sure you are using the @command name as defined in the source (trunk/src/map/atcommand.c) For example, @jumpto: ACMD_DEF(jumpto), This will work in trunk/conf/atcommand_athena.conf jumpto: ["goto", "warpto"] but this will not work: goto: ["jumpto", "warpto"]
  16. http://www.eathena.ws/board/index.php?act=findpost&pid=1453565 You can host static files through a SVN, and there are many free SVN hosts.
  17. ../config/access.php 'SeeAccountPassword' => AccountLevel::NOONE, // If not using MD5, view another person's password in list. Edit that access level to AccountLevel::ADMIN. There are also some other configs you might want to edit in access.php (search for "password").
  18. I wonder if a Lua server could read certain client lua files (copied as-is with no format modifications), for things like the const.txt database and other IDs?
  19. Genocyd: while your intentions may be good, every way that you're doing it makes it look like a scam. Member Since: Today, 07:49 AM First post: Today, 08:01 AM ^ I see that and think you came to rAthena just to post your topic. Offering something for free that sounds too good to be true (even if it is true) makes people suspicious. Trying to create a shortage to make people signup/buy/do something sooner makes me suspicious too. If it really works, why not offer it for free (so everyone can have it) or sell it (so you can profit from your work) ? The Client & Patcher Support forum is for Support for client-side stuff, including patchers. Client-related releases should be posted in Client Releases or bigger projects can go in the Projects forum.
  20. http://www.eathena.ws/board/index.php?act=findpost&pid=1386316 Usage: { callfunc "F_VIPstart", <ticks>; } ticks = how long their VIP will last, in seconds. (this can be used in an item script or NPC) Examples: 1 day = 86400 7 days = 604800 14 days = 1209600 30 days = 2592000 seconds, so the item script would be: { callfunc "F_VIPstart", 2592000; }
  21. Are these constants already in trunk/db/const.txt, or would we have to add new constants ?
  22. Brian

    Convert to GIT

    Can SubGit be used with GitHub (can it push to remote repositories) ?
  23. Brian

    Convert to GIT

    I think if the majority of the developers agree, then we should install it!
×
×
  • Create New...