Jump to content

KirieZ

Core Developers
  • Content Count

    211
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by KirieZ

  1. I mean, in your for loop, you have these two lines: .@refine$[ getarraysize( .@refine$ ) ] = @inventorylist_refine[ .@i ]; .@card1$[ getarraysize( .@card1$ ) ] = @inventorylist_card1[ .@i ]; note that you're using [ ] so .@refine$ and .@card1$ are arrays, then, on getitem2, you're doing: getitem2 5162,1,1,.@refine$,0,.@card1$,0,0,0; so you're passing arrays ( .@refine$ and .@card1$ ) in an parameter that expects a value. As far as I know getitem2 doesn't accept arrays as parameter. If you want to create multiple items (as it seems so), you should do a for loop with getitem2, like that: for (.@i = 0; .@i < getarraysize(.@card1$); .@i++) { getitem2 5162,1,1,.@refine$[.@i],0,.@card1$[.@i],0,0,0; } or you can do everyting in one loop (maybe it was what you're trying to do?) next; getinventorylist; for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){ if ( @inventorylist_id[ .@i ] == 5162 ) { // Slotted bone helm .@refine$ = @inventorylist_refine[ .@i ]; .@card1$ = @inventorylist_card1[ .@i ]; getitem2 5162,1,1,.@refine$,0,.@card1$,0,0,0; } } (note that in this case I've replace [getarraysize(.@refine$)] by just .@refine$)
  2. Shouldn't this if have a { } ? for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1) { if ( @inventorylist_id[ .@i ] == 5162 ) { // Slotted bone helm .@refine$[ getarraysize( .@refine$ ) ] = @inventorylist_refine[ .@i ]; .@card1$[ getarraysize( .@card1$ ) ] = @inventorylist_card1[ .@i ]; } } the way it's, .@card1 is being set in every iteration, not only in the bone helm one. And you're using .@refine$ and .@card1$ as arrays inside the for and at getitem you're not, maybe you forgot something there? Hope this helps
  3. I think that the old subnet_athena is now on network.conf on lan_subnets. You probably only have to modify packets.h if you have changed your client's default encryption keys
  4. First, import the logs.sql to ragnarok database, or you have to change the settings to load logs from other database. And, do you have an account with username 'testid', password 'testpass' or whatever you put in this part of char-server.conf and map-server.conf: // Server Communication username and password. userid: "testid" passwd: "testpass" and sex 'S' on your login table? If not, you have to create it.
  5. Quando monto a minha, apenas para usar localmente, costumo fazer o seguinte: Baixar um ragexe que quero usar e modificá-lo com o NEMO Baixar a pasta data e System do Client Translation Project ( http://herc.ws/board/topic/398-client-translation-project/ ) e copiá-las para a pasta Copiar todas as DLLs de algum servidor oficial (bro/kro/etc), menos as que pelo nome posso dizer que servem para gameguard, etc (normalmente elas tem o nome do shield) Copiar a grf do kro/bro/etc ou do data grf project (http://herc.ws/board/topic/6801-release-the-data-grf-project/) para a pasta Criar o Data.ini com a grf do servidor oficial Copiar o Open Setup para a pasta (http://herc.ws/board/topic/652-ro-open-setup-v2116397-last-updated-20151205/) Modificar o clientinfo.xml Com isso acredito que a pasta fica bem limpa e com o básico que você precisa para rodar o servidor, se for para abrir para jogadores, a mudança seria transformar a pasta data em uma grf. Espero ter ajudado.
  6. well noted, I just got the last weight message (well, the missing of it) and will update the script soon, thanks!
  7. File Name: iRO Christmas 2016 File Submitter: KirieZ File Submitted: 03 Jan 2017 File Category: Events & Games Quite late, but here is iRO's Christmas Event of 2016. It was scripted while I played, so probably some things aren't perfect, like the monster and item data. This file contains: Santa Klaus giveaway (christmas_giveaway.txt): This NPC seems to be enabled every christmas on iRO. Santa Klaus is at the center of Prontera giving a gifts, players can choose between three gifts and allows warping to guild dungeons. The gifts are: Skill and Status reset Seal Status reset Gifts: 3x Enriched Elunium 3x Enriched Oridecon 5x Red Envelope 3x Yellow Butterfly Wing 30 minutes Job EXP bonus (Job Battle Manual effect) [*]Christmas Quest (christmas_2016.txt): This is the quest. It starts at Eden Group HQ, then you have to do some deliveries to get Sprig of Holly and then turn them into a Costume headgear. It contains a daily quest. In the zip file you'll find both scripts and client/server changes. One script doesn't depend on the other one, that's why they're in separate files. Known Differences: The Santa's giveaway sets a quest in the client, but this ID is out of Hercules ID Range, so I changed it In Christmas Quest, the first NPC on the quest line shows a message over her head to the player only, I couldn't find a command to do this, so it shows to everybody. On iRO, the daily quest is reseted everyday at 4AM, but Hercules seems to not have a command to set time limit explicitly (instead we use quest_db) so I set it to 23h time limit. If something is wrong, let me know and I'll try to fix as soon as possible. Click here to download this file
  8. Version 1.0

    95 downloads

    Quite late, but here is iRO's Christmas Event of 2016. It was scripted while I played, so probably some things aren't perfect, like the monster and item data. This file contains: Santa Klaus giveaway (christmas_giveaway.txt): This NPC seems to be enabled every christmas on iRO. Santa Klaus is at the center of Prontera giving a gifts, players can choose between three gifts and allows warping to guild dungeons. The gifts are: Skill and Status reset Seal Status reset Gifts: 3x Enriched Elunium 3x Enriched Oridecon 5x Red Envelope 3x Yellow Butterfly Wing 30 minutes Job EXP bonus (Job Battle Manual effect) [*]Christmas Quest (christmas_2016.txt): This is the quest. It starts at Eden Group HQ, then you have to do some deliveries to get Sprig of Holly and then turn them into a Costume headgear. It contains a daily quest. In the zip file you'll find both scripts and client/server changes. One script doesn't depend on the other one, that's why they're in separate files. Known Differences: The Santa's giveaway sets a quest in the client, but this ID is out of Hercules ID Range, so I changed it In Christmas Quest, the first NPC on the quest line shows a message over her head to the player only, I couldn't find a command to do this, so it shows to everybody. On iRO, the daily quest is reseted everyday at 4AM, but Hercules seems to not have a command to set time limit explicitly (instead we use quest_db) so I set it to 23h time limit. If something is wrong, let me know and I'll try to fix as soon as possible.
  9. As far as I remember you can't read player's timer, but can't you make a player variable that stores the time when player will be warped? example, if player will be able to stay in the room for 2 hours, you can do something like: warpTime = gettimetick(2) + 2 * 3600; // 3600 = 1 hour Then, if you want to display how much time player still have: dispbottom "You still have " + (warpTime - gettimetick(2)) + " seconds in this room"; I've not tested it, but I believe it can give you an idea of how to do it.
  10. I don't know what could be happening in this case, maybe you can try to reset the root password: http://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html
  11. This problem is related to your MySQL installation and not hercules, have you used another password when installing MySQL?
  12. inter-server.conf is now inside conf/common folder. But you'll not find this Log settings here as it include global/sql_connections. To make it easy, go to conf/import and open inter-server.conf, inside inter_configuration, add this: log: { sql_connection: { // [INTER] You can specify the codepage to use in your mySQL tables here. // (Note that this feature requires MySQL 4.1+) //default_codepage: "" // [LOGIN] Is `userid` in account_db case sensitive? //case_sensitive: false // For IPs, ideally under linux, you want to use localhost instead of 127.0.0.1. // Under windows, you want to use 127.0.0.1. If you see a message like // "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" // and you have localhost, switch it to 127.0.0.1 db_hostname: "127.0.0.1" db_port: 3306 db_username: "root" db_password: "ragnarok" db_database: "loginlog" //codepage:"" } } This is the step 11 of your image.
  13. I'm not sure if by "total price" you meant all the lines, the changes were:
  14. @canditw : Thanks! I just uploaded a new version fixing this issue, it should be approved in some hours.
  15. @@K4m4r40 Não sei dizer com certeza, mas imagino que seja possível editando o arquivo db/re/level_penalty.txt
  16. @@JoyRo : Maybe it wasn't approved when you tried to download. Just tried and it was ok. Please try again.
  17. @@keripikotaku , @@JoyRo : I've just submited a new version with the 100% bug fixed. Sorry for the delay. @@keripikotaku : This +7 safe ticket for refines over +7 was because I set it like that as a place-holder, in this new version I've changed them to nothing, you can change these items to wathever you want in the settings. To everybody: this new version includes a new config (BreakWarning) and a overhaul of how refine fail results works, please take a look on these settings, as fail results no more work like it did before.
  18. Você está com o renewal ativado? O Renewal tem um sistema de EXP que muda a quantidade recebida pela diferença de níveis entre você e o monstro. Para desabilitar vá em src/config/renewal.h e comente a linha: #define RENEWAL_EXP Recompile o emulador e teste. Espero ter ajudado
  19. If by break you mean when its name becomes red, you can delete the item (using delitem2 or delequip for an equipped item) then use getitem2 to add the item again, note that you need to retrieve the information about the item to recreate it, to do this you can use getinventorylist. On delitem2 you should use "attribute" parameter as 0 (not broken) and on getiem2 "attribute" should be 1 (broken item) If by break you mean destroying the item (like when a refine fails) you can simply use delitem2 / delequip or failedrefitem. (the links in the commands will point you to these commands doc) Hope this helps
  20. @@Vlync and everybody Sorry I'm having lot of personal things (college tasks/exams) to do and not being able to check this, I'll update when possible.
  21. I'll check this as soon as possible, I believe on wednesday I'll have some time so I can do it. Thanks!
  22. does the ragnarok replay files includes packets or GIDs? (Now I can think about the replay being a file with all packets received and that is "shown again") Not sure if someone can do it, but I would suggest doing a list of what is missing so who wants to help can also get an idea of what he really have to replay to help, I know there's a post from kisuka with what changed in each episode, but I don't remember seeing a list of what is currently missing in herc.
  23. @@xlaws27 about the debug, I'll check as soon as possible, do you know exactly when it appears? are you using hercules or rAthena? I'll include the fail possibilities soon, I would like to add it and fix this debug before submiting a new version. About the fail settings, it works this way: Let's say: --- Refine Success Chance: 60% --- Fail Results: (they doesn't have to sum any specific value) ----- Stay as is : 40% ----- Go down 1 level : 30% ----- Go down to +0: 10% By default, a chance is calculated by a random value between 0 and 100, if this value is smaller or equal to the sucess chance, it's a success if not, it is a fail. (this do make sense, as a chance of 60% is 60 numbers in a total of 100) When fail results are set, it will be this way: --- Try to refine (60%) ----- Success: Done ----- Fail: -------- Calculates chance to stay as is -------- Calculates chance to go down one level -------- Calculates chance to go to +0 -------- Else: break item Now I'm thinking if it would be better to make an array where you write fail possibilities like: setarray .fails, 1, 1, 1, 2, 2, 3, 3, 3, 4; (total: 10 items) so you would have 30% to break (1), 20% to stay as is (2), 30% to go down 1 level (3), 10% chance to go to +0 (4) I'm accepting suggestions about this I hope this makes these settings clear
×
×
  • Create New...

Important Information

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