-
Content Count
850 -
Joined
-
Last visited
-
Days Won
34
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by bWolfie
-
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); ^
-
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; }
-
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);
-
gvg King of Emperium Hill
bWolfie replied to AnnieRuru's topic in PvP, WoE, GvG, & Battleground Releases
you need to add custom mob id to db\mob_avail.txt -
Status timer says "Hiding", Maya Purple Card bugs out
bWolfie replied to Dairyll's question in General Server Support
seems its client related not server. i rolled back my server 6 months and it was occuring. -
Status timer says "Hiding", Maya Purple Card bugs out
bWolfie replied to Dairyll's question in General Server Support
aaa -
Status timer says "Hiding", Maya Purple Card bugs out
bWolfie replied to Dairyll's question in General Server Support
this started happening to me lol -
nice job promeister, it's great to see spriters and innovators in the community. you guys are a rare commodity.
-
whoa those some huge, freaky looking monsters.
-
how you fix? i have this issue too.
-
welcome cold. wrong section tho i think. should be projects.
-
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
-
[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$
-
bump
-
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.
-
yup. the answer is query_sql() script command. https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L8237
-
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.
-
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.
-
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.
-
I don't think this is related to hBG, rather, some script commands have bad compatibility with characters logging out.
-
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.
-
if i recall its dangerous to set storage above 800. you should check your SQL data to confirm items are still there.
-
How avoid exploit card on dracula? (mimic, myst case card and etc)
bWolfie replied to jholphoda's question in Source Support
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. -
Thx meko. i found it was sd->inventory_data->type == IT_ETC ty