|
Post by kekkeman on Feb 18, 2014 16:03:29 GMT
It's a simple fix, and would save a lot of time from moving my hand to press enter.
I don't see any reason why this should not exist as it doesn't mess up with anything.
It should only loot gold coins by right clicking so it doesn't mess with the platinum exchange function.
Here is some LUA-code of how it _could_ work;
function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1) elseif item.itemid == ITEM_PLATINUM_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, 1) elseif item.itemid == ITEM_PLATINUM_COIN and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEM_GOLD_COIN, ITEMCOUNT_MAX) elseif item.itemid == ITEM_CRYSTAL_COIN then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEM_PLATINUM_COIN, ITEMCOUNT_MAX) elseif item.itemid == ITEM_GOLD_COIN and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEM_GOLD_COIN, item.type) else return FALSE end return TRUE end
The gold loot code is the following lines:
elseif item.itemid == ITEM_GOLD_COIN and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEM_GOLD_COIN, item.type) else
|
|
hero
Gozzler
Posts: 16
|
Post by hero on Feb 18, 2014 16:09:38 GMT
Isn't it for chaning 100 gold into platinum?
|
|
|
Post by rockstar on Feb 18, 2014 16:32:03 GMT
if its 1-99 gold, you get that, if its 100 gold, you get platinum
|
|
|
Post by kekkeman on Feb 18, 2014 17:54:22 GMT
Isn't it for chaning 100 gold into platinum? I made it, and tested on a local OT before posting, dw
|
|
|
Post by GM Kelin on Feb 21, 2014 13:47:47 GMT
We're discussing about this, we have not forgotten this suggestion!
|
|
Mist
Ginyu Force
Posts: 113
|
Post by Mist on Feb 24, 2014 21:01:21 GMT
Not to be rude, but doesn't that just check if the item pressed is a coin, with some practise.
The most useful way would probably be to loop through all the items within a container (corpse) and put all the coins in a list, eventually breaking down in platinum coins added to the user.
Regards ¡Mist
|
|
|
Post by kekkeman on Feb 26, 2014 7:55:26 GMT
Not to be rude, but doesn't that just check if the item pressed is a coin, with some practise. The most useful way would probably be to loop through all the items within a container (corpse) and put all the coins in a list, eventually breaking down in platinum coins added to the user. Regards ¡Mist Why even reply if you can't read LUA? As I stated before I already tested it before posting it
|
|
Mist
Ginyu Force
Posts: 113
|
Post by Mist on Mar 1, 2014 22:56:40 GMT
Not to be rude, but doesn't that just check if the item pressed is a coin, with some practise. The most useful way would probably be to loop through all the items within a container (corpse) and put all the coins in a list, eventually breaking down in platinum coins added to the user. Regards ¡Mist Why even reply if you can't read LUA? As I stated before I already tested it before posting it There are no problems with my LUA-reading, I just wanted to help. I merely though you'd click on a corpse to automatically loot it's containing gold, but you'd rather, simply, be able to press on a pile of coins to absorb them to your backpack. A rather smart include would be to investigate if this gold exists within a corpse, else you'd be able to press on coins everywhere to just absorb them, just a minor thought. Again, sorry if this may be rude.
|
|
|
Post by GM Kelin on Mar 2, 2014 13:08:33 GMT
We liked the original idea (clicking on a pile of gold to loot it) and will implement it with the next patch. About your idea Mist, we also like it, but you probably realised already that it's an extremely complicated and time-consuming system to make. At least we haven't come up with an easy way to implement it. We'll think about it anyways, but we don't think it's worth the time we could be working on other things that are much more needed right now.
|
|