http://pastebin.com/hPAWdHrN Patch resilience rating
http://pastebin.com/gqyjXMfa ChatLexicsCutter
http://pastebin.com/u6wfC6Kf Arena 1x1
Can anyone adjust to the latest build?

Transmogrif.
Tell me what is wrong here?
http://pastebin.com/HGVdxfW5
Errors

/home/stre/wow/last/OregonCore/src/scripts/Custom/npc_transmogrification.cpp: In function ‘bool GossipSelect_npc_transmogrification(Player*, Creature*, uint32, uint32)’:
/home/stre/wow/last/OregonCore/src/scripts/Custom/npc_transmogrification.cpp:39:18: error: ‘class Player’ has no member named ‘isInCombat’
     if (pPlayer->isInCombat())

Transmo fix

 if (pPlayer->isInCombat())
 if (pPlayer->IsInCombat())

Did u try the Arena 1v1 ?

shkrest wrote:

Transmogrif.
Tell me what is wrong here?
http://pastebin.com/HGVdxfW5
Errors

Not a full script
Full script

5 (edited by Baynar 2016-06-13 15:06:48)

zugurysus wrote:
shkrest wrote:

Transmogrif.
Tell me what is wrong here?
http://pastebin.com/HGVdxfW5
Errors

Not a full script
Full script

The script is full e.e and you are selling something that isn't yours

Full script AND FREE

AND 2nd part here ALL FOR FREE

just replace isInCombat with IsInCombat

cyberpro wrote:

Did u try the Arena 1v1 ?

Yes I tried. But I do not work. The patch is installed, I checked everything. At acquaintance working at 3520 revison. I have a little newer and does not work, writes that: Arena 1v1 not allowed server administrator. I do not understand why.

remove check

   if (!sWorld.getConfig(CONFIG_ARENA_SINGLE))
   {
       player->CLOSE_GOSSIP_MENU();
       creature->MonsterWhisper("Arena 1v1 not allowed server administrator.", player->GetGUID());
       return;
   }

It creates an arena, but is not on the battlefield.

Patch RESILIENCE Rating can be adjusted in the config JOB!

diff -r 154cbf33d79a -r d25ceb27520e src/game/Player.cpp
--- a/src/game/Player.cpp    Mon May 07 07:39:09 2012 +0300
+++ b/src/game/Player.cpp    Mon May 07 07:55:52 2012 +0300
@@ -4745,24 +4745,26 @@
 uint32 Player::GetMeleeCritDamageReduction(uint32 damage) const
 {
     float melee  = GetRatingBonusValue(CR_CRIT_TAKEN_MELEE)*2.0f;
-    if (melee>25.0f) melee = 25.0f;
-    return uint32 (melee * damage /100.0f);
+    if (melee > sWorld.getRate(RATE_RESILIENCE_LIMIT_REDUSE))
+        melee = sWorld.getRate(RATE_RESILIENCE_LIMIT_REDUSE);
+    return uint32 ((melee * damage /100.0f) * (sWorld.getRate(RATE_RESILIENCE)));
 }
 
 uint32 Player::GetRangedCritDamageReduction(uint32 damage) const
 {
     float ranged = GetRatingBonusValue(CR_CRIT_TAKEN_RANGED)*2.0f;
-    if (ranged>25.0f) ranged=25.0f;
-    return uint32 (ranged * damage /100.0f);
+    if (ranged > sWorld.getRate(RATE_RESILIENCE_LIMIT_REDUSE))
+        ranged = sWorld.getRate(RATE_RESILIENCE_LIMIT_REDUSE);
+    return uint32 ((ranged * damage /100.0f) * (sWorld.getRate(RATE_RESILIENCE)));
 }
 
 uint32 Player::GetSpellCritDamageReduction(uint32 damage) const
 {
     float spell = GetRatingBonusValue(CR_CRIT_TAKEN_SPELL)*2.0f;
-    // In wow script resilience limited to 25%
-    if (spell>25.0f)
-        spell = 25.0f;
-    return uint32 (spell * damage / 100.0f);
+    // In wow script resilience limited to 25% but is now it can be tune in config
+    if (spell > sWorld.getRate(RATE_RESILIENCE_LIMIT_REDUSE))
+        spell = sWorld.getRate(RATE_RESILIENCE_LIMIT_REDUSE);
+    return uint32 ((spell * damage / 100.0f) * (sWorld.getRate(RATE_RESILIENCE)));
 }
 
 uint32 Player::GetDotDamageReduction(uint32 damage) const
