Jump to content

Fountain, a World of Warcraft Addon by me


Zacker

Recommended Posts

Some weeks ago I decided to give a go at learning LUA. The result of this is an addon for the mage class in WoW which automatically gives water to people who ask for it.

Usually a mage spend a bunch of time with handing our water when raiding. With this addon, that is a thing of the past.

This is the first public beta and it is therefore still in the early stages.

http://www.curse-gaming.com/en/wow/addo ... ntain.html

Link to comment
Share on other sites

  • 3 weeks later...

I am pretty sure that the e.g. the or operator in 1982 basic did not have support for returning non-boolean values. I do not believe it had extensive support for strings and patterns either.

Here is an example of how I used those things in Fountain:

result = string.find(msg, FountainPattern) or string.find(msg, FountainPattern2);

There are also other also many other differences, but the syntax is similar yes. This however can be said about most of todays common languages.

Link to comment
Share on other sites

nah i programmed 3 years with basic for school and it could handle all stuff for strings and arrays (patterns) and so on...

the syntax is in basic imho totally different from c++ and delphi. while basic and lua don't split var types in integer and string c++ and delphi do. for example:

basic:

x = "Hello World"

x = 12 * SQRT(13)

x(1,5) = "Vars is free"

delphi:

VAR x := Integer;

x1 := String;

x2 := Array of String [...]

begin

x := 12 * SQRT(13);

x1 := "Hello World";

x2(1,5) := "Vars in an array";

end;

end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...