Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-07-2002, 04:47 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Talking Baddy Boss

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.

__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.