@@ -4771,7 +4773,7 @@
     // Dot resilience not limited (limit it by 100%)
     if (spellDot > 100.0f)
         spellDot = 100.0f;
-    return uint32 (spellDot * damage / 100.0f);
+    return uint32 ((spellDot * damage / 100.0f) * (sWorld.getRate(RATE_RESILIENCE)));
 }
 
 float Player::GetExpertiseDodgeOrParryReduction(WeaponAttackType attType) const
diff -r 154cbf33d79a -r d25ceb27520e src/game/Unit.cpp
--- a/src/game/Unit.cpp    Mon May 07 07:39:09 2012 +0300
+++ b/src/game/Unit.cpp    Mon May 07 07:55:52 2012 +0300
@@ -2892,9 +2892,9 @@
     if (pVictim->GetTypeId() == TYPEID_PLAYER)
     {
         if (attackType == RANGED_ATTACK)
-            crit -= pVictim->ToPlayer()->GetRatingBonusValue(CR_CRIT_TAKEN_RANGED);
+            crit -= pVictim->ToPlayer()->GetRatingBonusValue(CR_CRIT_TAKEN_RANGED) * sWorld.getRate(RATE_RESILIENCE);
         else
-            crit -= pVictim->ToPlayer()->GetRatingBonusValue(CR_CRIT_TAKEN_MELEE);
+            crit -= pVictim->ToPlayer()->GetRatingBonusValue(CR_CRIT_TAKEN_MELEE) * sWorld.getRate(RATE_RESILIENCE);;
     }
 
     if (crit < 0.0f)
@@ -7801,7 +7801,7 @@
                 crit_chance += pVictim->GetTotalAuraModifier(SPELL_AURA_MOD_ATTACKER_SPELL_AND_WEAPON_CRIT_CHANCE);
                 // Modify by player victim resilience
                 if (pVictim->GetTypeId() == TYPEID_PLAYER)
-                    crit_chance -= pVictim->ToPlayer()->GetRatingBonusValue(CR_CRIT_TAKEN_SPELL);
+                    crit_chance -= pVictim->ToPlayer()->GetRatingBonusValue(CR_CRIT_TAKEN_SPELL) * sWorld.getRate(RATE_RESILIENCE);
                 // scripted (increase crit chance ... against ... target by x%
                 if (pVictim->isFrozen()) // Shatter
                 {
diff -r 154cbf33d79a -r d25ceb27520e src/game/World.cpp
--- a/src/game/World.cpp    Mon May 07 07:39:09 2012 +0300
+++ b/src/game/World.cpp    Mon May 07 07:55:52 2012 +0300
@@ -534,6 +534,9 @@
         rate_values[RATE_DURABILITY_LOSS_BLOCK] = 0.0f;
     }
 
+    rate_values[RATE_RESILIENCE] = sConfig.GetFloatDefault("Rate.Resilience",1.00f);
+    rate_values[RATE_RESILIENCE_LIMIT_REDUSE] = sConfig.GetFloatDefault("Rate.ResilienceLimitReduse",25.00f);
+
     // Read other configuration items from the config file
 
     m_configs[CONFIG_COMPRESSION] = sConfig.GetIntDefault("Compression", 1);
diff -r 154cbf33d79a -r d25ceb27520e src/game/World.h
--- a/src/game/World.h    Mon May 07 07:39:09 2012 +0300
+++ b/src/game/World.h    Mon May 07 07:55:52 2012 +0300
@@ -318,6 +318,8 @@
     RATE_DURABILITY_LOSS_PARRY,
     RATE_DURABILITY_LOSS_ABSORB,
     RATE_DURABILITY_LOSS_BLOCK,
+    RATE_RESILIENCE,
+    RATE_RESILIENCE_LIMIT_REDUSE,
     MAX_RATES
 };
 
diff -r 154cbf33d79a -r d25ceb27520e src/oregoncore/oregoncore.conf.dist
--- a/src/oregoncore/oregoncore.conf.dist    Mon May 07 07:39:09 2012 +0300
+++ b/src/oregoncore/oregoncore.conf.dist    Mon May 07 07:55:52 2012 +0300
@@ -1987,6 +1987,16 @@
 #       Default: 0 (Disabled)
 #                1 - Enabled
 #
