coins weightless
can we change this somewhere in the code that coins are weightless?
And that there is a loot all button? |
Loot all button would be very hard to implement, as it is currently not available in the titanium client.
As for coins being weightless, that can be changed. Find Code:
int16 Client::CalcCurrentWeight() { and take out the line: Code:
Total += (m_pp.platinum + m_pp.gold + m_pp.silver + m_pp.copper) / 4; |
I recall some items on live that were favored by monks. I believe they were called coin purses or something like that. Basically, they reduced the weight of coins on your character by a percentage.
I think it would be cool to implement coin purses into the emu if it is possible. I don't really know the specifics offhand about what item settings would be used for that, but 13th floor may be of some use. Here is a list of some coin purses, which I assume are the items I was thinking of: http://eqitems.13th-floor.org/itemse...ame=coin+purse As long as they have something special set on them so we can tell them apart from other bags, it shouldn't be too hard to implement. From looking at a few examples, the only thing I can see special is "bagtype". It seems that the coin purses are all set to bagtype 0. Other bags I looked at are set to type 1 or 5. Bag of the Tinkerers (Bagtype 1) http://eqitems.13th-floor.org/itemraw.php?id=17403 Hand Made Backpack (Bagtype 5) http://eqitems.13th-floor.org/itemraw.php?id=17969 Frizznik's Endless Coin Purse (Bagtype 0) http://eqitems.13th-floor.org/itemraw.php?id=17209 Here is a list of known bagtypes from the wiki. It definitely isn't a complete list though: Code:
o 2 = Quiver Tailored Small Bag http://eqitems.13th-floor.org/item.php?id=17047 I would be curious to see if this Tailored bag actually does have a 10% weight reduction benefit on EQLive. If so, it would be safe to assume that bagtype 0 is for coin weight reduction as well as the normal item weight reduction. And if that is the case, we could just check the main inventory slots for a bag with bagtype 0 when calculating player weight and then just reduce their weight by the amount set in the bagwr field. As far as loot all, I believe that is an option with the new SoF client, but I am not at my EQ PC atm to check for sure. If so, I am sure it would be possible to code it in. |
Yelinak could drop a coin purse... It just bothered me to think of what part of the dragon it was made from =X
|
this could also be implemented as a rule so coins could be weightless or not. Coin purses shouldn't be too hard either
|
if someone made a rule Character:CoinWeightless or something of the like (I don't know too much about the DB, otherwise I'd set it all up myself, but I don't got the stuff to do it here :/)
and then just at 919 in zone/client_mods.cpp adding: Code:
if (!RuleI(Character, CoinWeightless) |
well, after some testing (and then asking some people :P), weight is calculated client side (but things that benefit from low weight such as monk AC are server side, so that's about all this would effect)
|
Item weight is probably calculated client side, but I would kinda be surprised if coin weight was too. The thing that makes me think it might not be is because if you trade coin, it takes a few seconds before weight is actually updated. Not sure what is causing the delay though.
|
Quote:
Was trying to set up a rule to have coins have a weght or not, they had it both with it set to true and false commented out that crap, still had the weight, and I couldn't find anything else on it, plus mq2docrack can let you walk around over encumbered, pointing towards it bring calculated client side (not sure if docrack will let you do it here, saw some code that should prevent it, or at least log it if you are moving while over encumbered |
It's calculated client side, I'm not really sure why the client sometimes waits a few seconds after trades to update it's weight... another quirk of the client.
|
Oh sweet! I just figured out that coin reducing bags do already work client-side lol. Just do a #si 17209 and put the bag it summons into your main inventory slot while you have a bunch of coin weight on you (#givemoney 20000 0 0 0). It will reduce your weight a huge amount as it should. Since this is already handled client-side, we just need to add the code for it server-side and people can easily have a way for their players to have weightless coins by giving them a 100% weight reducing bag with bagtype set to 0. Even without adding the code for it, players will be able to walk the speed they should be walking, since walk speed from weight seems to be purely client-side. The only reason to add the code is so people don't fall off of things and die from the server killing them due to being overweight :P
|
But the client handles fall damage too =x
|
I guess you could either do that, or make them have a tribute item with 100% weight reduction a tribute slot. That way they don't have an item slot taken up.
As for falling... remove the packet for dealing fall damage? Not sure. edit: now that I think about it, tributes might be useful for other things. You could give a dedicated slot on items for having stuff like see invis all the time on a worn effect. The only thing the client would have to do is *maybe* download a spell file, and when the item gets sent to the client it has see invis. I'll see what I come up with. :P |
Secrets, fall damage is handled client side
|
Quote:
As far as i'm aware, there is nothing stopping you from removing the update serverside for HP and have that so when you fall, you see the damage message but nothing happens serversided, resulting in you just getting up when you fall. Sometimes it's easier to remove stuff :P |
All times are GMT -4. The time now is 05:53 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.