No offense but your getting errors in every copy paste release. Take it slow , check everything twice.
05-09-11
Xakzi
Re: PETFILTER (copy paste)
maybe if you wrote what error you get, then it would be easier to help ya out, other then that, the codes looks like its working, i havent tried it since i dont have to lol, but it is really a spoon fed pet filter for big time leechers (like him above ^)
anyway, post your error instead of saying stuff that you dont know ;)
06-09-11
Akerius
Re: PETFILTER (copy paste)
Quote:
Originally Posted by Kenzy
It's working, no bugs or anything like that?
---------- Post added at 10:08 AM ---------- Previous post was at 09:18 AM ----------
I think there are something that you need to change >.>
Change #ifdef to #ifndef or idk , im getting errors in that lines.
ifdef statement meaning if define statement while ifndef statement meaning ifnot define statement...
look the statement
#ifdef _PETFILTER_HOL_B
meaning if PETFILTFILTER_HOL_B is defined, it will do the next statement below
while
#ifndef _PETFILTER_HOL_B
meaning if _PETFILTER_HOL_B is not defined, it will do the next statement
*since the _PETFILTER_HOL_B is defined in DPSrvr.cpp/h
the ifndef statement will not do the statement
ifndef statement purpose is to support some codes either you comment something or uncomment it but, to make your statement correct, you need to support your ifndef statement like this
#ifndef ITEM01
#ifdef ITEMDEFAULT
statement
#endif
#endif
---------- Post added at 01:31 AM ---------- Previous post was at 12:36 AM ----------
if you got problem with first Step, use this:
look this
Code:
BOOL CAIPet::SubItemLoot( void )
replace the entire code regards with BOOL CAIPet::SubItemLoot( void )
with this
i dont know your exact source codes regards with BOOL CAIPet::SubItemLoot( void ) so, paste mine
06-09-11
carlos123
Re: PETFILTER (copy paste)
no errors/warning compiling, added it in resdata.inc/txt.txt but the client crash when i use a buff pet :)
06-09-11
Akerius
Re: PETFILTER (copy paste)
did you put the resdata.inc and .txt to your datasub1.res?
06-09-11
carlos123
Re: PETFILTER (copy paste)
yea ofc.
06-09-11
Akerius
Re: PETFILTER (copy paste)
just a reminder:
the resdata.inc posted is a new version of resdata.inc
and dont copy paste the whole script in resdata.inc, just add some script that is lack to your
APP_BUFFPET_STATUS "WndTile00.tga" "" 1 352 128 0x2410000 26
if im not mistaken the lack scripts in resdata.inc for those who dont have pet filter ends in
IDS_RESDATA_INC_006623
}
WTYPE_STATIC WIDC_STATIC2 "WndEditTile200.tga" 1 178 2 340 18 0x2220001 0 0 0 0 46 112 169
{
the resdata.inc posted is a new version of resdata.inc
and dont copy paste the whole script in resdata.inc, just add some script that is lack to your
APP_BUFFPET_STATUS "WndTile00.tga" "" 1 352 128 0x2410000 26
if im not mistaken the lack scripts in resdata.inc for those who dont have pet filter ends in
IDS_RESDATA_INC_006623
}
WTYPE_STATIC WIDC_STATIC2 "WndEditTile200.tga" 1 178 2 340 18 0x2220001 0 0 0 0 46 112 169
{
with this system you could have only one value to save in your database, to allow persistent petfilter infos :p
19-11-15
BloodGood
Re: PETFILTER (copy paste)
Alright so these are the two errors i am getting after copying the code Tried to redo it three times still same error. :/
Spoiler:
error C2440: '=' : cannot convert from 'void (__cdecl *)(CAr &,DPID,DPID,LPBYTE,u_long)' to 'void (__thiscall CDPSrvr::* )(CAr &,DPID,DPID,LPBYTE,u_long)'
c:\Users\Chris\Desktop\New Flyff\Flyff Repack (v15) (rev3.1)\Source\Src\Worldserver\DPSrvr.cpp(12418): error C2039: 'OnBuffPetUpdateCollection' : is not a member of 'CDPSrvr'
Update
I fixed it haha in Dpsrvr.h the code had to be before this }; Didn't know that woops XD.
19-11-15
Frostbite
Re: PETFILTER (copy paste)
Quote:
Originally Posted by BloodGood
Alright so these are the two errors i am getting after copying the code Tried to redo it three times still same error. :/
Spoiler:
error C2440: '=' : cannot convert from 'void (__cdecl *)(CAr &,DPID,DPID,LPBYTE,u_long)' to 'void (__thiscall CDPSrvr::* )(CAr &,DPID,DPID,LPBYTE,u_long)'
c:\Users\Chris\Desktop\New Flyff\Flyff Repack (v15) (rev3.1)\Source\Src\Worldserver\DPSrvr.cpp(12418): error C2039: 'OnBuffPetUpdateCollection' : is not a member of 'CDPSrvr'
Update
I fixed it haha in Dpsrvr.h the code had to be before this }; Didn't know that woops XD.