Something like this:
http://otland.net/threads/scripting-guide.74030/
But extended, with more examples for each function.
For example:
¤how to use timers in your scripts (such as simple remove wall for 10 seconds then recreate it)
¤how to use isInArea scripts (such as in anihilator or the typical svargrond arena)
¤how to use mayNotMove/doPlayerSetNoMove <-(I don't know the difference here) like howto make a player unable to move, and how to break it
¤how to use setCombatX What are setCombat? How and why use them?
¤how to use getContainerItem (Can I use this to check what items a player have in their backpack? It would be cool to make charms like in d2)
These are just a few examples. ofcourse, it'd be time consuming to write about every function. But making a few why and how in different areas such as Actions, Talkactions, Movements, Creaturescripts, Global etc will plant the idea of howto use all of them eventually.
I myself have learned almost only through copy/paste lines from other scripts to make a new one, sometimes I have absolutely no idea if it'll work, or if I'm missing codes or brackets or dots or spaces. years back I usually failed at making new scripts, today I start to learn howto use them, but alot is still a maze for me. I think there's several noobs (Yes I mean me aswell) out there who would check such a tutorial as a reference when they get a new brilliant idea that they wanna have in their ot. Instead of creating 200 threads in request and support about help like myself, I could use a refence table. I'm currently using this:
http://otland.net/threads/lua-lua_functions.139401/#post-1342052
to see if my idea is possible or not. But alot of these functions I do not know what to put inside brackets, even if it says "exactly" what to put there, for example:
Code:
setConditionParam(condition, key, value)
1, condition.. here I can put maybe "CONDITION_PARALYZE"
2, key.. here I can put, purple key, or.. (I have no idea)
3, value.. here I think it's the value of the condition paralyze in this case, so I put "true" or I put "-1200" -1200 means -1200 speed? or maybe i put just 1200 for paralyze value = 1200 (not so much idea here either)
So yeah, I'd love a tutorial with lots of examples that OT makers can use to learn and use as a reference table when they try making new scripts themselves.