Jump to content

Cydh

Developer
  • Posts

    2285
  • Joined

  • Last visited

  • Days Won

    77

Everything posted by Cydh

  1. lol what happened? u edited something?
  2. yes, I was thinking to make like that, but it needs to change all card0~card3 to int32, many to do (but seems this is the most effective way) yes, rental item need the duration and the bound item just need the type.
  3. Thank you, here 8a81940 but only the sit issue. For the delay, if u want to make like a queue, you can make something like, add in pc.h:map_session_data, unsigned int autotrade_delay. and when init the autotrader, before the pc_setnew() line there, you can put the at->sd->autotrade_delay = i*500; (the delay will be 0.5 sec for each autotrader) and change the tick add add_timer in the pc_reg_received() to gettick()+sd->autotrade_delay. yes, u can make something like that first.
  4. July Digest 2014 The following digest covers the month of July, 2014. Staffs Changes @Patskie is now a Community Contributor @sandbox is now a Community Contributor Development Highlights Added Mercenary Guild Switch NPC (bdab851) Login-Server refactor by @Lighta (a24da6d, 171de74, 9e0d78a) Battle config updates: conf/battle/gm.conf: removed atcommand_max_stat_bypass (be9ffaf) conf/battle/misc.conf: added at_monsterignore (401a716) conf/battle/feature.conf: added feature.autotrade_head_direction, updated feature.autotrade_direction, feature.autotrade_sit (7fd6776) conf/battle/player.conf added idletime_option (4eeb100) Permission updates: added bypass_max_stat (be9ffaf) Documentation updates: doc/ added mob_db (b93a17d) added skill_require_db (20ac4c9) Bug-squashing, fixing a large number of skill issues in particular. Many Item DB Updates, thank for the contributions. Statistics 7 authors have pushed 39 commits during this period. On master, 113 files have changed. There have been 12,957 additions and 13,146 deletions. Merged 5 pull requests, thanks for submitting those pull requests!
  5. thank you, but I more appreciate comment with idea
  6. We all know Card can be used as rental or bound item. But the issue is, when that card is compound to equip, the expire time as rental item or the bound status will erased. (so don't ever make rental/bound item for card ) When card is compound, it calls pc_insert_card(). there we will get that the card will be deleted pc_delitem(sd,idx_card,1,1,0,LOG_TYPE_OTHER). And, if card is removed from equip, script makes new item instead of "gives" back the old card data. See at BUILDIN_FUNC(successremovecards) And now, I think it will be cool if card is fully possible as rental & bound item, I bet many PS owner need something like this too. I need some idea, how to make this possible, must we make new sql table to stores the compound card data, give increment ID then use GetWord or such so we can look back while remove card from the equip? Any thoughts?
  7. Cydh

    KOE Help!

    read ur diff, and read my comment.
  8. just for note, it's not rate, it's kind of probability. try put on last value too 1000, and u will get something fun and "????" appears because of client failure, some skills from Abracadabra aren't exist in skill desc in luas. I guess they're Change Class, Taming Monster, and hmmm...
  9. Cydh

    KOE Help!

    ((TBL_MOB*)target)->mob_id == 1288 for our current source, it's mob_id I guess.
  10. buried alive! actually, this is my first time see "plagiarism" with this case, use same theme/source for sites without permission. Usually I just saw RO with copy-cat other RO.
  11. Transitioning from SVN to GIT, and some tips from me
  12. Before edit your files to new copy If u are using rA old SVN, and stuck in 17704, it's equiv with 4534bd4, soe before do copy-paste (Windows 6th step or Linux 3rd step) from your old SVN files, better make local branch for 4534bd4 first then checkout to that hash. by using git branch --no-track 17704 4534bd4 git checkout 4534bd4 Then copy-paste everything that u have. After that, clean up from a mess that maybe u got, then try compile your server. If it's good, save the diff file. Then, how to get up-to-date? Well, since we're at 17704 (4534bd4) after that checkout, your edits/files are left at that rev. So, let's pray and do git stash git checkout master git stash pop After that, you will get bad and good news. Good news, you're now in latest rAthena github's revision, and the bad news, maybe you get a ton of conflicts. And, these my bonuses, I tried using SmartGIt for simple touches. Click Branch menu, choose Checkout Put the hash 4534bd4 on the filter Click checkout, and it offers you to make new local branch, just make it, 17704. OK After that, copy paste all your files there. If everything are OK, don't forget make the diff (SmartGit doesn't have "make diff file" feature yet). Right-click the master branch, hit checkout! Wait, and praying.
  13. Then open a new post on Source Discussion and hear what people say. hmm, try patch it manually yourself, it should be easy.
  14. Cydh

    Shop System

    Try this maybe? 'flag' at Shop to disable Discount & Overcharge
  15. Just a simple modification to enable/disable Discount or Overcharge on specified NPC Shop. Maybe the idea was brought from Shop System and my old commit about "disable" discount for point & item shop. It just simple touch, add optional flag at very last of NPC shop line. -%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}{,<flag>} <map name>,<x>,<y>,<facing>%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}{,<flag>} <map name>,<x>,<y>,<facing>%TAB%marketshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>:<quantity>{,<itemid>:<price>:<quantity>...}{,<flag>} If the flag isn't set, it doesn't bother any default NPC. Flag 0x1 = Disable Discount 0x2 = Disable Overcharge If unset, Discount and Overcharge are enabled (if available) Examples Discount & Overcharge are disabled here prontera,147,167,6 shop Shop 1 872,2102:-1,2104:-1,501:-1,3 Overcharge is disabled prontera,147,164,6 shop Shop 2 872,2102:-1,2104:-1,501:-1,2 Discount is disabled prontera,147,161,6 shop Shop 3 872,2102:-1,2104:-1,501:-1,1 When file is loaded with that flag, you will get this Info Download discount_flag-rA-20180713-ec1d6d28.diff for rAthena Git Hash: ec1d6d28 (20180713)
  16. edit ur spr/act files, remove some frames
  17. cash shop is part of itemdb. it's reloaded the @reloaditemdb and if the question, "why after @reloaditemdb the cash shop isn't updated?" -> relog
  18. Cydh

    Shop System

    for simple way, if the wanted NPC just is at map alone, maybe u can try this mapflag Mapflags to disable Discount & Overcharge. if for specific shop npc, maybe u cna make a magic touch like what I've done for enable/disable itemshop/pointshop (I added "discount" flag when defining shop)
×
×
  • Create New...