Jump to content

Fratini

Members
  • Posts

    153
  • Joined

  • Last visited

Everything posted by Fratini

  1. Nice! With your tip secret, I think I'm on the right track: BUILDIN_FUNC(getbgmid){ struct map_session_data* sd; FILE *bgm; const char* mcheck=""; const char* m=""; int id=0,r=0; char output[150]; if(script_getstr(st,2)) m = script_getstr(st,2); else{ if(!sd){ ShowDebug("getbgmid: No Player Attached"); return SCRIPT_CMD_FAILURE; } m = map_mapid2mapname(sd->bl.m); } if(!(bgm=fopen("db/data/mp3nametable.txt", "r"))){ ShowDebug("getbgmid: Can't find file 'mp3nametable.txt'"); sprintf(output, "getbgmid: Can't find file 'mp3nametable.txt'"); return SCRIPT_CMD_FAILURE; } while(fscanf(bgm,"%s.rsw#bgm\\%d.mp3#\n",mcheck,id)!=EOF && !r){ if(m==mcheck) r=id; } if(r){ script_pushint(st,id); return SCRIPT_CMD_SUCCESS; } else { sprintf(output, "Couldn't found the BGM ID from %s", m); return SCRIPT_CMD_FAILURE; } } I tried to made by writing the name of the Map that you want to know the ID or if you omit the script_getstr(st,2), the script will get the name of the map from the character. But the map-server keeps crashing... I think it's something about the 'fscanf'. I don't know much about C by the way. PS: I add the BUILDIN_DEF =) BUILDIN_DEF(getbgmid,"?"),
  2. Then, I'll start a table on MySQL =/ Thank you anyway !
  3. It's a very nice improvement. I'll try to do whattever I can by helping track glitches, bugs, etc. About the Current Emulator: Is there anything that needs to be tested? How about a list to what it's necessary to test? I just downloaded the Current emulator and it's ready to be tested in a offline mode. I just need a direction =) Thank you guys for the awesome work!!!! I'll someday be helpful to this beautiful community!! 41 20 73 74 65 70 20 66 6f 77 61 72 64 20 74 6f 20 70 72 6f 67 72 65 73 73
  4. Yep, I know that. What I'm thinking is to get the ID of the BGM with a custom command created in 'src\map\script.c' (Creating a command in source. Something like getBGMid("Prontera").) What I don't know is: How can I get the information from the player. Is it a packet information? Is there another way to access this information? If not, I'll start create a table to catalog the IDs
  5. Hi, I would like to know if it's possible to get the ID of the BGM with the Map Name in source codes. I know that it can be done by creating a table in MySql or with a huge Array variable with all the BGM from All Maps of the Server (more than 1,000 without the custom maps =/) but cost a lot of time. Thank you for your time =)
  6. Sorry, I don't understand the question. What do you mean by that? He means: Where did you download your data folder. There's a data folder in .grf too if you have a .grf custom
  7. I think this is the problem Instead of defpattern 1,"([^:]+):.\\s*"+$MonsterName$+".*", "iCorrect"; Change to defpattern 1, "([^:]+):.*\\s"+$MonsterName$+".*", "iCorrect";
  8. The Showdigit command, using the second value as 3 (which should be the option for the decreasing 1 per second) is running twice faster. The packet could be '0x1b1' My Hexed is 2015-04-11a. My Emulator was updated at Fall 2015 Thank you
  9. You don't need to, since the 0 shows to the server that the skill given it's permanent (Check the line 5389 in doc/script_command.txt)
  10. Hi buddy! If you see this line: if (gympassmemory < 10) { set .@add_carry,gympassmemory + 1; set .@remain_carry,10 - .@add_carry; And this one: skill "ALL_INCCARRY",.@add_carry,0; You can see that the limit of the level of the Passive Skill ALL INCCARRY it's in the line 35, so you just change that number 10 in the line like this: if (gympassmemory < 5) { set .@add_carry,gympassmemory + 1; set .@remain_carry,5 - .@add_carry; if (countitem(7776) > 0) { The variable .@remain_carry it's warning the player how much he can still use the service. Good luck
  11. You could use 'mergeitem' in 'OnNormalKill' (Which would be like 'mergeitem 13517' and 'mergeitem 13518') and in 'OnBossKill' ('mergeitem 969') you could change the flag from the boxes id in the 'item_flag.txt' file from 'db/re/'
  12. I really think RO will never end, seriously =)
  13. Posting your IP it's extremely dangerous, like our friend here just sad.
  14. This error: [Error]: script_rid2sd: fatal error ! player not attached! Is referring to the command 'atcommand' using without any rid attached
  15. It's not because it's novice. It's because the minimum level required... 2857,Half_Brysing,Half Brisingamen,4,20,,0,,1,,0,0xFFFFFFFF,63,2,136,,47,0,0,{ bonus bStr,3; bonus bInt,5; bonus bVit,3; bonus bDex,3; bonus bAgi,3; bonus bLuk,5; bonus bMdef,2; },{},{} The minimum Level is 47 in this item. Low this or adquire level 47+ to use... Ps: Check the 'doc/' folder in your Emulator, please....
  16. If you want to change the information showing to the player, you can change in 'System/iteminfo.lub' If you want to really add new things on some equipment change in 'db/re/item_db.txt' or if you're using a SQL server, you have to access the item_db from there and search for the ID of the item, friend. If you do some research you can find those informations in a short amount of time... Edit: Check the 'doc/' folder. You'll get a LOT of information from there.... sir do u have teamviewer? got prob on my patcher. Sorry, friend. I have limited time. If you post a complete report of everything that is going on I can help you (Such as Errors, Client used, Diff that you mark in NEMO, etc)
  17. If you want to change the information showing to the player, you can change in 'System/iteminfo.lub' If you want to really add new things on some equipment change in 'db/re/item_db.txt' or if you're using a SQL server, you have to access the item_db from there and search for the ID of the item, friend. If you do some research you can find those informations in a short amount of time... Edit: Check the 'doc/' folder. You'll get a LOT of information from there....
  18. Im gonna remake your post, because it's a little messy for proper understanding: Well, friend. I think it's because of your Hexed... Use a 2015-11-04 Client (I'm currently using). Use NEMO to diff. Obs: I know you're brazilian (Because of the obvious 'Galera' that you didn't translate.). I suggest you to post in the Portuguese area, friend. Obs: Eu sei que você é Brasileiro (Por conta do termo óbvio 'Galera' não traduzido.). Sugiro que poste na área em Portugues, parça.
  19. I'm currently using the 2015-11-04a client. My character didn't move to the location. I suggest you to change your client, not because of these small deviation, but because clients from 2015+ has changed so much for the better that you can have other errors even worst in the future, friend. Good luck
  20. I already tried... The in-game settings are saying 'Change Status/Equipment shortcut' which is Alt+Q. But the Status window is not connected with the Equipment Window, so it's no use... Edit: I discover the source of the error. (If you consider this an error) I was sloppy... My file .ini embedded on the Client was reading the data.grf before my custom data, which has the correct lua files. Now I know that working overnight it's not a good thing...
  21. Hi, For some reason, after I rediff my hexed I can't use the Alt+A Hotkey... The rest are Ok, only the Alt+A isn't working... I checked the Hotkey.lua/lub and it's fine. I'm using the 2015-11-04 Hexed, by the way. Thank you for your support =)
  22. Boa Tarde, jovem!! Seja bem vindo à Comunidade!! Bom, se você baixou o Emulador Atual vai na pasta 'doc/'. Lá você vai encontrar todas as ferramentas necessárias. Especificamente o arquivo 'doc/script_commands.txt'. Boa sorte, jovem!
  23. Se puder enviar algum tipo de informação extra, como os dados que o map-server lhe ofere, talvez possamos ajuda-lo. Mas ainda sim, sugiro trocar de emulador, pois o atual daqui do rAthena tem várias coisas novas
  24. If you want only equipment, go in you db/re files, open the item_db.txt and copy-paste the equipments section in db/pre-re item_db.txt Remember, make a copy of your pre-re item_db.txt
×
×
  • Create New...