Jump to content

dckk

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by dckk

  1. This is extraordinary. Mob behavior is very interesting already in this game but this pushes it further than I expected would be possible; I don't have an immediate area where I would want to use it, but I'm for sure going to experiment with it at the next chance I have. Thanks, this is amazing work!
  2. I had some concerns re: server load but didn't know if it would be a big problem or not. I tried this and it seems to work well, though this was with only 10 test accounts running the 5 items with the scripts. I suppose there wouldn't be any way to detect players idling and pause the loop in case of implementing it to a larger playerbase? I found this: https://pastebin.com/raw/7xT5y8yS regarding detecting idle players (in this case to kick them), but I'm out of my depth trying to apply this on an item script. Thanks for the help btw, prob wouldn't figure it out on my own.
  3. Oh man, yeah sorry I posted that from the phone and formatting looked a lot different lol. So, my initial item script is: { 1 bonus bMaxSP,readparam(bFlee); } <-reads user's total Flee and adds it as Max SP What I want to do is make whole bonus be reloaded every 2s or so, so that if the player's Flee changes (because of receiving buffs, changing gear or whatever), the bonus will change with it. From a bit more research I found this: https://rathena.org/board/topic/69062-repeating-specialeffect-on-item-script/?do=findComment&comment=128591 This seems like the kind of looping that would do the trick, but that item script is a bit complex from me and I don't understand how I could apply the looping outside of that scenario, unfortunately. (I'm not sure if this is any clearer so please mention if it needs further explanation, haha)
  4. Hi, as the title reads I'm looking for a way to loop an item script while it's equipped. I've been researching about this but I can't seem to find docs about it or examples, which I'd definitely need since my scripting experience is very limited. At the moment what I'd like to do is a simple script: { 1 bonus bFlee,15; bonus bMaxSP,readparam(bFlee); } My problem is that as I just found out, item scripts only check parameters on equip/player reload and that would make this item very abusable since one could just equip FLEE gear, wear it and then swap it off while keeping the bonus. To avoid that (and also to make usable a lot more item scripts I have planned) I'd need to know how to make loop every couple seconds so the bonus is recalculated as the parameter changes. Any pointers will be greatly appreciated, and if a way to loop does exist I'd be very thankful for an example.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.