Ver código fonte

Fixed NPC Secure Timeout cutin (#8683)

* NPC shouldn't clear the script after the timeout has passed. and should clear the cutin
Haydrich 7 meses atrás
pai
commit
fd0675fc00
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/map/pc.cpp

+ 1 - 1
src/map/pc.cpp

@@ -9625,7 +9625,7 @@ void pc_close_npc(map_session_data *sd,int flag)
 		if (sd->st) {
 			if (sd->st->state == CLOSE) {
 				clif_scriptclose( *sd, sd->npc_id );
-				clif_scriptclear( *sd, sd->npc_id ); // [Ind/Hercules]
+				clif_cutin( *sd, "", 255); // Force to end cutin [Haydrich]
 				sd->st->state = END; // Force to end now
 			}
 			if (sd->st->state == END) { // free attached scripts that are waiting