What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Honorbuddy and Javascript.

Javascript plugins Vs C# what you prefer ?

  • Javascript

    Votes: 0 0.0%
  • C #

    Votes: 0 0.0%
  • I dont care

    Votes: 0 0.0%

  • Total voters
    0
Correct i dont wanna learn it , and there are 1000 others like me that dont wanna learn it too .... C# is an coding language an javascript is scripting !!!!!!
It is just an idea ...

I think people like you are lazy, and anyone else who thinks like you lazy as well. Don't fix what ain't broken.
Buy a book and learn it like everyone else or just use the program like it is. I lol @ you
 
No not Java , javascript , very easy to code.

function Combat(){

// Check my health if below 40% , if yes then heal
if (me.health < 40) {
CastSpell("Flash Heal");
}
}

yes , this scripting is easy..... easy , let us inside function combat create our own playstyle.
this is very simple to use and you can build your own CC or plugin very easy.

C# is an language , you have to deal with Namespaces,Classes, Interfaca ,struct , enum , delegate ........
In javascript we just deal with some functions like Combat , Rest , Pre or after combat

Even the good old bot ISXWOW was working on an scripting engine , similar javascript.

Hldn why should someone learn a code language if javascript is easy to understand even without school. remember we are gamers and not students.
:) No offense.


You realize, of course, that when you do what you just described, viz., implement functions like Combat(), Rest(), Pre(), etc. you're doing what you would essentially be doing in C#.NET. The only difference is that you have to deal with abstraction, polymorphism, and inheritance (which are not hard concepts to grasp, and further wouldn't really matter because, from what I read in the classes for HB, those same functions are there to be implemented anyway though the API). On the level of writing a custom class you're not dealing with interfaces (with the exception of the one you're implementing by writing the custom class, that the bot engine reads), or data types (struct, enum, etc.). All of your variables and values are housed in 'int's, 'String's, etc. according to the API provided by HB. In short, you're essentially scripting with C#.NET in the custom classes.

As to your other point, it's been brought up that javascript syntax is close enough to C#.NET that it doesn't matter. If you replace your 'function' declaration in your code snippet with something like, oh say 'public static bool' and throw in a nice 'return false;' at the end (or even simpler make it a void) you've got the same code.

Let me summarise:

C# is a language. You do have to deal with those things when programming in C#.NET.
HB provides a nice API where you just have to implement functions like Combat(), PreCombat() etc.
This is essentially scripting, and more likely than not you don't have to deal with complex data types, structs, or enums. It's also easier to work with in C#.NET because every class derives from Object. So you can do neat things like myHealth.toString().

You are gamers, and not students, correct. But you're scripting anyway. May as well do it with a more full-featured and robust language that uses more or less the same syntax.

Cheers,

Jon.
 
Last edited:
The function example you wrote would look identical in C# only with correct syntax. Have you actually looked at a custom class? These are not complex files. There are simple function calls which would look exactly like JavaScript function calls.

Not only that, but you also get Visual Studio support! Having VS as an IDE when working on any custom class/plugin is a treat! You would never get the type of intellisense support or library of functions (see .NET). I'm slightly biased to code since I use it for my job, but I also work with JavaScript in a different context. Using JS to code HB classes vs using C# is like comparing apples to oranges, just can't be done.
 
Vote for C# because I think Java is a way unsecure and over this I think we don't need to complicate it more as needed.
 
I think people like you are lazy, and anyone else who thinks like you lazy as well. Don't fix what ain't broken.
Buy a book and learn it like everyone else or just use the program like it is. I lol @ you

i share your opinion king!
c# is the way to go :)
 
I want to vote for BASIC. My commodore 64 is begging for some action.
 
Yeah javascript is a scripting language, but what is a custom class ? it's the perfect exemple of what a script is :)
Javascript is more than enough to code custom classes.

Don't you remember diablo bots like d2jsp or d2nt ? it was native language ( c or c++, don't remember ) with a javascript engine ( mozilla spidermonkey if I remember correctly ).
 
... C# is easy like hell. c# will always better to make a CC.

Just go learn it:S
 
javaScript eeeww that makes me shiver LOL
I'd so lets go python if you want to consider adding a user scripting.
 
Wow, a month old thread revived, hehe.
How U managed to stumble onto this oldie.
 
Back
Top