Since its a scripting thread, I need help with the variable commands, for example the ec system, I wanted to make it add on each time I want.
function onCreate() {
this.level.ecteller = this;
}
function onPlayerTouchsMe() {
if (player.account =="Graal804226") {
this.ec=10;
this.chat ="You have"SPC this.ec SPC"EC's";
}
}
function onTest() {
this.ec +=1;
}
|
I added this on another NPC :
function onPlayerChats() {
if (player.chat=="addec") {
this.level.ecteller.trigger("Test","");
}
}
|
Thanks...