Page 1 of 1
Scripts and Functions
Posted:
Thu Sep 24, 2009 1:49 pm
by Garret
I wrote little script editor, it can read scripts
and can write scripts.
I made a little script when said "give gold" gives to speaker 100 gold.
It works perfectly =)
Anybody know what "doSCommand" accept?
the only i found was
doSCommand(it, "ucoun me");
where "it" is a player.
Wish i could get more in-game access than just a player =)
Re: Scripts and Functions
Posted:
Thu Sep 24, 2009 2:39 pm
by Batlin
Thanks Garret.
Can you upload the source code/binaries as an attachment?
I'm anxious to take a look at your script editor and play with it.
Does your script editor modify the sdb file too to insert new strings ?
I'll take a look as doSCommand and see what it does exactly at the assembler level.
Re: Scripts and Functions
Posted:
Thu Sep 24, 2009 3:11 pm
by Garret
It's on c#, quite raw, but working =)
Yes, it addes new entries to SDB if it doesn't have it =)
Re: Scripts and Functions
Posted:
Thu Sep 24, 2009 9:20 pm
by Batlin
Re: Scripts and Functions
Posted:
Fri Sep 25, 2009 6:48 am
by Garret
Yeah, sad, that command on server used for a lot of gm/dev purposes.
Last key for access level seems is "isCounselor", "isGameMaster", "isEditing".
Re: Scripts and Functions
Posted:
Mon Sep 28, 2009 5:34 am
by Garret
Fixed some decompile/compile bugs (event chances and colon after default in switch).
First post Updated.
Re: Scripts and Functions
Posted:
Mon Dec 21, 2009 2:27 pm
by Garret
Fixed minor bugs, made it more friendly.