Hello guys,
I need a simple persistent script which will transfer money from my bank account to another one every hour.
I'm a newbie in scripting, so maybe I gonna explain You how should it work and You gonna just translate it into lua language, its pretty simple for someone who know it a bit.
So how this script should work;
1. Every one hour check if NPC chat is open then;
if not, then;
open the NPC chat, then;
(or) if opened, then;
2. Say "Hi", "Balance", then;
if account balance <XXX gps, then;
say "Bye"; then;
Close NPC chat;
(or) if account balance >XXX gps, then;
say "Transfer", "YYY gps - standard XXX gps some", "<character name>", then;
say "Bye"; then;
Close NPC chat;
So for example, if standard some of gps is 1000 gps, it would looks like this:
1. Every one hour check if NPC chat is open then;
if not, then;
open the NPC chat, then;
(or) if opened, then;
2. Say "Hi", "Balance", then;
if account balance 800 (<1000) gps, then;
say "Bye"; then;
Close NPC chat;
(or) if account balance 1200 (>1000) gps, then;
say "Transfer", "200 (1200-1000=200)", "<Banana Eater>", then;
say "Bye"; then;
Close NPC chat;
Hope You will help me! Thank You very much friends!