In need of scripting tips.

ryald

Active Member
First of all, I have no experience with scripting, that being said I am attempting to create a script that incorporates 4 clients simultaneously triggering a set of custom events that only trigger when other criteria from said multiple clients is met.
Such as: Send a group invite when Bob logs in.

I have absolutely no idea where to start and I may be going about this wrong and don't need to link the clients. I have searched the forum before posting this but I haven't seen anything that could help me.
What I'm looking for simply is either a link to a tutorial that can get me started, or some tips on how go about such a task.
Thank you for your time! :)
 

Kannkor

Ogre
Keep it simple to start. Work with 1 client responding to events.

Two links to put into your favorites:
Lavishsoft wiki: http://www.lavishsoft.com/wiki/index.php/Main_Page
ISXEQ2 wiki: http://eq2.isxgames.com/wiki/index.php?title=ISXEQ2

You said you are new to scripting.. but if you already know this then I apologize :)

The reason you need both Lavishsoft and ISXEQ2 wiki's is because they serve different purposes. When you signed up for ISXEQ2, Ama explained why you need both. Lavishsoft is like windows, then ISXEQ2 is an application that runs on top of it. Same holds true for coding.

Lavishsoft is what you will be coding in and you have to follow the Lavish rules.

Where to start - start with Lavish as you need to build a base understanding for syntax and running a script.
Here is a walkthrough in the Lavishsoft wiki: http://www.lavishsoft.com/wiki/index.php/LavishScript:Script_Syntax

If you're looking to just "jump right on in", here are the basics.
You need a "function main()" for a script to run. Then you need a continuous loop to keep the script active. (inside of the main).
You need an event to catch the chat text. (Since this event is specific to EQ2, it is in ISXEQ2 wiki: http://eq2.isxgames.com/wiki/index.php?title=ISXEQ2:EQ2_onIncomingChatText_(Event) ).

Then depending on what you want to do, you can use a method of ISXEQ2 (Main page of ISXEQ2 wiki) or you can use an in-game command by using EQ2Execute ( http://eq2.isxgames.com/wiki/index.php?title=ISXEQ2:EQ2Execute_(command) ).


So.. start reading.. :) I recommend you join us on IRC if you plan to be asking a lot of questions. Just be patient as people aren't sitting at their keyboard waiting for you to ask a question, and if you ask a silly question, you will get a silly answer and maybe a bit of flamage, but you will get an answer.

Also, you may want to start with an easier script if you are truly 100% new to coding/scripting. Start with things such as, displaying information in the console ( http://www.lavishsoft.com/wiki/index.php/ISKernel:Echo_(Command) ). Using variables, changing variables. Displaying a variable in the console, doing calculations (is 2 + 2 really 4?). Once you understand the basics, then go to adding in ISXEQ2 specifics - again, start simple. Can you output your name to the console?
 

ryald

Active Member
Thank you so very very much Kannkor! Everything you said is going to be extremely useful to me and answers everything I can think of now. I'll be busy for the next few days! Thanks again!!!! =D
 
Top Bottom