Jump to content

KirieZ

Core Developers
  • Content Count

    211
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by KirieZ

  1. Não sei quão antigo é o emulador, mas acredito que tenha essas funções, vou dar uma ideia para você resolver. Fazer o portal aparecer/sumir em horários: Você pode usar OnClockHHMM e verificar o dia com gettime(4), e então ativar ou desativar o portal com com enablenpc e disablenpc. Para fazer o portal checar, você pode usar um código parecido com o abaixo (retirado de um portal de brasilis): bra_in01,12,185,0 script inbathroom#bra WARPNPC,1,1,{OnTouch_: if (brazil_ghost > 6) warp "bra_in01",138,176; else { mes "The entrance has been blocked."; close; } end;} E para verificar o mapa, você pode usar a label OnPCLoadEvent (leia a documentação para mais informações de como usar)
  2. I'm not completely sure but I think that this happens because your OnMinute36 label is not calling anything in the bidder to start its timer. I've not tested in-game, but maybe this will fix the problem: At the end of OnMinute36: (add the donpcevent) announce "The portal has been closed.",0;disablenpc "Pracewarp";donpcevent "Bidder#prace0::OnStart1";sleep 5000; In the bidder, change Start1: to OnStart1: and at OnTimer120000: change goto Start1 to goto OnStart1 Hope it helps.
  3. @Vlync: It was approved already, the current version (1.1) is fully working on rAthena.
  4. @Vlync: Sorry for the delay, I've just uploaded a new version, waiting for it to be approved. It will bring the option to secure items by their types and refine levels and rAthena compatibility.
  5. @@Gerz So it's like the SecureItems that it already has, but for a limited refine level? I will try to do it in these next days. Thanks
  6. Not sure if I understood what you said. My refiner has the safe levels, it's shown to the player when .DisplayRefineInfo is true and as a warning if he is going to upgrade over the safe level. If you want to increase the safe levels you have to change refine_db.txt and .SafeLevels array in my script.
  7. File Name: Configurable Refiner File Submitter: KirieZ File Submitted: 02 Aug 2015 File Category: Utility This is a configurable refiner that I made after reading the request from this topic. It contains the following options (all of them configurable): Normal refine Refine N times at once (It's possible to allow this for a different group) Set different zeny and item requirements based on item's WeaponLv field Display information about the refine like: the safe refine and the chance of the next level. Allow the usage of items that increase the success chance Allow the usage of items that avoids the item from being destroyed when the refine fails (2.0) Ask if want to use items to protect / increase refine chance (2.0) Define custom effects when refine fails: stay as is, decrease one level or go back to +0 Everything is configurable at the end of the script. I made some tests and it seems to be working correctly, if you run into any bug or wants to suggest a new feature, please let me know and I'll see what I can do. Click here to download this file
  8. KirieZ

    About getitem

    You can use something like that: - script WoePrize -1,{ OnAgitEnd: OnAgit2End: .@castleMap$ = "prtg_cas01"; .@guildId = getcastledata(.@castleMap$, 1); .@guildMasterId = getguildmasterid(.@guildId); query_sql("SELECT `account_id` FROM `char` WHERE `char_id` = " + .@guildMasterId, .@guildMasterAccId); getitem Apple, 1, .@guildMasterAccId; end;} But it will give the item to any character logged in the guild master account (not necessarily the guild master), and if the guild master is not online in any of his characters, this will not work, you'll have to store it somewhere and give it when he logs in. Maybe with attachrid you can get some better results by checking if the player is online as the guild master and if not do something different. Hope it helps
  9. Version 2.1.1

    927 downloads

    This is a configurable refiner that I made after reading the request from this topic. It contains the following options (all of them configurable): Normal refine Refine N times at once (It's possible to allow this for a different group) Set different zeny and item requirements based on item's WeaponLv field Display information about the refine like: the safe refine and the chance of the next level. Allow the usage of items that increase the success chance Allow the usage of items that avoids the item from being destroyed when the refine fails (2.0) Ask if want to use items to protect / increase refine chance (2.0) Define custom effects when refine fails: stay as is, decrease one level or go back to +0 Everything is configurable at the end of the script. I made some tests and it seems to be working correctly, if you run into any bug or wants to suggest a new feature, please let me know and I'll see what I can do.
  10. I was thinking about using the part where the server does the exp distribution, but I don't know how and where labels are called in source.
  11. Hello everyone, I would like to know if it's possible to get all the players who "helped" killing a monster, instead of only the one who killed it. Like OnNPCKillEvent, but instead of running on one player, to run on all of them. Does it needs changes in the source? Can you give me some tips from where to start? Thanks in advance.
  12. Hello everyone, I'm wondering about how much can I increase the number of characters per account and storage size until I reach the client or server limit? I did some search but could only find old topics from rA / eA and as far as I saw hercules did some upgrades in this part. Thanks in advance.
  13. Hello everybody, today I was writting a script and noticed that monster command has an AI parameter: script_commands.txt But I couldn't manage to understand what it does, I tried spawning a Poring with AI = 1, expecting that it would be aggressive but nothing different happened, can someone explain what this parameter really does? Thanks in advance.
  14. I'm not completely sure, but I think that these specific labels from Endless Tower doesn't give you the killedrid, so you'll have to change the labels called when MVPs inside it are killed and do your own handling. Something like: areamonster .@map$,352,9,362,45,"Baphomet",1039,1,.@label$+"MVP"; and: OnMyMobDeadMVP: [ Do your MVP things here ] .@map$ = instance_mapname("1@tower"); .@mob_dead_num = mobcount(.@map$,instance_npcname("#1F Controller")+"::OnMyMobDead"); if (.@mob_dead_num < 1) { initnpctimer; //SetItemPartyInMap in_102floor 1 } else mapannounce .@map$, "Remaining Monsters on the 1st Level - "+.@mob_dead_num,bc_map,"0x00ff99"; end; Make sure to check every labels, because there are more than one.
  15. you don't need to create a new translation, just assign .po files to be opened with poedit and open the generated po file Thanks, it works although when I save it says that there are 20 errors (I can't find the red lines, too big file )
  16. Really good! Not sure if it's only here but I can't open the .pot file in POEdit, it shows more than a hundred errors due to unescaped " in NPC messages, when strings get exported they are not being saved with before quotes. @edit: I'm doing the following: Open POEdit -> Create new Translation -> Selected generated_translations.pot
  17. You can remake your mapcache by running mapcache.exe if you've compiled it when compiling your server.
  18. Sir thank you but I already know how to disable the renewal mechanics. I'm asking on how to disable new maps. I've not tested but it probably works: Go to your db folder and open map_index.txt, comment the maps you don't want to have in your server, then go to conf/maps.conf and comment them too. (Maybe you'll have to remake your makecache) For cities on @go you'll have to edit the source: Open src/map/atcommand.c and find this: ACMD(go) Comment the lines with cities that you don't want and recompile, probably this will change the @go number of maps that came after the commented lines. If the map that you want is from places that have portal to, you have to disable these portals in their scripts. I hope it helps
  19. Does it show errors? Have you deleted all of your "cp_" tables? If you don't delete them you'll get table already exists error. Enable errors at config/error.php changing: $showExceptions to true and 'DebugMode' at config/application.php to true
  20. If I remember well, @mount2 was used to mount/unmount cash mounts, if this is the case, the new(?) command is @cashmount. @edit About the black squares I'm not sure, but is this a official or a custom map? If it's the latter, check if it doesn't use custom texture that has these black squares, its texture must be somewhere in your data/texture folder.
  21. To reinstall Flux go to YourFluxFolder/data/logs/schemas and delete the "charmapdb/YourServerName" and "logindb/YourServerName" folders then delete everything but the index file from "data/tmp" folder. After that, open the main page of your cp in a browser and you will be redirected to install page.
  22. Pelo que notei a variável "mvp_points" nunca foi definida, sendo sempre 0. Tente adicionar esta linha antes do end do OnNPCKillEvent: mvp_points++;
  23. Check your clientinfo, it must have the host ip (or DNS name) and Port of the login server (if you have changed it), if this is Ok, ensure that there is no other errors when your servers start.
  24. Hello everybody, I'm moving my server to a Host, but whenever I run it, it displays lots of Warning about setsocketopts, this is one of them: [Warning]: setsocketopts: Unable to set SO_REUSEPORT mode for connection #6![Warning]: setsocketopts: Unable to set TCP_THIN_LINEAR_TIMEOUTS mode for connection #6![Warning]: setsocketopts: Unable to set TCP_THIN_DUPACK mode for connection #6! I can connect and everything, but letting these warnings doesn't feel right. What can I do? Thanks in advance
  25. Hello everybody, I'm trying to write some plugins to learn how it works but I got the following problem: I've used addBattleConf to make some confs, they work perfectly through the code, but I can't show them at a NPC (using getbattleflag command), is there a way to do it or it needs a new script command? Thanks in advance. (not sure if I've posted in right section)
×
×
  • Create New...

Important Information

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