I know I am a looser and cant script major stuff so I wanna ask some experts, will this script work on on p2p and do as I want it to:
// NPC made by SaijinGohan
//#CLIENTSIDE
if (created) {
x = 29.5;
}
if (playerenters) {
setimg norin_baddyrealm1-boss.png;
say2 DIE!;
setstring this.stuff,15;
setstring this.kill,on;
this.x1=45;
this.x2=16;
this.y1=19;
this.y2=42;
timeout = 1;
message #s(this.stuff);
}
if (timeout) {
for (q = 0;q<=11;q++) {
explosion();
sleep 0.05;
}
this.x1 = 45;
this.x2 = 16;
this.y1=19;
this.y2 = 42;
timeout = strtofloat(#s(this.stuff))/5;
}
if (washit) {
if (strcontains(#s(this.kill),on)) {
setstring this.stuff,#v(strtofloat(#s(this.stuff))-3);
message #s(this.stuff);
}
}
if (wasshot) {
if (strcontains(#s(this.kill),on)) {
setstring this.stuff,#v(strtofloat(#s(this.stuff))-1.5);
message #s(this.stuff);
}
}
function explosion() {
putexplosion 5,this.x1,this.y1;
putexplosion 5,this.x2,this.y2;
putexplosion 5,this.x1,this.y2;
putexplosion 5,this.x2,this.y1;
shootball;
this.x1=this.x1-1;
this.x2=this.x2+1;
this.y1=this.y1+1;
this.y2=this.y2-1;
}
if (washit || wasshot) {
if (strtofloat(#s(this.stuff))<=0) {
setstring this.kill,off;
timeout = 0;
say2 Fine I give!;
setimg norin_realm1key.png;
message ;
set this.canpickup;
}
}
if (playertouchsme) {
if (this.canpickup) {
unset this.canpickup;
set client.canleave;
toinventory client.realm1key;
}
}
Please tell me if this is good, bad, or if I should be shot for making something this horrible and please help me if I am bad.
