Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~Orivexes: so this is gonna be a bit of an experiment
- ~Orivexes: be sure to tell your users that you may have to wipe the data at some point
- ~Orivexes: anyways
- ~Orivexes: http://hastebin.com/bojepikoqu.pas
- +EnerG218: ok
- ~Orivexes: that should all be copy-pasted into a file to be called pokemon.mysql
- +EnerG218: thanks :)
- ~Orivexes: they're called stored procedures
- ~Orivexes: now... i don't remember exactly how to run them lol
- ~Orivexes: sorry, it's been a really long time
- +EnerG218: lol its ok
- ~Orivexes: but once you feed them into mysql, it's like a bunch of functions to run the league
- ~Orivexes: so like
- ~Orivexes: my javascript only tells mysql to execute these things
- ~Orivexes: a lot of the stuff is done through here
- ~Orivexes: it does some neat things, like detects for unique names so you won't end up with like, some loser having two gyms
- ~Orivexes: you'll need a database called pokemon probably
- ~Orivexes: and a user with full access to the database
- ~Orivexes: you'll also want to make sure your computer is pretty darn secure
- ~Orivexes: once you get that running and stuff, um... try executing a few of the procedures purely in mysql to make sure it works
- +EnerG218: do i just name it pokemon and a mySQL file or do i name it pokemon.mysql
- ~Orivexes: again, i kinda forgot how to do it
- ~Orivexes: name it pokemon.mysql
- +EnerG218: where do i put it, just in pokemon-showdown ?
- ~Orivexes: uh literally anywhere?
- ~Orivexes: mysql is kinda
- ~Orivexes: in a different place
- ~Orivexes: it's like a big excel spreadsheet, sorta
- ~Orivexes: 'cept more for programming and stuff
- +EnerG218: so what format?
- +EnerG218: like as a notepad?
- ~Orivexes: yeah
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement