Hey,
bin trying to script for the past days, my gold gonna expire in 1 day so i gotta find a quick way to fix it up... so what shall I do? It used to work but I messed and added the /reset command, not working anymore :/ Thanks
// Created by Graal804226
function onMouseDown(mode) {
if (mode == "left") {
Temp.pl = findnearestplayer(mousex, mousey);
Player.chat = format("%s was clicked", temp.pl.communityname);
this.head=player.head;
this.chat=player.chat;
this.body=player.body;
this.nick=player.nick;
this.ap=player.ap;
setcharprop #P1,#P1;
this.ani = player.ani;
this.dir = player.dir;
}
}
if (created) {
showcharacter();
this.head = "head0.png";
this.nick = "Statue";
this.colors[0] = "orange";
this.colors[1] = "white";
this.colors[2] = "blue";
this.colors[3] = "red";
this.colors[4] = "black";
this.shield = "no-shield.png";
this.dir = 2;
setcharani("idle",NULL);
message click on me!;
function onPlayerChats() {
if (player.chat == "/reset") {
this.chat ="reset";
}
if (player.chat !="/reset"){
return;
}
}
}
|
also somehow, function onCreate() doesn't work here...