[Source Release]Pet Filter

idk if i will use it or not on my server but still a nice release. the least i can do is look at it to see how it was made. that way i have even more of an understanding when i try to make my own things.
 
This Pet Filter was coded by myself. Credits go to me.

I have given it to one friend(Crucio/HollowByte), and then it took its way arround.
This was my first project with C++, that's the reason for unpretty code.
I'm using this at my private server, since I created it.

My definition has been "__ADVANCED_PET_COLLECTION". I don't know another way to proof this at the moment.

I also added this try-catch stuff, while testing it, and I created this function "Hack", having a great brainstormed name.

Regards,
Cyre/BlackGiant
 
Oh phew i thought this was the one i got my hands on, this seems a little more basic than the one i got xD if knew how to set it up.

Anyway nice release i wil see if i can get it working now.
 
hmm yeah I have most of it in the source except the one bit,
in WndPetSys, the line numbers are different than my source, so i dno which block this goes into xD

Code:
#ifdef _PETFILTER_HOL_B
    // bQuestItem, bWeapons, bArmor, bCards, bFood, bEggs, bStones, bAccessory
    CWndButton* chk = (CWndButton*) GetDlgItem( WIDC_CHECK1 );
    chk->SetCheck(g_DPlay.bQuestItem);

    chk = (CWndButton*) GetDlgItem( WIDC_CHECK2 );
    chk->SetCheck(g_DPlay.bWeapons);

    chk = (CWndButton*) GetDlgItem( WIDC_CHECK3 );
    chk->SetCheck(g_DPlay.bArmor);

    chk = (CWndButton*) GetDlgItem( WIDC_CHECK4 );
    chk->SetCheck(g_DPlay.bCards);

    chk = (CWndButton*) GetDlgItem( WIDC_CHECK5 );
    chk->SetCheck(g_DPlay.bFood);

    chk = (CWndButton*) GetDlgItem( WIDC_CHECK6 );
    chk->SetCheck(g_DPlay.bEggs);

    chk = (CWndButton*) GetDlgItem( WIDC_CHECK7 );
    chk->SetCheck(g_DPlay.bStones);

    chk = (CWndButton*) GetDlgItem( WIDC_CHECK8 );
    chk->SetCheck(g_DPlay.bAccessory);

#endif

EDIT, nvm i think it goes into void CWndBuffPetStatus::OnInitialUpdate()
 
Last edited:
well, look on the bright side it will probably do more good to those who can code but have not worked much on such things then those who cant

Heh, thats true, and im still a learner, but the more i mess with this kinda stuff the more i'll learn i guess.

So even if i cant get it working, ty for the release.
 
Back