What's new

Skrypty & Kody Anty attack speed hack

Status
Not open for further replies.

rafaeru

Active User
Joined
Aug 18, 2010
Messages
139
Reaction score
6
Witam, posiadam tfs 0.3.6 i mam nast?puj?cy problem poniewa? nie wiem gdzie, nie mog? nigdzie znale?? gdzie ustawi? exht na targetowanie moba albo exht na first attack.

Widzia?em skrypt na first attack pod 7.6 ale to si? ro?ni.

Bo jak wiadomo mam attack speed skill na ots i przy du?ym skillu i ustawieniu w elfbocie skryptu auto 1 attack target albo po prostu szybkim zaznaczaniu i odznaczaniu targetu mo?na bardzo szybko bi?.

Znalazlem cos takiego tylko co tu mozna dodac/zmienic ?

Code:
bool Game::playerSetAttackedCreature(uint32_t playerId, uint32_t creatureId)
{
	Player* player = getPlayerByID(playerId);
	if(!player || player->isRemoved())
		return false;

	if(player->getAttackedCreature() && !creatureId)
	{
		player->setAttackedCreature(NULL);
		player->sendCancelTarget();
		return true;
	}

	Creature* attackCreature = getCreatureByID(creatureId);
	if(!attackCreature)
	{
		player->setAttackedCreature(NULL);
		player->sendCancelTarget();
		return false;
	}

	ReturnValue ret = Combat::canTargetCreature(player, attackCreature);
	if(ret != RET_NOERROR)
	{
		player->sendCancelMessage(ret);
		player->sendCancelTarget();
		player->setAttackedCreature(NULL);
		return false;
	}

	player->setAttackedCreature(attackCreature);
	return true;
}
 
Status
Not open for further replies.
Top