What's new

Skrypty & Kody Moby atakuj? same siebie

Status
Not open for further replies.

Ian92

User
Joined
Feb 16, 2011
Messages
47
Reaction score
0
Witam.
Pisz? z konta kolegi, poniewa? mam powa?ny problem.
Chodzi oto, ?e mobki wybijaj? same siebie z czar?w obszarowych.
Czy kto? ma poj?cie jak to wy??czy??

Z g?ry dzi?kuj? za pomoc.
Pozdrawiam.
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Moby atakuj? same siebie

game.cpp. Pod:
PHP:
bool deny = false;
				CreatureEventList statsChangeEvents = target->getCreatureEvents(CREATURE_EVENT_STATSCHANGE);
				for(CreatureEventList::iterator it = statsChangeEvents.begin(); it != statsChangeEvents.end(); ++it)
				{
					if(!(*it)->executeStatsChange(target, attacker, STATSCHANGE_HEALTHLOSS, combatType, damage))
						deny = true;
				}
Doklej:
PHP:
		        if(attacker && target)
                {
                    if(attacker->getMonster() && target->getMonster())
                    {
                        if(attacker->isSummon() && target->isSummon())
                        {
                            if(!attacker->isPlayerSummon() && !target->isPlayerSummon())
                                deny = true;
                        }
                        else if(attacker->isSummon())
                            deny = (!attacker->isPlayerSummon() ? true : false);
                        else if(target->isSummon())
                            deny = (!target->isPlayerSummon() ? true : false);
                        else
                            deny = true;
                    }
                }
 

Ian92

User
Joined
Feb 16, 2011
Messages
47
Reaction score
0
Odp: Moby atakuj? same siebie

Dzi?ki, wszystko dzia?a, masz reputa. Wiesz jak ustawi? w c++ by summony nie zabiera?y po?owy expa?
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Moby atakuj? same siebie

creature.cpp
Szukasz:
PHP:
void Creature::onGainExperience(double& gainExp, bool fromMonster, bool multiplied)
I usuwasz:
PHP:
gainExp = gainExp / 2;
 

Ian92

User
Joined
Feb 16, 2011
Messages
47
Reaction score
0
Odp: Moby atakuj? same siebie

Dzi?ki wielkie. Reput.
 
Status
Not open for further replies.
Top