Dinamica

Páginas: 3 (521 palabras) Publicado: 15 de octubre de 2012
Przeglądając pewne forum odnalazłem skrypt C++ na działające Soft Boots i postanowiłem dać je tu.Robiłem ten skrypt na YurOTS 0.9.4d i działa i powinien także działać na wersje nowsze.Więczaczynajmy.

W PLAYER.CPP znajdź:

[QUOTE]#ifdef YUR_RINGS_AMULETS
void Player::checkRing(int thinkTics)
{
if (items[SLOT_RING] && items[SLOT_RING]->getTime() > 0) // eat time from ring
{items[SLOT_RING]->useTime(thinkTics);
if (items[SLOT_RING]->getTime() sendSkills(); // TODO: send only if it was skill ring
}
}
bool timeRingNow = (items[SLOT_RING] && items[SLOT_RING]->getID() ==ITEM_TIME_RING_IN_USE);
if (timeRing != timeRingNow)
{
timeRing = timeRingNow;
setNormalSpeed();
hasteTicks = 0;
sendChangeSpeed(this);
sendIcons();
}
Przepraszam ale nie mogę coś zamieścić w jednymQuote.

I pod tym dodaj:

if(items[SLOT_FEET] && items[SLOT_FEET]->getID() == ITEM_SOFT_BOOTS)
{
mana += min(g_config.getGlobalNumber("softMana", 1), manamax - mana);
health +=min(g_config.getGlobalNumber("softHeal", 1), healthmax - health);
}
Następnie znajdź:

#ifdef YUR_PREMIUM_PROMOTION
if (promoted)
{
if(healthTick < promotedGainHealthVector[vocation][0])
return false;
Ipod tym dodaj:

else if (healthTick < (promotedGainHealthVector[vocation][0] - ((promotedGainHealthVector[vocation][0] * 25) / 100)) && items[SLOT_FEET] && (items[SLOT_FEET]->getID()!=ITEM_SOFT_BOOTS || items[SLOT_FEET]->getID() != ITEM_SOFT_BOOTS))
return false;
Teraz znajdź:

#endif //YUR_PREMIUM_PROMOTION
{
if(manaTick < gainManaVector[vocation][0])
return false;
Następnie pod tymdodaj:

else if (manaTick < (gainManaVector[vocation][0] - ((gainManaVector[vocation][0] * 25) / 100)) && items[SLOT_FEET] && (items[SLOT_FEET]->getID()!= ITEM_SOFT_BOOTS || items[SLOT_FEET]->getID()!= ITEM_SOFT_BOOTS))
return false;
W LUASCRIPT.CPP znajdź:

#ifdef YUR_MULTIPLIERS
EXP_MUL = getGlobalNumber("expmul",1);
EXP_MUL_PVP = getGlobalNumber("expmulpvp",1);
HEALTH_TICK_MUL =...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Dinamicas
  • Dinamica
  • Dinamica
  • Dinamicas
  • Dinamicas
  • Dinamica
  • Dinamica
  • Dinamica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS