Skip to content

Commit

Permalink
serverD source files
Browse files Browse the repository at this point in the history
  • Loading branch information
stonedDiscord committed Jan 18, 2015
1 parent f66dbcc commit 2c2ccd4
Show file tree
Hide file tree
Showing 17 changed files with 2,463 additions and 0 deletions.
116 changes: 116 additions & 0 deletions AOprivateServer.pbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://www.purebasic.com/namespace" version="1.0" creator="PureBasic 5.11 (Windows - x86)">
<section name="config">
<options closefiles="1" openmode="0" name="MITMserver II"/>
</section>
<section name="data">
<explorer view="" pattern="8"/>
<log show="1"/>
<lastopen date="2015-01-16 13:36" user="Sven" host="SPC"/>
</section>
<section name="files">
<file name="main.pb">
<config load="0" scan="1" panel="1" warn="1" lastopen="1" panelstate="+"/>
<fingerprint md5="127f53007e00b072f1dffafcb1582ab1"/>
</file>
<file name="Common.pb">
<config load="0" scan="1" panel="1" warn="1" lastopen="1" panelstate="+"/>
<fingerprint md5="3e5564ad2d60f592545c794d16687ee1"/>
</file>
<file name="gui.pbv">
<config load="0" scan="0" panel="1" warn="1" lastopen="0" panelstate="+"/>
<fingerprint md5="9859bd03ce00f7e385de5874b4842bf6"/>
</file>
<file name="poker.pb">
<config load="0" scan="0" panel="1" warn="0" lastopen="0" panelstate="+"/>
</file>
<file name="poker.ini">
<config load="0" scan="0" panel="1" warn="0" lastopen="1" panelstate="+"/>
</file>
<file name="checker.pb">
<config load="0" scan="1" panel="1" warn="1" lastopen="1" panelstate="+"/>
<fingerprint md5="52a297e6cdb91ee5216f5f2df8028a07"/>
</file>
</section>
<section name="targets">
<target name="Standard-Ziel" enabled="1" default="1">
<inputfile value="main.pb"/>
<outputfile value="build/serverD"/>
<compiler version="PureBasic 5.11 (Linux - x64)"/>
<commandline value="-auto"/>
<executable value="build\serverD"/>
<options thread="1" xpskin="1" debug="1"/>
<icon enable="1">
../stoneddiscord.ico
</icon>
<format exe="default" cpu="2"/>
<compilecount enable="1" value="389"/>
<buildcount enable="1" value="91"/>
<versioninfo enable="1">
<field0 value="2,%COMPILECOUNT,%BUILDCOUNT,0"/>
<field1 value="2,0,0,0"/>
<field2 value="stonedDiscord"/>
<field3 value="serverD"/>
<field4 value="2.%COMPILECOUNT.%BUILDCOUNT"/>
<field5 value="%BUILDCOUNT"/>
<field6 value="serverD AO custom server software"/>
<field7 value="MITM II"/>
<field8 value="serverD.exe"/>
<field15 value="VOS_NT_WINDOWS32"/>
<field16 value="VFT_APP"/>
<field17 value="2009 English (Jamaica)"/>
</versioninfo>
<constants>
<constant value="#SPAM = 0" enable="1"/>
<constant value="#EASYLOG = 1" enable="1"/>
<constant value="#REGEX = 0" enable="1"/>
<constant value="#NOPERM = 0" enable="1"/>
<constant value="#CONSOLE = 0" enable="1"/>
</constants>
</target>
<target name="checker" enabled="0" default="0">
<inputfile value="checker.pb"/>
<outputfile value="build/checker"/>
<compiler version="PureBasic 5.11 (Linux - x64)"/>
<executable value="build\checker.exe"/>
<options thread="1"/>
<format exe="console" cpu="0"/>
</target>
<target name="console" enabled="1" default="0">
<inputfile value="main.pb"/>
<outputfile value="build/serverDco"/>
<compiler version="PureBasic 5.11 (Linux - x64)"/>
<executable value="build\serverDco"/>
<options thread="1" debug="1"/>
<icon enable="0">
owner.ico
</icon>
<format exe="console" cpu="0"/>
<compilecount enable="1" value="389"/>
<buildcount enable="1" value="91"/>
<versioninfo enable="1">
<field0 value="2,%COMPILECOUNT,%BUILDCOUNT,0"/>
<field1 value="2,0,0,0"/>
<field2 value="stonedDiscord"/>
<field3 value="serverD"/>
<field4 value="2.%COMPILECOUNT.%BUILDCOUNT"/>
<field5 value="%BUILDCOUNT"/>
<field6 value="serverD AO custom server software"/>
<field7 value="MITM II"/>
<field8 value="serverDco.exe"/>
<field12 value="true"/>
<field15 value="VOS_NT_WINDOWS32"/>
<field16 value="VFT_APP"/>
<field17 value="2009 English (Jamaica)"/>
</versioninfo>
<constants>
<constant value="#SPAM = 0" enable="1"/>
<constant value="#EASYLOG = 0" enable="1"/>
<constant value="#REGEX = 0" enable="1"/>
<constant value="#NOPERM = 0" enable="1"/>
<constant value="#CONSOLE = 1" enable="1"/>
</constants>
</target>
</section>
</project>
202 changes: 202 additions & 0 deletions Common.pb
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
; PureBasic Visual Designer v3.95 build 1485 (PB4Code)


