Implemented Split and Autosplit
Hey,
I have implemented the /split and /autosplit functions. http://eqemu.psend.com/split_with_auto.diff Patch in the zone directory against 7-31 CVS... applies clean, havent tried to run it with just this patch, but it works in my server repository. let me know if anybody has success or failure with this. |
What about those of us not usibg that version? :-)
|
the changes are pretty straight forward... you can prolly just read the patch file and copy as needed... but I really have no idea what any code more than about 2 weeks looks like :), and I know yours is rather old
|
not sure if works,but try this code(didnt test):
in groups.h: Code:
void SplitMoney(uint32 platinum,uint32 gold,uint32 silver,uint32 copper) ; Code:
void Group::SplitMoney(uint32 platinum,uint32 gold,uint32 silver,uint32 copper) Code:
case OP_Split: { |
im not trying to be a dick or anything, but there is a lot wrong with that code... my solution is much more complete and does most things very similarly... just some examples:
1. *edit* didnt see the takemoneyfrompp, nevermind. 2. it dosent handle rounding at all.. so everything rounds down (money disappears) 3. dosent send any money updates so nobody will see their splits 4. a uint* can never be negative :) |
I'll merge your autosplit code later fathernitwit.
|
Cool,
Have you actually tested with the OP_MoneyOnCorpse, instead of a full money update? I wasnt able to get it to work, it didnt seem to do anything... also a little cleanup might be to call SendClientMoneyUpdate (just found it) instead of building the money update packet in the split routine... |
it worked for me,I have seen something wrong in your code btw.
where it says AT_AUTOSPLIT or something like that,you are sending that packet to other people,and no one want to know that you have auto split on,except the server.I have tested all stuff and works. |
Quote:
patch has been updated. |
nice...i am going to work in ldon adventure system...would you help me,fathernitwit?it requires a lot of work and things to be collected,so the help of people are very good accepted.
|
lord of the rings adventure system? huh?
|
lotr system?what?you should go to the occulist...lol ,joke :).
Yeah I was thinking about lotr at that moment,but I tried to say ldon :).Like adventures and so. |
All times are GMT -4. The time now is 12:21 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.