Jump to content

bWolfie

Members
  • Content Count

    850
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by bWolfie

  1. Thanks for help 4144 so far. Seems it compiles now, just with 1 error left to resolve. This is what I changed code to: bool atcommand_exec_pre(const int fd, struct map_session_data *sd, const char *message, bool player_invoked) //...all in between code here if (info == NULL) { sprintf(output, msg_fd(fd,153), command); // "%s is Unknown Command." clif->message(fd, output); atcommand->get_suggestions(sd, command + 1, is_atcommand); return true; } hookStop(); return 0; } HPExport void plugin_init (void) { addHookPre(atcommand, exec, atcommand_exec_pre); } Error code: atcommand.c: In function ‘plugin_init’: ../plugins/HPMHooking.h:49:53: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ atcommand.c:1580:2: note: in expansion of macro ‘addHookPre’ addHookPre(atcommand, exec, atcommand_exec_pre); ^
  2. Thanks for your response @4144. I am trying to convert all my source edits into plugin format. Still trying to learn how to use them. This one I am having trouble with. I want to edit just this particular area in that bool. if (info == NULL) { // I want to edit this 'if' clause if (pc_get_group_level(sd) == 0) // TODO: remove or replace with proper permission // remove this line return false; // remove this line sprintf(output, msg_fd(fd,153), command); // "%s is Unknown Command." clif->message(fd, output); atcommand->get_suggestions(sd, command + 1, is_atcommand); return true; }
  3. Hello, I want to overwrite a function. bool atcommand_exec_pre(const int fd, struct map_session_data *sd, const char *message, bool player_invoked) I make all the changes to my code, then I try to hook. This is not working for me: addHookPre(atcommand, exec, atcommand_exec_pre); I get this error: atcommand.c: In function ‘atcommand_exec_pre’: atcommand.c:1510:21: error: ‘atcommand_autotrade’ undeclared (first use in this function) if (info->func == atcommand_autotrade) /* autotrade deletes caster, so we got nothing more to do here */ ^ atcommand.c:1510:21: note: each undeclared identifier is reported only once for each function it appears in atcommand.c: In function ‘plugin_init’: atcommand.c:1555:2: warning: implicit declaration of function ‘addHookPre’ [-Wimplicit-function-declaration] addHookPre(atcommand, exec, atcommand_exec_pre); ^ atcommand.c:1555:2: warning: nested extern declaration of ‘addHookPre’ [-Wnested-externs] atcommand.c:1555:24: error: ‘exec’ undeclared (first use in this function) addHookPre(atcommand, exec, atcommand_exec_pre);
  4. you need to add custom mob id to db\mob_avail.txt
  5. bWolfie

    Bug bg_message

    thx lucas u my hero
  6. seems its client related not server. i rolled back my server 6 months and it was occuring.
  7. nice job promeister, it's great to see spriters and innovators in the community. you guys are a rare commodity.
  8. whoa those some huge, freaky looking monsters.
  9. bWolfie

    System Creation

    welcome cold. wrong section tho i think. should be projects.
  10. you should apply .patch files manually, that is edit contents one by one and add so you can review everything. because auto-merge does not work if the code it needs to replace is not the same. and also the new code may be actualyl old code and outdated
  11. [Warning]: script: buildin_getmapxy: .m$pacporing4 is not a string variable. This one is caused because your string variable is not finishing with $ It should be .mpacporing4$
  12. well sure but thats not RO related. you need to go to a linux forum and ask about remote ssh access, shell scripts and stuff. i doubt anyone here can answer your question about it. because what it seems you need is automated script performing SQL funcitons.
  13. yup. the answer is query_sql() script command. https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L8237
  14. Some update @Hit` you should make sure instead of commenting that line, make it: if (bl->type != BL_PC && flag&STOPWALKING_FLAG_FIXPOS) clif->fixpos(bl); You need to make sure it's only BL_PC it's not registering for, since I've noticed some monsters can slide all over a map if you comment this.
  15. I'm looking at ACMD(mobinfo) and I want to be able to get the actual mob ID. I'm using the 'db/mob_avail.txt' file to create more monsters of an ID. My problem is monster->vd.class is showing the sprite ID, instead of the actual ID. Example, in mob_avail.txt I have the following entry. When using monster->vd.class, it returns 1109 for both entries (when using @mobinfo Deviruchi) 2620,1109 I want to get the actual ID as I wish to exclude certain entries from showing in the @mobinfo search. Thank you.
  16. Suggestion: you guys should consider using XenForo's business model. I think it would be great for something like this. You pay a one time fee to obtain a license. So long as you hold this license, you can: ○ Download the software. ○ Download upgrades. ○ Use the support boards. ○ Download additional resources. In order to retain above privileges, you need to purchase extensions (or in your case, maintain your subscription). The software itself would be downloaded in a ZIP/RAR archive. Most of the files can be edited inside it. Allowing CSS editing functionality as a part of the CP software itself would be a great addition, so users stay out of the source files. This also gives great maneuverability for appearances, allowing greater customization. With this model, the software itself doesn't expire, rather, the license to use it does. Users would be able to continue using the software after its expiration date, but they would be barred from updates/upgrades, support, etc. Tracking each license should also provide a means of tracking who is sharing the software, perhaps allowing you to remotely null an illegal installation. The support board itself [I assume you would create one] would be both Community and Staff operated. Regular subscription users can also answer support questions and be involved.
  17. I don't think this is related to hBG, rather, some script commands have bad compatibility with characters logging out.
  18. Probably smoke is busy with new project BladeCP. I imagine he will come back to this after he is done or this project is dropped support.
  19. if i recall its dangerous to set storage above 800. you should check your SQL data to confirm items are still there.
  20. On top of fxfreitas post, you should look into the SA_CLASSCHANGE skill, as well as monster GID. When you using Class Change on a mob, it retains its original properties. Example: If you used class change on an alchemist plant, even after turning into mvp, it can still expire as if it were still a plant.
  21. Thx meko. i found it was sd->inventory_data->type == IT_ETC ty
×
×
  • Create New...

Important Information

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