Jump to content

sizenine

Members
  • Posts

    149
  • Joined

  • Last visited

Everything posted by sizenine

  1. actually, this command is for perma mob spawns. i'm not using my command as a permanent mob spawn, i just want to spawn the monster once in my script because it triggers OnEvents.
  2. ah, sorry i think its because i was using input to test it and due to this: // Default value of the 'max' argument of the script command 'input'. // When the 'max' argument isn't provided, this value is used instead. // Defaults to INT_MAX. //input_max_value: 2147483647 input_max_value: 10000000
  3. hm the problem now is it seems that char variables have a size limit of 10000000... cause when i try to set LAST_ITEMDATE as 20120312 (or any number greater than 10000000), it will change it to 10000000, so I can't really store the date as an integer.. unless I chop off the year.. 2012.
  4. Wait.. but how we would be comparing two string values rather than int values.. would it know if "20120312" is less than "20120313" if they are both strings? or do i have to use some command to typecast the strings to integers?
  5. I want to give my players an item for logging online, but the item is only given once every 24+ hours... is this possible without having to assign a permanent variable and wiping it every 24 hours? And no, OnClockMinute does not work because that requires the players to login at a certain time of the day.. I want to make it so that as long as you got your items 24 hours or more ago, then when you login again, you will automatically get another one.
  6. nice that worked. but now there's another bug >.< so if you have a character that has a cart on, you will notice that all other characters on that account will also show the cart button in the equipment window (alt+q) and also the OFF button. alt+w will work for those characters although no items can be put in. so far it doesn't seem like a bug that can be abused, but it would be nice to have it fixed.
  7. i know you can do @monsterbig/small with atcommand, but if im summoning a monster with script commands, how can i adjust the size of a monster?
  8. Experienced my first server crash with rAthena today, currently running on r15627. Here is line 7090 in my pc.c in bold: UPDATE: Happened again... but seems like its caused by a different reason..
  9. Maybe something like that can fix this problem case SC_ON_PUSH_CART: sc->opt3 |= OPT3_ON_PUSH_CART; opt_flag = 0; break; for show effect, like for riding. Well, i dunno how to do it ^^ i thought the difference in this diff is that we don't use options anymore for carts.. we use statuses.
  10. Yeah but @guild would skip the emperium requirement also
  11. so you mean that i can use "set COUNTER,1;" with "attachrid <account_id>;" even though no char id is given to set with? im just curious of how the set command will know which char within that account_id to set the COUNTER to.. because COUNTER var is attached to a char and not the account(#). UPDATE: it works! thanks so much brian. i guess what i didnt understand is that attachrid actually attaches to the online player of the account rather than the whole account.
  12. Yeah, i think that is my last resort though because I don't want to kick players off if it is possible to use an alternative method like the one brian posted below (except there's one conflict). Add an if/else in your loop: if they are online (use 'attachrid' to check), then use set to update their variable else if they are offline, use query_sql to modify the variable in SQL. As you said, modifying their variables in SQL while they are online has no effect. yes, but the problem is that i'm trying to set a char variable, not an account variable. i think attachrid only works for account id, not char id. is there a custom script command anyone made so we can attach to char id?
  13. well that's because i didnt include the for loop part of my script.. and it's why the char id is a temp variable
  14. use a better text editor.... like notepad++ or PSPad http://notepad-plus-plus.org/download/
  15. no... lol the only reason why i have to use query_sql is because it's in a for loop that goes through ALL existing characters in the database... which is why i said this is to be used massively on all players with one click, not just one person.
  16. query_sql "UPDATE `global_reg_value` SET `value` = '6' WHERE `char_id` = "+.@dest_id+" AND `str` = 'TEST_COUNT'"; it seems that when I use this command, my TEST_COUNT value does not update until my character relogs... is there anyway to update it without needing to kick the player off game? and i'm using this instead of set var because its used massively.
  17. he intended to code it as a status, but that doesn't mean he intended to have it not behave correctly. good idea.
  18. i need an if statement that will check if all the users inside my party are standing within a specified area (x1,y1,x2,y2) on the map. for example if i was on a map that is 500x500, i want this script to check if all the users in my party are standing within the box area of coordinates (200,200) and (300,300).
  19. well if it is not official behavior, then it is a bug isn't it? unless you're saying this is the intended behavior..
  20. eA had a very useful mob controller system but is now outdated... I was wondering if somebody could update this patch so that it can work with rAthena? http://www.eathena.ws/board/index.php?showtopic=194375
  21. not sure which changeset that is, couldn't search it in trac.
  22. I'm not using other SVNs lol... i applied this diff to r15627. you are right about the respawning (guess you don't need actually to relog), but you say its normal/official for the carts to disappear? so carts disappear upon death on kRO RE now?
  23. New bugs found. 1) If your character dies, your cart disappears. 2) If you rent out a cart that you previously had items stored in, it will not display those items inside the cart until you relog respawn with the cart on. Therefore, even if you go rent another cart after dying, you won't be able to see the items you had inside the cart until you relog respawn.
×
×
  • Create New...