Skip to content

Instantly share code, notes, and snippets.

package org.nyphrex.ge.core;
import com.google.common.collect.Multimap;
import com.google.common.collect.TreeMultimap;
import java.util.*;
/**
* Created by eve on 7/2/2014
*/
{EventEmitter} = require 'events'
OffsetBuffer = require 'offset-buffer'
Pipeline = require 'pipes-and-filters'
class Client extends EventEmitter
constructor: (@socket, buffsize=5000) ->
# Create the buffer
@buffer = new OffsetBuffer buffsize
# Create the input and output pipe
{
"public_exp": [
"10001"
],
"private_exp": [
"6fa82e86e1a1343f553d96365e0ec24f94d9d498180ab95a233e6c6125db2",
"07117cdb5f445fdabbe6a74f5f7820962edc7349612b5fa94efbeebac25614",
"5434180a93a8c3594f4957e60f95ddd00b4ddf42b954da36bfbc7c26c821f8",
"cd2330680d98361fde74b837d39a04be9b8ac053678937a756c0e964cd261d",
"79514ee470f35844c1dfbe142dd38673d360a8039c921510e0e2d01cc5beba",
# Render out if the request was successful and the response status
json.success status == 200 ? true : false
json.status status
# Render out the data for the response by either wrapping a proc or just using the provided object
if data.is_a? Proc
json.data &Proc.new { data.call }
else
json.data data
end
json.partial! 'groupcast/response', status: status, data: -> do
json.partial! model_partial, user: @user
end
json.partial! 'groupcast/response', status: status, data: -> do
json.users { json.array! @users, partial: model_partial, as: :user }
end
def decode_base37(val)
chars = "_abcdefghijklmnopqrstuvwxyz0123456789"
if val <= 0 or val >= 0x5b5b57f8a98a5dd1
return nil
end
if val % 37 == 0
return nil
end
752 0 container parent=-1, 255 [x=0, y=0, width=16391, height=16384, width-align=2, height-align=2, horz-align=0, vert-align=0, false]
752 2 container parent=752, 0 [x=0, y=0, width=16391, height=16384, width-align=2, height-align=2, horz-align=0, vert-align=0, false]
752 3 container parent=752, 0 [x=20, y=24, width=479, height=96, width-align=0, height-align=0, horz-align=0, vert-align=0, true]
752 6 container parent=752, 0 [x=5, y=5, width=506, height=130, width-align=0, height-align=0, horz-align=0, vert-align=0, true]
752 7 container parent=752, 0 [x=0, y=0, width=16391, height=16384, width-align=2, height-align=2, horz-align=0, vert-align=0, false]
752 8 container parent=752, 7 [x=6, y=7, width=12, height=12, width-align=1, height-align=1, horz-align=0, vert-align=0, false]
752 9 container parent=752, 7 [x=20, y=24, width=479, height=96, width-align=0, height-align=0, horz-align=0, vert-align=0, false]
752 10 container parent=752, 7 [x=0, y=0, width=15, height=18, width-align=1, height-align=1, h
A
----------------------------------------------
549 -> 2 : a
549 -> 3 : a_overlay
Fixed
----------------------------------------------
-> 9 : split_chat_box
-> 10 : unk_0
35 Excalibur, 501 501
48 Longbow (u), 26609 26609
50 Shortbow (u), 26610 26610
54 Oak shortbow (u), 26610 26610
56 Oak longbow (u), 26609 26609
58 Willow longbow (u), 26609 26609
60 Willow shortbow (u), 26610 26610
62 Maple longbow (u), 26609 26609
64 Maple shortbow (u), 26610 26610
66 Yew longbow (u), 26609 26609