Jump to content

Mice

Members
  • Posts

    100
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Mice

  1. Try it like this case 0: getitem2 5100,1,1,0,0,0,0,0,0; announce "Player has received a reward!",0; break;
  2. Could you please explain what kind of help you need with this script? If there's an issue with it, could you describe the problem in more detail? It would be helpful if you could provide more specifics. Would it be possible to use a code box when posting a script? This way, when the script is shared, there won’t be any confusion regarding spaces and tabbing.
  3. Try add this somewhere in your script maybe before the OnInit OnClock0001: query_sql "UPDATE `acc_reg_num` SET `value` = '0' WHERE `key` = '#lastTimeTalked'"; end;
  4. Header: Type: INTER_SERVER_DB Version: 1 Body: - ID: 1 Name: "Storage 2" Table: storage2 Max: 300 At @storeall, how can I transfer the storeall function to a different storage? I want to move it to the Storage 2 I created, but I just don't understand how to recall openstorage2 1,STOR_MODE_GET|STOR_MODE_PUT; Thank you very much to anyone who can help. storage_storageadd(sd, &sd->storage, i, sd->inventory.u.items_inventory[i].amount);
  5. Hello, where should the basis or points come from to say that it's the top 1 job?
  6. Uncomment this line https://github.com/rathena/rathena/blob/3e14940ee1a837984c19f2e8698cdd7b3e5cec23/src/config/core.hpp#L47 And edit the HP/SP specific job on "job_basepoints.yml" depend if you are renewal or pre-re
  7. Try not tested - script atcommand_main -1,{ OnAtStorage: // Check GM level before proceeding if (getgmlevel() < 90) { dispbottom "You must be GM level 90 or above to use this command!"; end; } .@map$ = strcharinfo(3); // Check if player is in PVP or GVG map if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) { dispbottom "You cannot use @storage in PVP/GVG maps."; } else { openstorage; } end; OnAtLoad: // Check GM level before proceeding if (getgmlevel() < 90) { dispbottom "You must be GM level 90 or above to use this command!"; end; } .@map$ = strcharinfo(3); // Check if player is in PVP or GVG map if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) { dispbottom "You cannot use @load in PVP/GVG maps."; } else { warp "SavePoint", 0, 0; } end; OnAtGo: // Check GM level before proceeding if (getgmlevel() < 90) { dispbottom "You must be GM level 90 or above to use this command!"; end; } .@map$ = strcharinfo(3); // Check if player is in PVP or GVG map if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) { dispbottom "You cannot use @go in PVP/GVG maps."; } else { // Implement go logic if needed } end; // Bind the commands to their respective NPC scripts OnInit: bindatcmd "storage", strnpcinfo(3) + "::OnAtStorage"; bindatcmd "load", strnpcinfo(3) + "::OnAtLoad"; bindatcmd "go", strnpcinfo(3) + "::OnAtGo"; end; }
  8. Did you make any modifications to your SP?
  9. If you can't find a working extended BG script, you will need to create your own function. Think of a way to do it the only solution I can think of is to create a custom mapflag. This mapflag would prevent supplies from a specific box from being used within that mapflag. If you're unable to do this, you can look into third-party services and hire a developer to do it for you. However, I'm not sure if any members here would be willing to do it for you, as it would take up their time to create. So, I'm uncertain if anyone will do this for free here. To be sure about getting a reliable scripter, I recommend checking third-party services, where you can find approved scripters.
  10. Hello, there might be a typo in your refine_db.yml, which is why it failed to read. Please double-check the last edit you made, and you'll also find the refine rates and materials listed there.
  11. This feature is available in the Extended Battleground. Find a working Extended Battleground, and you can use its function with the getitem2 item sign "WOE." This feature is exclusive to WOE and cannot be used outside the castle.
  12. Did you recompile after uncommenting the #define HP_SP_TABLES
  13. Why not use this instead? OnClock0000: OnClock0300: OnClock0600: OnClock0900: OnClock1200: OnClock1500:
  14. Hello! To adjust the HP or SP for each job, you need to uncomment the #define HP_SP_TABLES in the src/config/core.hpp file. After that, recompile the code. You can then edit the HP values you want to increase in the db/re/job_basepoints.yml (RENEWAL) or db/pre-re/job_basepoints.yml (PRE-RENEWAL) file.
  15. Hello your Line: 325 remove the } and try again it would be
  16. It's possible that, based on what you mentioned, the issue occurs when you run a command. So, it might be related to the custom command you added. Try to replicate the issue by going back to the changes you made before the problem started. Right now, I can't assist with your issue, especially since I don't know the history of what you did and can't see the problem myself. What you need to do is enable debug mode if you're using Visual Studio, or use GDB if you're on Linux.
  17. No, did you add any custom source code to your server? When you access the command, does it only appear there? Did you add any custom commands before?
  18. Hello, try to revert the changes you made in the source related to the packet, because the issue you're facing is an unsupported packet.
  19. I just realized this function now. It's better if you implement it this way. Below
  20. Im not master or legendary scripter but try this After each function header, make sure to add this: query_sql("SELECT zeny FROM `char` WHERE `char_id` = " + getcharid(0), .@zeny_); and update the Balance section to: "+.@zeny_+" Example: function script 1hs_Shop1 { query_sql("SELECT zeny FROM `char` WHERE `char_id` = " + getcharid(0), .@zeny_); // <---------------------- mes "[ ^FF0000Account Information^000000 ]"; mes "^8b8b8b____________________________^000000"; mes "Name: ^0000FF"+strcharinfo(0)+"^000000"; mes "Zeny Balance : ^8b8b8b"+.@zeny_+"^000000 z"; // <---------------------- callshop "1hs_Shop2",1; end; }
  21. Do you mean that the NPC will display how much zeny you currently have?
  22. Hello, if you purchased the auto attack directly from Shakto, it should come with a database.sql or autoattack.sql file something like that. Simply import or execute it in your SQL database or phpMyAdmin, or whichever name you're more familiar with between the two. CREATE TABLE `aa_common_config` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. ); ALTER TABLE `aa_common_config` ADD UNIQUE KEY `char_id` (`char_id`); CREATE TABLE `aa_items` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. ); ALTER TABLE `aa_items` ADD UNIQUE KEY `char_id` (`char_id`,`type`,`item_id`); CREATE TABLE `aa_mobs` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. ); ALTER TABLE `aa_mobs` ADD UNIQUE KEY `char_id` (`char_id`,`mob_id`); CREATE TABLE `aa_skills` ( `char_id` int UNSIGNED NOT NULL, ` ` so on .. );
  23. What client date do you need? I want to use it for the diff here.
  24. I think you didn't follow the instructions in Nemo on how to download the client, and the .exe file you targeted in Nemo is the download for Client.EXE.
×
×
  • Create New...