Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 22:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[vb.net] /command's

Discussion on [vb.net] /command's within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
The Black Market: 229/0/0
Join Date: Mar 2014
Posts: 2,790
Received Thanks: 6,655
Post [vb.net] /command's

Hallo,
Ich bin gerade dabei einen 'FTP CHAT' zu coden,
nun möchte ich , das 'commands' genutzt werden können.


Bsp. (ich schreibe in das Nachrichtenfeld) :
/username #Lucas#

Dabei soll nun folgendes Passieren :
USERNAME = #Lucas#

Habe das alle schon Define't (Dim USERNAME As String)


Ich hoffe ich finde hier Hilfe

MFG Lucas.
anonymous-29742 is offline  
Old 12/17/2014, 20:10   #2
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
sollte genügen bin am handy online

If nachricht.Contains("/") Then
command = nachricht.Split(" ")

dann abchecken welches command es ist zb mit einem switch block (der command ist nachricht[0] der wert nachricht[1])
YatoDev is offline  
Old 12/17/2014, 21:02   #3
 
elite*gold: 0
The Black Market: 229/0/0
Join Date: Mar 2014
Posts: 2,790
Received Thanks: 6,655
Quote:
Originally Posted by »FlutterShy™ View Post
sollte genügen bin am handy online

If nachricht.Contains("/") Then
command = nachricht.Split(" ")

dann abchecken welches command es ist zb mit einem switch block (der command ist nachricht[0] der wert nachricht[1])

Das geht iwie nicht :/

Habe aber etwas anderes gefunden, wo
ich auch nicht weiter komme.
Immer wenn nur 1 Wort abgeschickt wird.

kommt das :

anonymous-29742 is offline  
Old 12/17/2014, 21:40   #4
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by #Lucas# View Post
Das geht iwie nicht :/

Habe aber etwas anderes gefunden, wo
ich auch nicht weiter komme.
Immer wenn nur 1 Wort abgeschickt wird.

kommt das :

ich versteh auch nicht was das für einen sinn macht was du da in den quellcode schreibst :/

FTP Passwort im code? Release das bloß nicht
YatoDev is offline  
Old 12/18/2014, 02:21   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
Hier ein Code, den du für mehr commands Selbständig noch ergänzen musst ist an den Entsprechenden Stellen aber auch Kommentiert
PHP Code:
#Region "Command"
    
Enum CmdType
        ctUsername
        REM Hier neue Identifikatoren Hinzufügen
        ctUnknown
    End Enum
    Structure Cmd
        Dim CommandType 
As CmdType
        Dim Args
() As String
    End Structure

    
Const CmdIndicator As String "/"
    
Function CmdGetType(str As String) As CmdType
        Select 
Case str
            
Case "username"
                
Return CmdType.ctUsername
                REM hier weitere Abfragen einfügen
            
Case Else
                Return 
CmdType.ctUnknown
        End Select
    End 
Function

    Function 
ParseCMD(ByRef CmdStr As StringByRef Command As Cmd) As Boolean
        
If Not CmdStr.StartsWith(CmdIndicatorThen
            
Return False
        End 
If
        
Dim tmpStr As String CmdStr.Substring(1CmdStr.Length 1)
        
Dim SplitLst As String() = tmpStr.Split(" ")
        
Command.CommandType CmdGetType(SplitLst(0).ToLower)
        
ReDim Command.Args(SplitLst.Length 2)
        For 
As Integer 1 To SplitLst.Length 1
            Command
.Args(1) = [String].Copy(SplitLst(i))
        
Next i
        
Return True
    End 
Function


#End Region 
BSP benutzung:
PHP Code:
  Dim Command As Cmd = new Cmd
  ParseCMD
(TextBox1.TextCommand)
  If (
Command.CommandType ctUsername) And (Command.Args.Length 0then
    Foo
(Command.Args(0)
  
End If 
warfley is offline  
Old 12/18/2014, 05:46   #6
 
elite*gold: 0
The Black Market: 229/0/0
Join Date: Mar 2014
Posts: 2,790
Received Thanks: 6,655
Post

Quote:
Originally Posted by »FlutterShy™ View Post
ich versteh auch nicht was das für einen sinn macht was du da in den quellcode schreibst :/

FTP Passwort im code? Release das bloß nicht
Gibt ja sowas wie Net.Reactor
anonymous-29742 is offline  
Old 12/18/2014, 08:47   #7
Administrator
 
lordsill's Avatar
 
elite*gold: 26516
Join Date: May 2011
Posts: 21,005
Received Thanks: 2,352
Quote:
Originally Posted by #Lucas# View Post
Gibt ja sowas wie Net.Reactor
Bringt dann auch nicht viel, .Net Reactor kannst du auch decompilen... (und in den ursprünglichen Code zurücksetzen....)

z.b.

Quote:
Supported obfuscators/packers

Agile.NET (aka CliSecure)
Babel.NET
CodeFort
CodeVeil
CodeWall
CryptoObfuscator
DeepSea Obfuscator
Dotfuscator
.NET Reactor
Eazfuscator.NET
Goliath.NET
ILProtector
MaxtoCode
MPRESS
Rummage
Skater.NET
SmartAssembly
Spices.Net
Xenocode
kind regards
LordSill
lordsill is offline  
Old 12/18/2014, 18:50   #8
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by #Lucas# View Post
Gibt ja sowas wie Net.Reactor
selbst wenn es mit de4dot nicht automatisiert geht hindert mich keiner daran den code zu kopieren und ihn sich entschlüsselt zeigen lassen und mit reflexil könnte man auch an der stelle eine ausgabe reinpatchen
YatoDev is offline  
Reply

Tags
ftp chat, visualbasic


Similar Threads Similar Threads
friends what is bonus add "command" like "71051" and "71052" jobs command its need fo
12/22/2013 - Metin2 Private Server - 0 Replies
friends what is bonus add "command" like "71051" and "71052" jobs commands its need for me for quest boni so i want add boni as "71051" and "71052" but with quest
Command line interface working command
08/05/2012 - DarkOrbit - 27 Replies
I found only one working command: Enter "J" when you are in teleport Anyone know other commands?



All times are GMT +1. The time now is 22:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.