This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import host | |
import bf2.PlayerManager | |
import fpformat | |
from constants import * | |
from bf2 import g_debug | |
from bf2.stats.stats import getStatsMap, setStatsMap, getPlayerConnectionOrderIterator, setPlayerConnectionOrderIterator, roundArmies | |
from bf2.stats.medals import getMedalMap, setMedalMap | |
def init(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const router = require("express").Router(); | |
const { Hero, User } = require("../models"); | |
const { restore } = require("../models/User"); | |
// /api/stats routes | |
module.exports = router; | |
router.get("/", async (req, res) => { | |
if (!req.session.loggedIn) { | |
res.redirect("/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 5.1.0 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1:3306 | |
-- Generation Time: Dec 28, 2021 at 12:14 PM | |
-- Server version: 8.0.23 | |
-- PHP Version: 8.0.3 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init_stats: { | |
"c_ft": 'baseMSGFactionStats', | |
"c_team":'baseMSGFactionStats', | |
"c_hrc": 'haircolor', | |
"c_hrs": 'hair', | |
"c_skc": 'skintone', | |
"c_ltp": "0.0000", | |
"c_ltm": "0.0000", | |
"c_fhrs": "", | |
"c_slm": "2.0000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fesl | |
import ( | |
"github.com/Synaxis/bfheroesFesl/inter/network" | |
"github.com/Synaxis/bfheroesFesl/inter/network/codec" | |
"github.com/sirupsen/logrus" | |
"strconv" | |
) | |
const ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time="2019-01-03T19:48:17-02:00" level=info msg="NewUpdate: c_items 2003;2026;2027;2036;2037;2038;2039;2040;2050;2051;2052;2053;2060;2061;2062;2063;2064;2091;2092;2093;2094;2095;2149;2151;2153;2157;2158;2160;2162;2164;2166;2168;2170;2171 0 0.0000 0" | |
time="2019-01-03T19:48:17-02:00" level=info msg="===Update STATS====SUCCESS===: 2 2 c_items 2003;2026;2027;2036;2037;2038;2039;2040;2050;2051;2052;2053;2060;2061;2062;2063;2064;2091;2092;2093;2094;2095;2149;2151;2153;2157;2158;2160;2162;2164;2166;2168;2170;2171" | |
time="2019-01-03T19:48:17-02:00" level=info msg="Updating stat c_wallet_hero: -1.0000 + 5" | |
time="2019-01-03T19:48:17-02:00" level=info msg="===Update STATS====SUCCESS===: 2 2 c_wallet_hero 4.0000" | |
time="2019-01-03T19:48:17-02:00" level=info msg=client.SendPacket packet="rank\xc0\x00\x00\r\x00\x00\x00$TXN=UpdateStats\nu.[]=0\n\x00" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time="2019-01-03T19:41:14-02:00" level=debug msg=codec.NewCommand broadcast=0 id="[0 0 0]" payload="TID=0\n\x00" query=PING | |
level=debug msg=codec.NewCommand broadcast=192 id="[0 0 14]" payload="TXN=UpdateStats\nu.0.o=13\nu.0.ot=1\nu.0.s.[]=2\nu.0.s.0.ut=0\nu.0.s.0.k=c_items\nu.0.s.0.v=0.0000\nu.0.s.0.t=2070;2071;2075;2157\nu.0.s.0.pt=0\nu.0.s.1.ut=3\nu.0.s.1.k=c_wallet_hero\nu.0.s.1.v=-1.0000\nu.0.s.1.t=\nu.0.s.1.pt=0\nu.[]=1\n\x00" query=rank | |
level=debug msg=DB.Timing event=dbr.select ns=0s prefix=database sql="SELECT hero_stats FROM game_heroes WHERE (heroID = 13)" | |
level=debug msg="UpdateStats c_items with (0.0000, 0, 0 ) " | |
level=info msg="replaced stats value" | |
level=debug msg="UpdateStats c_wallet_hero with (-1.0000, 3, 0 ) " | |
level=info msg="added stats value" | |
level=debug msg=DB.Event event=dbr.begin prefix=database | |
level=debug msg=DB.Timing event=dbr.exec ns=0s prefix=database sql="UPDATE `game_heroes` SET `hero_stats` = '{\"c_ft\":\"126\",\"c_team\":\"1\",\"c_hrc\":\"5\",\"c_hrs\":\"0\",\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function bookmark() | |
{ | |
$user = (DB::table('game_player_server_preferences')->where('userid', Auth::user()->id)->first()); | |
$get_server = GameServerStats::distinct()->select('GID')->get(); | |
foreach ($get_server as $server) { | |
$stats = GameServerStats::where('gid', $server->gid)->get(); | |
$filteredData = []; | |
foreach ($stats as $stat) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_DWORD *__thiscall reqOffersXML(_DWORD *this, int a2, int a3) | |
{ | |
_DWORD *v3; // edi | |
_DWORD *v4; // esi | |
int v5; // eax | |
int v6; // eax | |
int v7; // ecx | |
unsigned int v8; // eax | |
int v10; // [esp-4h] [ebp-40h] | |
int v11; // [esp+0h] [ebp-3Ch] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fesl | |
import ( | |
"strconv" | |
"github.com/Synaxis/Hydra/inter/gs" | |
"github.com/Synaxis/Hydra/inter/log" | |
) | |
// GetStatsForOwners - Get Stats for Each HERO |
NewerOlder