Jump to content
Eternal Lands Official Forums
Sign in to follow this  
_TDC_HaDeS_L_

Bots, How Do I Make 1?

Recommended Posts

Learn how to program.

 

Read the source code to the client.

Create a sticky telling ppl to stfu if they wish to create a bot but don't know how to program - anyone who knows how to program and has an idea of the client source should know how to get started on making a bot anyway, so how about banning the whole "How do I make this/that"-talk from the programming section - it really doesn't have anything to do with the client development.. These kind of posts should be counted as spam.

Share this post


Link to post
Share on other sites

Nah, these sort of thread are ideal to show off how 1337 programmers are.

 

I suggest that if you want to write a bot, you start learning functional programming first, using for instance unlambda (http://www.eleves.ens.fr:8080/home/madore/programs/unlambda/), and then find out how to do TCP/IP in it.

 

If you already know a bit of imperative programming, it might be easier to do it in intercal or brainfuck, though.

Share this post


Link to post
Share on other sites

well topic programing skill like say took a course c++ program

just let you know that do some skill in not much but do

Share this post


Link to post
Share on other sites
Well, let's discuss an example: the following Unlambda program calculates and prints the Fibonacci numbers (as lines of asterisks)

 

```s``s``sii`ki

  `k.*``s``s`ks

``s`k`s`ks``s``s`ks``s`k`s`kr``s`k`sikk

  `k``s`ksk

 

 

What has programign come to?! What ever happen to goo old languages based on C, such as C, C++, PHP, and whatever...cries...LOL...

 

I will hav eto check out the Unlambda programing language thou...it will comfuse kids at school even more than PHP or C at school :unsure:

Share this post


Link to post
Share on other sites

That book dosen't tell what language it is?!

 

My favorite scritp/program for any lanaguage....

 

#include <stdio.h>

main()

{

printf("Hello World!");

}

 

<?php

echo "Hello World";

?>

 

That's in PHP and C :P:P Also...for the C program you could compile it without including stdio.h...but oh well....

Share this post


Link to post
Share on other sites

even easier :

 

 

public class HelloWorld{

public static void main(String[] args){

System.out.println( "Hello World!" );

}

 

}

 

#> javac HelloWorld.java

 

#> java HelloWorld

Hello World!

 

#>_

Share this post


Link to post
Share on other sites
My favorite scritp/program for any lanaguage....

Actually, a program for any language (or rather four) would be something like:

 

 REM /* 2>/dev/null
':' # *
':' # * This program works in C, VB, SH and COBOL.
':' # *
''''/b*in/echo Hello world; exit
'     */() {} int main() { printf("Hello world\n"); return 0;} /*
'      PROGRAM-ID.  hello.
'      REMARKS.
           Module Module1
               Public Sub Main
                   Windows.Forms.MessageBox.Show("Hello world")
               End Sub
           End Module
'      PROCEDURE DIVISION.
'      MAIN.
'          DISPLAY "Hello world" AT LINE NUMBER 15
'     */

Share this post


Link to post
Share on other sites

How about 7 languages?

 

                                                                        (*O/*_/
Cu  #%* )pop mark/CuG 4 def/# 2 def%%%%@@P[TX---P\P_SXPY!Ex(mx2ex("SX!Ex4P)Ex=
CuG #%*                                                                  *+Ex=
CuG #%*------------------------------------------------------------------*+Ex=
CuG #%*   POLYGLOT - a program in seven languages      15 February 1991  *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Written by Kevin Bungard, Peter Lisle, and Chris Tham          *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   We have successfully run this program using the following:     *+Ex=
CuG #%*     ANSI COBOL:            MicroFocus COBOL85 (not COBOL74)      *+Ex=
CuG #%*     ISO  Pascal:           Turbo Pascal (DOS & Mac), Unix PC,    *+Ex=
CuG #%*                            AIX VS Pascal                         *+Ex=
CuG #%*     ANSI Fortran:          Unix f77, AIX VS Fortran              *+Ex=
CuG #%*     ANSI C (lint free):    Microsoft C, Unix CC, GCC, Turbo C++, *+Ex=
CuG #%*                            Think C (Mac)                         *+Ex=
CuG #%*     PostScript:            GoScript, HP/Adobe cartridge,         *+Ex=
CuG #%*                            Apple LaserWriter                     *+Ex=
CuG #%*     Shell script:          gnu bash, sh (SysV, BSD, MKS), ksh    *+Ex=
CuG #%*     8086 machine language: MS-DOS 2.00, 3.03, 4.01, 5.00 beta    *+Ex=
CuG #%*                            VPix & DOS Merge (under unix)         *+Ex=
CuG #%*                            SoftPC (on a Mac), MKS shell          *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Usage:                                                         *+Ex=
CuG #%*     1. Rename this file to polyglot.[cob|pas|f77|c|ps|sh|com]    *+Ex=
CuG #%*     2. Compile and/or run with appropriate compiler and          *+Ex=
CuG #%*        operating system                                          *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Notes:                                                         *+Ex=
CuG #%*     1. We have attempted to use only standard language features. *+Ex=
CuG #%*        Without the -traditional flag gcc will issue a warning.   *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*     2. This text is a comment block in all seven languages.      *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*     3. When run as a .COM file with MS-DOS it makes certain      *+Ex=
CuG #%*        (not unreasonable) assumptions about the contents of      *+Ex=
CuG #%*        the registers.                                            *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*     4. When transfering from Unix to DOS make sure that a LF     *+Ex=
CuG #%*        is correctly translated into a CR/LF.                     *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*   Please mail any comments, corrections or additions to          *+Ex=
CuG #%*   peril@extro.ucc.su.oz.au                                       *+Ex=
CuG #%*                                                                  *+Ex=
CuG #%*------------------------------------------------------------------*QuZ=
CuG #%*                                                                  *+Ex=
CuG #%*!Mx)ExQX4ZPZ4SP5n#5X!)Ex+ExPQXH,B+ExP[-9Z-9Z)GA(W@'UTTER_XYZZY'CPK*+
CuG #(*                                                                  *(
C   # */);                                                              /*(
C   # *)  program        polyglot (output);                             (*+
C   #     identification division.
C   #     program-id.    polyglot.
C   #
C   #     data           division.
C   #     procedure      division.
C   #
C   # * ))cleartomark   /Bookman-Demi findfont 36 scalefont setfont     (
C   # *                                                                 (
C   #
C   # *                  hello polyglots$
C   #     main.
C   #         perform
C     * ) 2>_$$; echo   "hello polyglots"; rm _$$; exit
             print
C             stop run.
    -*,                'hello polyglots'
C
C         print.
C             display   "hello polyglots".                              (
C     */  int i;                                                        /*
C     */  main () {                                                     /*
C     */      i=printf ("hello polyglots\n"); O= &i; return *O;         /*
C     *)                                                                (*
C     *)  begin                                                         (*
C     *)      writeln  ('hello polyglots');                             (*
C     *)                                                                (* )
C     * ) pop 60 360                                                    (
C     * ) pop moveto    (hello polyglots) show                          (
C     * ) pop showpage                                                  ((
C     *)
          end                                                          .(* )
C)pop%     program       polyglot.                                      *){*/}

 

I win :D

Share this post


Link to post
Share on other sites

lol, that was kinda genius tho cicero.. B) ..but as said before:

 

No you don't, unless your name is Kevin Bungard, Peter Lisle, and Chris Tham :)

Share this post


Link to post
Share on other sites
That book dosen't tell what language it is?!

languages are ez to learn. That book is about programming. Thats something only a few ppl here really know :)

Share this post


Link to post
Share on other sites
That book dosen't tell what language it is?!

languages are ez to learn. That book is about programming. Thats something only a few ppl here really know :)

Correct. If you are able to do programming, it takes aonly a small time to learn another programming language.

 

The Windows Architecture (from MS) for those that want to program under windows is something very useful to start with.

 

Or start with learning Access to get insight into some simple programming.

Share this post


Link to post
Share on other sites

Im sorry, but microsoft development products and programming languages ABSOLUTELY suck.

 

Try learning the concepts of Object Oriented Programming, then start programming in C or Java. You could even Learn HTML,JavaScript and then do some PHP (HTML + JavaScript take about 1Hour each to learn).

Share this post


Link to post
Share on other sites
Try learning the concepts of Object Oriented Programming, then start programming in C or Java.

If you go for object oriented programming, C would be a stupid choice. Pick C++ instead.

 

And ignore anyone that says that the languages are similar, or recommends starting with C. If you want to learn both langunages, learn C++ first.

Share this post


Link to post
Share on other sites

Why start with an OO language? Get a simple language like VB and start with the standard stuff like loops, if blocks, procedures, etc. Then learn scope rules for variables, recursive functions and stuff like that. Save OO and classes for more advanced learning later.

Share this post


Link to post
Share on other sites

VB ruins any chance of you ever becoming a good programmer.

 

Try something like Python for a beginning language.

Share this post


Link to post
Share on other sites

True ^^^ In fact, dont code in any language associated with Micro$oft. They are weak, only written for windows and SUCK! :) <_<

Share this post


Link to post
Share on other sites

Just out of interest, would B, C, Objective C, C--, C++, and D count as different languages?

 

Anyway, don't start with object oriented... begin with learning procedural programming instead.

Share this post


Link to post
Share on other sites

like some noob would know what language is procedural, functional or OO. But thats ok. cause it doesnt really matter what u begin with.

 

with Python u have it all in 1 language.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×