• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Szybkość ataku

Status
Not open for further replies.

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,839
Solutions
18
Reaction score
619
Location
Poland
Witajcie. Mam takie pytanko czy da się w silnikach pod tibie 8.54 w c++ usunąć limit na pokazywanie hitów. Mam attack speeda który mnie przyspiesza o 2sekundy czyli 2000 bazowy speed - 2s = 0 i hitów nie widać. Da się to jakoś usunąć żeby były hity tak jak w 7.6 ?
 
mam taki pomysł, bo nie chce mi sie myslec

zmień bazowy speed z 2000 na 2001 i powinno być git XDDD
 
Da się w źródłach, game.cpp, szukaj funkcji pokroju `combat` w nazwie.
 
Nie ma nic związanego z tym w combat.cpp ;/
 
To w takim razie w HEX klienta nie da rady zmienić ?
 
Jeśli jest to w binarce.

Ale to i tak trzeba by użyć ASM debuger'a by to znaleść, więc daj sobie z tym spokój.
 
Da się to jakoś usunąć żeby były hity tak jak w 7.6 ?
Chcesz usunąć pokazywanie hitów, czy co :O?

Da się w źródłach, game.cpp, szukaj funkcji pokroju `combat` w nazwie.
Nie ma nic związanego z tym w combat.cpp ;/
Bo w złym pliku szukasz geniuszu.

Ale to i tak trzeba by użyć ASM debuger'a by to znaleść, więc daj sobie z tym spokój.
To zostaje jeszcze użycie otclient (https://github.com/edubart/otclient).
 
A da się zrobić żeby hity nie były pokazywane chaotycznie - we wszystkie strony tylko jedne pod drugim tak jak w 7.6 ?

- - - Updated - - -

Znalazłem coś takiego:
void Player::doAttacking(uint32_t interval)
{
if(!lastAttack)
lastAttack = OTSYS_TIME() - getAttackSpeed() - 1;
else if((OTSYS_TIME() - lastAttack) < getAttackSpeed())
return;

if(hasCondition(CONDITION_PACIFIED) && !hasCustomFlag(PlayerCustomFlag_IgnorePacification))
{
lastAttack = OTSYS_TIME();
return;
}

Item* tool = getWeapon();
if(const Weapon* weapon = g_weapons->getWeapon(tool))
{
if(weapon->interruptSwing() && !canDoAction())
{
SchedulerTask* task = createSchedulerTask(getNextActionTime(), boost::bind(&Game::checkCreatureAttack, &g_game, getID()));
setNextActionTask(task);
}
else if((!weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT)) && weapon->useWeapon(this, tool, attackedCreature))
lastAttack = OTSYS_TIME();
}
else if(Weapon::useFist(this, attackedCreature))
lastAttack = OTSYS_TIME();
}

Jakieś pomysły ?

- - - Updated - - -

TEMAT MOŻNA ZAMKNĄĆ. JUŻ OGARNĄŁEM.
 
Status
Not open for further replies.
Back
Top