by PurpleYouko on Thu Jul 09, 2009 3:52 pm
Well that's not exactly what i had in mind. i meant to put the code for the function in a code box on the forums rather than as an attachment.
I'll take a look
OK well for one thing this code is out of osProse as far as i can tell. It is using all kinds of data structures that are unavailable in rev 80 to start with.
like this for example
int dropchance = thismon->thisnpc->item + thismon->thisnpc->money + thisclient->Stats->itemdroprate + thisclient->Stats->zulydroprate;
thismon->thisnpc->item and thismon->thisnpc->money are read directly from LIST_NPC.STB so you have no access to them in rev 80 at all.
If this code that you posted came from a rev 80 server then the number of apples getting dropped is the least of your worries. I bet most of teh data structures used here are either empty, NULL or just contain some meaningless value.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classesFormatting fixed for different resolutions"A Gazelle is nothing but a giraffe plotted logarithmicaly"