Skip to content

Instantly share code, notes, and snippets.

@gadeleon
gadeleon / experience_converter.lua
Created September 27, 2017 16:40
MMOCoreORB/bin/scripts/screenplays/village/convos/convohelpers/experience_converter.lua
local ObjectManager = require("managers.object.object_manager")
local Logger = require("utils.logger")
require("utils.helpers")
require("screenplays.screenplay")
-- The valid screenPlayState val's for branch unlock are as follows:
-- 0: Does NOT qualify for branch unlock.
-- 1: Qualifies for branch unlock, not unlocked. NOTE: This only applies to Hologrinder boxes.
-- 2: Branch Unlocked.
@gadeleon
gadeleon / ithorian_female.lua
Last active September 27, 2017 03:25
MMOCoreORB/bin/scripts/object/creature/player/
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
@gadeleon
gadeleon / core3.service
Last active August 19, 2017 23:25
systemd file for core3 service
[Unit]
Description = SWGEmu Core3 Server
[Service]
WorkingDirectory = /home/swgemu/workspace/Core3/MMOCoreORB/bin
ExecStart = /home/swgemu/workspace/Core3/MMOCoreORB/bin/core3
# Change from "on-failure" to "always" if desired
Restart = on-failure
'''
OAuth Authentication with Toodledo via Python without needing to proprly handle
the callback. This example uses requests_oauthlib which can be installed via
pip.
Combines Reddit's Python Oauth Instructions:
(https://github.com/reddit/reddit/wiki/OAuth2-Python-Example)
With requests_oauthlib's Google:
(http://requests-oauthlib.readthedocs.org/en/stable/examples/google.html)
And GitHub's examples
(http://requests-oauthlib.readthedocs.org/en/stable/examples/github.html)