inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 21, 2013 8:37:08 GMT -8
@theforsaken: I've fixed it, but there's a new thing you'll have to fill out. You'll just have to define all your categories instead of just randomly adding them to the items. I'll tag you when I proboards accepts. Thanks! I really appreciate it. Your welcome...not really sure if I actually sent it to them...sorry for the wait. Peter: Thanks for the suggestion. I figured out a way to do it with a batch file and it seems to work pretty well. A lot easier to edit multiple small files than one great big one.
|
|
Former Member
inherit
guest@proboards.com
193924
0
Nov 24, 2024 8:02:41 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 21, 2013 11:45:54 GMT -8
It's all right. I'm not in any great rush. My forum isn't due to open for a while, any way. I'll just check on it in the library until I see an updated version.
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 22, 2013 15:17:50 GMT -8
Update has been accepted. You can download it now. Just post here if you have any questions.
|
|
inherit
182185
0
Apr 28, 2013 19:19:40 GMT -8
Thomasss
5,180
August 2012
thomje112
|
Post by Thomasss on Jul 22, 2013 17:53:01 GMT -8
Love it. Smooth update.
love the new fix btw.
Question: Why does it add a Item to the store, whenever I give an item?
Also, could there be a future update so items can be given to a user from the main admin, without the admin needing to own it?
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 8:02:41 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 22, 2013 18:25:57 GMT -8
I love the update! Just an idea, would it be possible to add the item ID to the mouseover description that shows on the profile? It would make it easier for players to give an item without having to jump back to the store. ^^ No probs if you cant and no rush! Great Job!
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 22, 2013 18:38:59 GMT -8
Thomasss: Answer to first question: It doesn't give it back to the shop. It just removes it from your profile. Everyone can give to everyone else. If I gave you five dollars, I'd lose five dollars, so if I give you five items, I lose five items. It's the same principle. Answer to second question: That's already possible by use of the command line. Go read the API and you can execute those commands in the command line. ( Firefox command line = menu>>web developer>>web console. IE = f12 ) However, I may add a gui ( Graphical User Interface i.e add a little box ) for it so you don't have to use the arcane method to get the job done. @greedsins: Yea, sure, I'd actually been meaning to do that and just keep forgetting.
|
|
inherit
182185
0
Apr 28, 2013 19:19:40 GMT -8
Thomasss
5,180
August 2012
thomje112
|
Post by Thomasss on Jul 22, 2013 18:57:57 GMT -8
Thomasss: Answer to first question: It doesn't give it back to the shop. It just removes it from your profile. Everyone can give to everyone else. If I gave you five dollars, I'd lose five dollars, so if I give you five items, I lose five items. It's the same principle. Answer to second question: That's already possible by use of the command line. Go read the API and you can execute those commands in the command line. ( Firefox command line = menu>>web developer>>web console. IE = f12 ) However, I may add a gui ( Graphical User Interface i.e add a little box ) for it so you don't have to use the arcane method to get the job done. @greedsins: Yea, sure, I'd actually been meaning to do that and just keep forgetting. Just tried, it gave back the item. I had 8 of one thing, gave a staff member one of the item I had, went back to up 9. I'll try out the API, thanks. Tried on google chrome, and could not figure it out. I did the console thing, inserted vitals.shop.api.give( fe , COL2 , 1 , inif ) as well as vitals.shop.api.give( user , COL2 , 1 , inif ) and it did not give the user anything. Sorry, new to code.
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 23, 2013 6:33:02 GMT -8
Thomasss: Okay, I see what your talking about. The number in the shop just says how many items you can buy. If I set the amount of a certain item to "5". I would only be able to get that item five times. However, if I were to give one of those that I had bought away, then it would go up one. Say I have bought four items. If that item has an amount of five, then in the shop, it will say I can buy one more. However, if I give one of the items away, I would only have three of that item, so the number in the shop would go back up to "2". So it doesn't give back the the shop. It's just saying that you had four, you gave one away, so now you can buy 2 instead of the previous 1. Sorry, I should have put up an example. This is what the function should look like. vitals.shop.data.give( 1 , 1 , 1 , false );
The first one is the ID of the user. Don't think I ever specified that. You can get the id of the user by going to their profile and checking the number in the url that immediately follows /user/. So if you are the admin and you were viewing you profile, the url would be yourforumurl.proboards.com/user/1. That number at the end is your id. The second number is the ID of the item. You can find the id of an item by going to the shop and looking at the number after the second "|" in the right column. So that's the number you want for the second spot. The third spot you have correctly, it's just the amount you want to give that person. And the fourth, you don't even really need to put any thing there. You can just leave it blank like this ( 1,1,1 ).
|
|
inherit
182185
0
Apr 28, 2013 19:19:40 GMT -8
Thomasss
5,180
August 2012
thomje112
|
Post by Thomasss on Jul 23, 2013 13:43:07 GMT -8
I tried it, but I would not give him the Item..
vitals.shop.data.give( 4 , 001 , 1 , false ); is what I put. And I refreshed, and nothing. The string lit up blue in the console on enter, but that's about it so I gave it to him the regular way.
(Ah, okay. Thanks for clarification on that.)
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 23, 2013 14:26:05 GMT -8
Try putting 001 in quotes. That should fix it.
|
|
inherit
182185
0
Apr 28, 2013 19:19:40 GMT -8
Thomasss
5,180
August 2012
thomje112
|
Post by Thomasss on Jul 23, 2013 14:43:21 GMT -8
Nope.
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 8:02:41 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 23, 2013 15:30:12 GMT -8
I'm getting a strange issue with the new shop code. When I return something it moves money from the bank from the monetary plug in back to the wallet.
Like right now I have 339.56 inthe bank and 0 in the wallet. When I return an item that's 5.00. Now I have 402.14 in the wallet and 12.42 in the bank.
Also question about the retail part of the plug in. What numeral do you put down just to give the player back what they paid for?
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 23, 2013 15:43:35 GMT -8
Ummmmm, not seeing that at all. Not even sure that it's possible for my plugin to do that...cause I haven't put anything in my code that would mess with the bank storage. Leaving it blank will give them a full refund, 1 will also give them a full refund. And if you wanted to be generous you could put 2 and then they would get TWICE what they paid for
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 24, 2024 8:02:41 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 23, 2013 15:50:49 GMT -8
I dont know whats wrong. I tested it and it returned a 5.00 item and gave me 75.00 and the return setting is blank.
Perhaps its with the code ive been inputting? When I put a single item in using the normal item brackets it worked fine but when i used the JSON input line it doesn't work properly.
[{"image_of_item":" http://i1137./n511/JAFTadmin/shop/I_Amethist-1.png ","cost_of_item":"75","item_catagory":"Rare Artifacts and Elements","description":"Star Sapphire: Created by the Zamarons, an all-female offshoot of the Guardians, these gems were originally crystals which took possession of their wielders.","item_id":"1","amount":"","givable":"true","returnable":"true"}]
Is that code correct?
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 24, 2013 4:41:17 GMT -8
@greedsins: Wait, are you saying you added that to the JSON string? Or is that just part of your current one? Or is that the entire string that your testing with? Edit: I checked your forum, and when I open the console I get an syntax error that looks like it belongs to the Trophy Award System. I'll go check and see whats going on with that, cause that could somehow mess with my code, but I'm really sure how
|
|