;- Window Constants
;
Enumeration
#Window_0
#Window_1
#Window_2
#Window_3
EndEnumeration

;- Gadget Constants
;
Enumeration
#Frame3D_0
#String_5
#Button_4
#Button_2
#Button_5
#Frame3D_2
#Frame3D_3
#String_7
#String_8
#Button_6
#Button_7
#Button_8
#CheckBox_4
#Button_9
#Combo_0
#Combo_1
#String_9
#String_10
#Button_kk
#Button_dc
#Button_kb
#Button_mu
#Button_um
#Button_ig
#Button_hd
#Button_sw
#Button_si
#Listview_0
#Button_dj
#Button_ndj
#Text_3
#String_12
#Button_27
#Button_28
#Button_29
#Frame3D_4
#CheckBox_6
#TrackBar_1
#ListIcon_2
#CheckBox_MS
#Text_6
#String_OP
#Frame3D_5
#Listview_2
#Button_BG
#Text_7
#Combo_3
#Text_8
#Combo_4
#Checkbox_BlockIni
EndEnumeration


Procedure BalloonTip(WindowID, Gadget, Text$ , Title$, Icon)
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Define ToolTip=0
Define Balloon.TOOLINFO
ToolTip=CreateWindowEx_(0,"ToolTips_Class32","",#WS_POPUP | #TTS_NOPREFIX | #TTS_BALLOON,0,0,0,0,WindowID,0,GetModuleHandle_(0),0)
SendMessage_(ToolTip,#TTM_SETTIPTEXTCOLOR,GetSysColor_(#COLOR_INFOTEXT),0)
SendMessage_(ToolTip,#TTM_SETTIPBKCOLOR,GetSysColor_(#COLOR_INFOBK),0)
SendMessage_(ToolTip,#TTM_SETMAXTIPWIDTH,0,180)
Balloon.TOOLINFO\cbSize=SizeOf(TOOLINFO)
Balloon\uFlags=#TTF_IDISHWND | #TTF_SUBCLASS
Balloon\hWnd=GadgetID(Gadget)
Balloon\uId=GadgetID(Gadget)
Balloon\lpszText=@Text$
SendMessage_(ToolTip, #TTM_ADDTOOL, 0, Balloon)
If Title$ > ""
SendMessage_(ToolTip, #TTM_SETTITLE, Icon, @Title$)
EndIf
CompilerElse
#TOOLTIP_NO_ICON=0
#TOOLTIP_INFO_ICON=0
#TOOLTIP_WARNING_ICON=0
#TOOLTIP_ERROR_ICON=0
CompilerEndIf
EndProcedure

Procedure Open_Window_0()
If OpenWindow(#Window_0 , 301, 185, 730, 339, "serverD", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_TitleBar )
;If CreateGadgetList(WindowID(#Window_0 ))
Frame3DGadget(#Frame3D_0, 0, 0, 290, 350, "Serverside")
StringGadget(#String_5, 210, 15, 70, 22, "27015", #PB_String_Numeric)
BalloonTip(GadgetID(#String_5), #String_5, "The public port goes here", "", #TOOLTIP_NO_ICON)
ButtonGadget(#Button_4, -30, 280, 100, 30, "CONFIG", #PB_Button_Right)
BalloonTip(GadgetID(#Button_4), #Button_4, "Opens the configuration page", "", #TOOLTIP_NO_ICON)
ButtonGadget(#Button_2, 120, 15, 90, 22, "START")
BalloonTip(GadgetID(#Button_2), #Button_2, "Start listening for connections", "", #TOOLTIP_NO_ICON)
ButtonGadget(#Button_kk, -10, 40, 80, 30, "KICK", #PB_Button_Right)
BalloonTip(GadgetID(#Button_kk), #Button_kk, "Send KB to the client and close the connection", "", #TOOLTIP_INFO_ICON)
ButtonGadget(#Button_dc, -10, 70, 80, 30, "DISCONNECT", #PB_Button_Right)
BalloonTip(GadgetID(#Button_dc), #Button_dc, "Disconnects this client from the server", "", #TOOLTIP_WARNING_ICON)
ButtonGadget(#Button_kb, -10, 100, 80, 30, "BAN", #PB_Button_Right)
BalloonTip(GadgetID(#Button_kb), #Button_kb, "Send KB to the client and add him to the banlist", "For this IP", #TOOLTIP_WARNING_ICON)
ButtonGadget(#Button_mu, 30, 190, 40, 30, "MUTE", #PB_Button_Right)
BalloonTip(GadgetID(#Button_mu), #Button_mu, "Send MU#-1#% to the client", "", #TOOLTIP_INFO_ICON)
ButtonGadget(#Button_um, 0, 190, 30, 30, "UN", #PB_Button_Right)
BalloonTip(GadgetID(#Button_um), #Button_um, "Send UM#-1#% to the client", "", #TOOLTIP_INFO_ICON)
ButtonGadget(#Button_ig, 20, 160, 50, 30, "IGNORE")
BalloonTip(GadgetID(#Button_ig), #Button_ig, "Ignore this clients commands", "", #TOOLTIP_INFO_ICON)
ButtonGadget(#Button_hd, -10, 130, 80, 30, "HDBAN", #PB_Button_Right)
BalloonTip(GadgetID(#Button_hd), #Button_hd, "Send KB to the client and add him to the HDbanlist", "PERMANENT", #TOOLTIP_ERROR_ICON)
ButtonGadget(#Button_sw, -10, 220, 80, 30, "SWITCH", #PB_Button_Right)
BalloonTip(GadgetID(#Button_sw), #Button_sw, "Drops this client to character selection", "", #TOOLTIP_INFO_ICON)
ButtonGadget(#Button_si, 0, 160, 20, 30, "S")
BalloonTip(GadgetID(#Button_si), #Button_si, "Stop ignoring this client", "", #TOOLTIP_INFO_ICON)
ButtonGadget(1337, -30, 310, 100, 30, "ABOUT", #PB_Button_Right)
;-
ListIconGadget(#Listview_0, 70, 40, 220, 300, "IP", 100, #PB_ListIcon_GridLines | #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection)
CompilerIf #PB_Compiler_OS=#PB_OS_Windows
SendMessage_ (GadgetID(#Listview_0), #LVS_SHOWSELALWAYS, 1, 0)
CompilerEndIf
AddGadgetColumn(#Listview_0, 1, "Character", 50)
AddGadgetColumn(#Listview_0, 2, "PV", 60)
BalloonTip(GadgetID(#Listview_0), #Listview_0, "Shows all connected clients", "", #TOOLTIP_NO_ICON)
ButtonGadget(#Button_dj, 40, 250, 30, 30, "DJ")
BalloonTip(GadgetID(#Button_dj), #Button_dj, "Allows this client to change the music", "", #TOOLTIP_INFO_ICON)
ButtonGadget(#Button_ndj, -20, 250, 60, 30, "UN", #PB_Button_Right)
BalloonTip(GadgetID(#Button_ndj), #Button_ndj, "Stops this client from changing the music", "", #TOOLTIP_INFO_ICON)
Frame3DGadget(#Frame3D_4, 290, 0, 230, 340, "Log")

;-
ListIconGadget(#ListIcon_2, 520, 20, 210, 320, "Name", 80, #PB_ListIcon_GridLines | #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection)
AddGadgetColumn(#ListIcon_2, 1, "Message", 100)
BalloonTip(GadgetID(#ListIcon_2), #ListIcon_2, "Shows the OOC chat history", "", #TOOLTIP_NO_ICON)
CheckBoxGadget(#CheckBox_MS, 10, 15, 110, 20, "Public server mode")
BalloonTip(GadgetID(#CheckBox_MS), #CheckBox_MS, "Makes this server appear on the Masterserver list", "", #TOOLTIP_NO_ICON)
Frame3DGadget(#Frame3D_5, 520, 0, 210, 340, "OOC")
CompilerIf #EASYLOG
ListViewGadget(#Listview_2, 290, 20, 230, 320)
AddGadgetItem(#Listview_2,0,"serverD "+Str(#PB_Editor_CompileCount)+"."+Str(#PB_Editor_BuildCount))
AddGadgetItem(#Listview_2,0,"Check out http://www.weedlan.de/serverd/ for updates")
If update
AddGadgetItem(#Listview_2,0,"UPDATE AVAILABLE",#PB_ListIcon_AlwaysShowSelection)
EndIf
CompilerElse
EditorGadget(#Listview_2, 290, 20, 230, 320)
CompilerEndIf
BalloonTip(GadgetID(#Listview_2), #Listview_2, "Shows all activity", "", #TOOLTIP_NO_ICON)

;EndIf
EndIf
EndProcedure

Procedure Open_Window_1()
If OpenWindow(#Window_1, 303, 568, 150, 180, "Config", #PB_Window_SystemMenu | #PB_Window_TitleBar )
; If CreateGadgetList(WindowID(#Window_1))
ButtonGadget(#Button_5, 0, 150, 150, 30, "DONE")
CheckBoxGadget(#CheckBox_4, 10, 40, 60, 20, "Logging")
BalloonTip(GadgetID(#CheckBox_4), #CheckBox_4, "Log all network traffic to a file", "", #TOOLTIP_NO_ICON)
ButtonGadget(#Button_9, 70, 40, 70, 20, "Log file...")
TextGadget(#Text_6, 10, 10, 41, 20, "OP pass")
StringGadget(#String_OP, 60, 10, 80, 20, "", #PB_String_Password)
BalloonTip(GadgetID(#String_OP), #String_OP, "Enter the OOC password here", "", #TOOLTIP_NO_ICON)
TextGadget(#Text_7, 10, 70, 60, 20, "Mod colour:")
ComboBoxGadget(#Combo_3, 70, 70, 70, 20)
TextGadget(#Text_8, 10, 90, 50, 30, "MOTD evidence:")
ComboBoxGadget(#Combo_4, 60, 100, 80, 20)
CheckBoxGadget(#Checkbox_BlockIni,10,130,120,20,"Block Ini char swap")

; EndIf
EndIf
EndProcedure

CompilerIf #SPAM
Procedure Open_Window_3()
If OpenWindow(#Window_3, -202, 508, 150, 220, "Spam", #PB_Window_SystemMenu | #PB_Window_TitleBar )
; If CreateGadgetList(WindowID(#Window_3))
TextGadget(#Text_3, 10, 10, 100, 30, "TURN DOWN FOR WHAT ?", #PB_Text_Center)
StringGadget(#String_12, 0, 40, 120, 35, "")
ButtonGadget(#Button_27, 0, 100, 120, 40, "START")
ButtonGadget(#Button_28, 0, 140, 120, 40, "PAUSE")
ButtonGadget(#Button_29, 0, 180, 120, 40, "STOP")
CheckBoxGadget(#CheckBox_6, 0, 80, 120, 20, "�BERCHARGE")
TrackBarGadget(#TrackBar_1, 120, 0, 30, 220, 0, 1000, #PB_TrackBar_Vertical)

; EndIf
EndIf
EndProcedure
CompilerEndIf
; IDE Options = PureBasic 5.11 (Windows - x86)
; CursorPosition = 71
; FirstLine = 61
; Folding = -
; EnableXP
; EnableCompileCount = 0
; EnableBuildCount = 0
Empty file added base/HDbanlist.txt
Empty file.
9 changes: 9 additions & 0 deletions base/gimp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
I love the admins on this server!
I'm So happy!! :)
I forgot how to AO
I <3 you guys :)
what is this i am kebab
I love the first generation of MLP
If I don't take my meds soon I may die.
Please Kick me i hack
glory to arstotzka
2 changes: 2 additions & 0 deletions base/hd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
127.0.0.1
SUCKS70B3Y0UGG
5 changes: 5 additions & 0 deletions base/masterserver.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[list]
0 = 46.188.16.205
1 = 54.72.209.44
2 = 37.120.168.157
3 = 127.0.0.1
53 changes: 53 additions & 0 deletions base/musiclist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
~stop.mp3
01_turnabout_courtroom_-_prologue.mp3
113 Confrontation ~ Presto 2009.mp3
114 Pursuit(Miles).mp3
>mlp
>gs4
http://8tracks.s3.amazonaws.com/tf/003/891/309/75308.mp3
http://www.youtube-mp3.org/a2/c/getData?pid=5483687662583808&h=123123&r=1413987290921
Annonce The Truth(AA).mp3
Annonce The Truth(AJ).mp3
Annonce The Truth(JFA).mp3
Annonce The Truth(Miles).mp3
Annonce The Truth(T&T).mp3
Crises of Fate.mp3
Forgotten Legend.mp3
Ghost Trick - 4 Minutes Before Death.mp3
Ghost Trick - Countdown.mp3
Ghost Trick - The World of the Dead.mp3
Godot - The Fragrance of Dark Coffee.mp3
Great Revival ~ Franziska von Karma.mp3
Great Revival ~ Miles Edgeworth.mp3
Hotline of Fate.mp3
Interesting People.mp3
logic_and_trick.mp3
Luke Atmey ~ I Just Want Love.mp3
Noisy People.mp3
OBJECTIOM(AJ).mp3
OBJECTION (AA).mp3
OBJECTON (JFA).mp3
OBJECTION (T&T).mp3
OBJECTION(Miles).mp3
Others ~ Guilty love.mp3
Prelude(AA).mp3
Prelude(AJ).mp3
Pursuit ~ I Want to Find the Truth(Orchestra).mp3
PURSUIT(AA) - variation.mp3
PURSUIT(AA).mp3
PURSUIT(AJ).mp3
PURSUIT(JFA) - variation.mp3
PURSUIT(JFA).mp3
PURSUIT(T&T) - variation.mp3
PURSUIT(T&T).mp3
Questioning(AA-allergo).mp3
Questioning(AA-normal).mp3
Speak up, Pup!.mp3
Super Trixie.mp3
Suspence(AA).mp3
The Great Truth Burglar.mp3
Trial(AA).mp3
Trial(AJ).mp3ne of Fate.mp3
ok this is the end
for real
here
Empty file added base/op.txt
Empty file.
Binary file added green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gui.pbv
Binary file not shown.
Binary file added hacker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2c2ccd4

Please sign in to comment.