mangosR2 / scriptdev2

MangosR2 universal Script Library, compartible with all mangosR2 cores (v2, 3, 4 and possible later).
http://mangosr2.2x2forum.com/
GNU General Public License v2.0
82 stars 47 forks source link

Tanaris script crash #140

Closed Undergarun closed 11 years ago

Undergarun commented 12 years ago

http://pastebin.com/3mVrz9nf

RangerRU commented 12 years ago

... if (m_creature->getVictim()->GetTypeId() == TYPEID_PLAYER) SendItem(m_creature->getVictim()); ...

void SendItem(Unit* receiver)
{
    if (((Player*)receiver)->HasItemCount(11169,1,false) &&
        ((Player*)receiver)->HasItemCount(11172,11,false) &&
        ((Player*)receiver)->HasItemCount(11173,1,false) &&
        !((Player*)receiver)->HasItemCount(11522,1,true))
    {
        if (Item* pItem = ((Player*)receiver)->StoreNewItemInInventorySlot(11522, 1))
            ((Player*)receiver)->SendNewItem(pItem, 1, true, false);
    }
}
rsa commented 12 years ago

seems as try item dupe over WPE. need check anticheat log.

Undergarun commented 12 years ago

http://pastebin.com/0cHRuYiW

Undergarun commented 11 years ago

Still happening http://pastebin.com/zTzjaiad :(

Undergarun commented 11 years ago

Thank you. I'll reopen if crash get back, but seems fixed.