Issue information

Issue ID
#7169
Status
Fixed
Severity
None
Started
Judas
Apr 17, 2013 4:15
Last Post
Ind
Apr 17, 2013 5:58
Confirmation
N/A

Judas - Apr 17, 2013 4:15

Someone using my other SVN reported this problem. Confirmed that it happens on Hercules as well, and not sure if its official or not, but it could cause problems with other servers.

You can still attack while in a chat room. Someone said a player abused this and just farmed anthell01 on the eggs since their attack was so slow and the eggs has a fast spawn rate..

Anyways steps to produce:

1)@spawn 1905 (a barricade)
2) Ctrl+Click (auto attack i think) on the barricade
3) alt+c to bring up chat room, and create one
4) You are still attacking

Proposed Solution:


[code=auto:0] cd = chat_createchat(&sd->bl, title, pass, limit, pub, 0, "", 0, 1, MAX_LEVEL); if( cd ) { cd->users = 1; cd->usersd[0] = sd; pc_setchatid(sd,cd->bl.id); clif->createchat(sd,0); pc_stop_attack(sd); //<-----Can be placed to stop attack when create chat room clif->dispchat(cd,0); } else clif->createchat(sd,1); return 0; } [/code]

Ind - Apr 17, 2013 5:57

Thank you very much!

Ind - Apr 17, 2013 5:58

Fixed in [url="https://github.com/HerculesWS/Hercules/commit/21d1bddf9557b50c6ff56b04c0d19dc6ef8aeddc"]https://github.com/HerculesWS/Hercules/commit/21d1bddf9557b50c6ff56b04c0d19dc6ef8aeddc[/url]