+#    Rate.Resilience
+#        Default: 1
+#                 2 - 200%
+#                 0.5 - 50%
+#
+#    Rate.ResilienceLimitReduse
+#        Limit reduse crit damage from resilience
+#        Default: 25 - 25%
+#                 >50 - not recomended
+#
 ###############################################################################
 
 PlayerStart.AllReputation = 0
@@ -2006,6 +2016,8 @@
 PlayerStart.String = ""
 DuelMod.Enable = 0
 DuelMod.Cooldowns = 0
+Rate.Resilience = 1
+Rate.ResilienceLimitReduse = 25
 
 ###############################################################################
 # AUTO BROADCAST

It displays fake players Who list

diff -r 3f5e43ad261c -r 91d02f24edd7 src/game/MiscHandler.cpp 
--- a/src/game/MiscHandler.cpp    Mon Apr 07 11:50:26 2014 +0400 
+++ b/src/game/MiscHandler.cpp    Mon Apr 14 18:35:14 2014 +0400 
@@ -345,8 +345,9 @@ 
break; 
} 

- data.put(0, clientcount); // insert right count, listed count 
- data.put(4, clientcount); // insert right count, online count 
+    uint32 fakeclientcount = (clientcount * sWorld.getConfig(FAKE_WHO_MULT) + sWorld.getConfig(FAKE_WHO_ADD)); 
+ data.put(0, clientcount); // insert right count, listed count 
+ data.put(4, fakeclientcount); // insert right count, online count 

SendPacket(&data); 
DEBUG_LOG("WORLD: Send SMSG_WHO Message"); 
diff -r 3f5e43ad261c -r 91d02f24edd7 src/game/World.cpp 
--- a/src/game/World.cpp    Mon Apr 07 11:50:26 2014 +0400 
+++ b/src/game/World.cpp    Mon Apr 14 18:35:14 2014 +0400 
@@ -1105,6 +1105,8 @@ 
m_configs[CONFIG_PET_LOS] = enablePetLOS; 
m_configs[CONFIG_VMAP_TOTEM] = sConfig.GetBoolDefault("vmap.totem", false); 
m_configs[CONFIG_MAX_WHO] = sConfig.GetIntDefault("MaxWhoListReturns", 49); 
+    m_configs[FAKE_WHO_MULT] = sConfig.GetIntDefault("FakeWhoList.Multiple", 1); 
+    m_configs[FAKE_WHO_ADD] = sConfig.GetIntDefault("FakeWhoList.Add", 0); 

m_configs[CONFIG_BG_START_MUSIC] = sConfig.GetBoolDefault("MusicInBattleground", false); 
m_configs[CONFIG_START_ALL_SPELLS] = sConfig.GetBoolDefault("PlayerStart.AllSpells", false); 
diff -r 3f5e43ad261c -r 91d02f24edd7 src/game/World.h 
--- a/src/game/World.h    Mon Apr 07 11:50:26 2014 +0400 
+++ b/src/game/World.h    Mon Apr 14 18:35:14 2014 +0400 
@@ -231,6 +231,8 @@ 
CONFIG_ARENA_MIN_RATING_COUNT, 
CONFIG_SEEINWHOLIST_PREP, 
CONFIG_MAX_WHO, 
+    FAKE_WHO_MULT, 
+    FAKE_WHO_ADD, 
CONFIG_BG_START_MUSIC, 
CONFIG_START_ALL_SPELLS, 
CONFIG_HONOR_AFTER_DUEL, 
diff -r 3f5e43ad261c -r 91d02f24edd7 src/oregoncore/oregoncore.conf.dist 
--- a/src/oregoncore/oregoncore.conf.dist    Mon Apr 07 11:50:26 2014 +0400 
+++ b/src/oregoncore/oregoncore.conf.dist    Mon Apr 14 18:35:14 2014 +0400 
@@ -828,6 +828,10 @@ 
StrictCharterNames = 0 
StrictPetNames = 0 
MaxWhoListReturns = 49 
+# WhoList > MaxWhoListReturns 
+FakeWhoList.Multiple = 1 
+# WhoList >MaxWhoListReturns 
+FakeWhoList.Add = 0 
CharactersCreatingDisabled = 0 
CharactersPerAccount = 50 
CharactersPerRealm = 10