Jump to content
  • 0

Trade effect Mijago.


Galet

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.