- 0
Sign in to follow this
Followers
0
R> Hardcode Changes > Plugin (No RoDex / Bank while Acting)
Asked by
Christian [epicRO]
-
Recently Browsing 0 members
No registered users viewing this page.
R> Hardcode Changes > Plugin (No RoDex / Bank while Acting)
Dear Herc.ws Com,
I'd like to ask you for a plugin. I don't understand how to convert my Hardcode Source-Changes into a simple plugin.
src/map/clif.c (void clif_parse_BankDeposit)
const struct packet_banking_deposit_req *p = RP2PTR(fd); int money; + if ((pc_cant_act2(sd)) || (sd->state.vending) || (sd->npc_id) || (pc_istrading(sd)) || (sd->chat_id != 0)) { + clif->messagecolor_self(fd, 0xFF0000, "You are not able to deposit while acting."); + return; + }
src/map/rodex.c (int rodex_send_mail)
nullpo_retr(RODEX_SEND_MAIL_FATAL_ERROR, body); nullpo_retr(RODEX_SEND_MAIL_FATAL_ERROR, title); + if ((pc_cant_act2(sd)) || (sd->state.vending) || (sd->npc_id) || (pc_istrading(sd)) || (sd->chat_id != 0)) { + rodex->clean(sd, 1); + return RODEX_SEND_MAIL_ITEM_ERROR; + } if (zeny < 0) { rodex->clean(sd, 1);
I think the title explains everthing.
This simple Source Change disables using of Client Side RoDex and Bank while NPC Dialog to prevent Item Dupe like in Puchuchartan (divide pure enchanted stones -> Send RoDex after you've accepted the deal with an input of 1~9.
My first move was to add a countitem() check on every case (it works) but you never mind that this might be the last known bug / exploit. So I've decided to disable RoDex and Bank while the Player is acting.
It would be nice if one of you could merge this source edit into a simple plugin.
Thank you very much.
Share this post
Link to post
Share on other sites