Jump to content

Trade effect Mijago.


Recommended Posts

  • 1 year later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 8 months later...
  • Honorable Member
Spoiler

shop.cpp


// In CShop::Buy(LPCHARACTER ch, BYTE pos)
// add before if (IsPCShop()) and after LPITEM pkSelectedItem = IT....
    ////// Fly Effect
    if (m_pkPC) {
        for (int i = 1; i < r_item.price+1; i=i+100000000)
            ch->CreateFly(4,m_pkPC); // 1 Fly per 100kk
        m_pkPC->CreateFly(5,ch); // 1 Item
        m_pkPC->CreateFly(6,ch);
    }
    // END FLY EFFECT

 

exchange.cpp


// in bool CExchange::Done()
// before the loop
GetOwner()->CreateFly(6,victim);
// and after ITEM_MANAGER::instance().FlushDelayedSave(item);
GetOwner()->CreateFly(5,victim);

// after if (m_lGold){
for (int i = 1; i < m_lGold+1; i=i+500000) 
            GetOwner()->CreateFly(4,victim);  // 1 Fly per 500k

 

created by Mijago

 

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.