inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 28, 2013 21:05:59 GMT -8
Okay, I have an RPG that uses money, and every so often, a character receives money for winning a battle or finds it randomly or a Pokemon has it on them or something. I was wondering, and I'm sure it's possible, if a plugin could be made to do: 1) upon a ubbc code ([money add="1" user=" someone"] or [money subtract="300" user=" someone"]), add or subtract to the given user's account total (whether it be a user key or super key or whatever) [make sure it only is done once {which is what I don't really know how I'd know it'd only be captured once}], 2) Display in profile, and 3) log of adding and subtracting along with a description that could be provided as well. It should only be allowed to be used by approved users (staff in general). The only real question about it is, how would I go about making the capture of the UBBC only happen once? Take a timestamp or something and check to see whether it's already been added/subtracted? Wormopolis Jordan RedBassett Peter Chris Todge Chris (tagged some people who may have a clue)
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 28, 2013 21:36:32 GMT -8
if you used a post key, you could add something into the key data when the tag gets processed.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 28, 2013 21:37:50 GMT -8
if you used a post key, you could add something into the key data when the tag gets processed. But would that be contributed to a more globalized key? Or it would be a symmetry of a few keys?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 28, 2013 23:26:23 GMT -8
it would require 2 keys in the same plugin. the post key would record the tag being processed, the user key would keep the money total.
its just an option.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 28, 2013 23:30:08 GMT -8
it would require 2 keys in the same plugin. the post key would record the tag being processed, the user key would keep the money total. its just an option. So, upon being posted, it would be processed? Or how would that work? It still would count it multiple times wouldn't it?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 29, 2013 0:21:05 GMT -8
that depends on if you want it to be processed when anyone simply puts a tag in a post. or you could make it where only certain people are allowed to authorize money transfers by clicking a button int he post display
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 29, 2013 0:23:38 GMT -8
that depends on if you want it to be processed when anyone simply puts a tag in a post. or you could make it where only certain people are allowed to authorize money transfers by clicking a button int he post display I'd prefer if it was more automatic. If a certain user, chosen in the plugin settings as allowed, posts the tags, that's when it's parsed.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 29, 2013 0:25:23 GMT -8
then yeah, you can do it on a submit. I just finished the alter plugin that updates a super user key on a post submit.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 29, 2013 0:26:54 GMT -8
What event is that? Does PB have one in its event base? Or did you just bind to a form submit?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 29, 2013 0:42:06 GMT -8
bind to form submit
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 29, 2013 13:20:32 GMT -8
So then if a user is to edit the post and change it, it would just change the data for that post key? How should I be going about totalling and accessing that for users? That's a lot of ajax requests to the server, one per user in a thread.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 29, 2013 15:00:09 GMT -8
well if you wanted it to only happen once then leave something in the post key so the tag doesnt get processed again. and the ajax sends would only happen that first submit.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 29, 2013 15:03:35 GMT -8
well if you wanted it to only happen once then leave something in the post key so the tag doesnt get processed again. and the ajax sends would only happen that first submit. How would I get a new post id? I'd use the proboards.on("new_post") or w/e it is, but it doesn't seem like it would do what I want it to do.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 29, 2013 15:11:19 GMT -8
you have to do both a "new_post" and "new_thread" otherwise the first post of a thread wont get hit. but in both you just leave a marker or something in the key data so it doesnt get changed again during an edit. your bigger problem will happen if they clear all the key data. then if they edit that particular post it will set the merker again.
if you dont want to use a key you dont have to. just run whatever function you need to on the submit.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 29, 2013 15:24:07 GMT -8
you have to do both a "new_post" and "new_thread" otherwise the first post of a thread wont get hit. but in both you just leave a marker or something in the key data so it doesnt get changed again during an edit. your bigger problem will happen if they clear all the key data. then if they edit that particular post it will set the merker again. if you dont want to use a key you dont have to. just run whatever function you need to on the submit. It makes sense to use a key for the posts, so I'll keep at it. I just don't understand how to get the id of the post in question.. I'm going to send you what I have currently, so let me know if I'm heading in the right direction.
|
|