Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-17-2001, 10:09 PM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Some Help

Why won't the EXP part of this scriptwork?

// NPC made by Rob Getashu
if (playerenters) {
i = compuscount
}
if (compusdied) {
setstring compdead,#v(strtofloat(#s(compdead))+i);
setplayerprop #c,#v(strtofloat(#s(compdead)))
}


// NPC made by Rob Getashu
timereverywhere;
timeout=.05;
if (playerenters){
toweapons -System-Status;
}
if (timeout) {
if (isweapon) {
showstats 1+4+8+16+256+512+1024;
this.pos = {screenwidth-180,30};
this.hpdisplay = ((playerhearts/playerfullhearts)*100);
this.mpdisplay = ((playermp/100)*100);
this.apdisplay = ((playerap/100)*100);
this.expdisplay = ((#s,compdead/50)*50);
if (good) {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
else if (evil) {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
else {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
changeimgvis 1, 4;

//Level Upgrades
if (isweapon) {
showimg 7,rene_0.gif,this.pos[0]+52,this.pos[1]+92;
changeimgvis 7,4;
showimg 8,rene_0.gif,this.pos[0]+62,this.pos[1]+92;
changeimgvis 8,4;
}

//Bars
if (this.hpdisplay>0) {
showimg 3,renegade_hp.gif,this.pos[0]+24,this.pos[1]+27;
changeimgpart 3,0,0,this.hpdisplay,20;
changeimgvis 3,4;
}
else {
hideimg 3;
}
if (this.apdisplay>0) {
showimg 4,renegade_ap.gif,this.pos[0]+24,this.pos[1]+48;
changeimgpart 4,0,0,this.apdisplay,20;
changeimgvis 4,4;

}
else {
hideimg 4;
}
if (this.mpdisplay>0) {
showimg 5,renegade_mp.gif,this.pos[0]+24,this.pos[1]+66;
changeimgpart 5,0,0,this.mpdisplay,20;
changeimgvis 5,4;
}
else {
hideimg 5;
}
if (this.expdisplay>0) {
showimg 6,renegade_exp.gif,this.pos[0]+75,this.pos[1]+91;
changeimgpart 6,0,0,this.expdisplay,20;
changeimgvis 6,4;
}
}
}
else {
hideimg 0.5;
}
if (playerdies) {playerap=playerap;playermp=playermp;}
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #2  
Old 11-18-2001, 01:40 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
no one has permisson to take this script.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #3  
Old 11-18-2001, 02:24 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
I have the zip of your entire server on my computer
Reply With Quote
  #4  
Old 11-18-2001, 02:28 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
this.expdisplay = ((#s,compdead/50)*50);

should be changed to:

this.expdisplay = ((strtofloat(#s(compdead))/50)*50);
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #5  
Old 11-18-2001, 04:22 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by Brad_Elven
I have the zip of your entire server on my computer
Why?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #6  
Old 11-18-2001, 04:26 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
thx
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #7  
Old 11-18-2001, 04:36 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
Quote:
Originally posted by SSRobgeta

Why?
enigma_gp6 has it and his little brother was sending me PWs. The levels arent very good but that 1 race is fairly cool =D I wont say what it is though on here
Reply With Quote
  #8  
Old 11-18-2001, 04:50 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by Brad_Elven


enigma_gp6 has it and his little brother was sending me PWs. The levels arent very good but that 1 race is fairly cool =D I wont say what it is though on here
I know i am still; working on it. that must be an old version. Thxs
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #9  
Old 11-18-2001, 04:53 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Now I'm having trouble for when the levels go up when you get 50 exp.

// NPC made by Rob Getashu
timereverywhere;
timeout=.05;
if (playerenters){
toweapons -System-Status;
}
if (timeout) {
if (isweapon) {
showstats 1+4+8+16+256+512+1024;
this.pos = {screenwidth-180,30};
this.hpdisplay = ((playerhearts/playerfullhearts)*100);
this.mpdisplay = ((playermp/100)*100);
this.apdisplay = ((playerap/100)*100);
this.expdisplay = ((strtofloat(#s(compdead))/50)*50);

if (good) {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
else if (evil) {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
else {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
changeimgvis 1, 4;

//Level Upgrades
if (isweapon&&compdead=<50) {
setstring levelup,#v(strtofloat(#s(levelup))+1);
setstring compdead,
}
if (isweapon&&levelup=0) {
showimg 7,rene_0.gif,this.pos[0]+52,this.pos[1]+92;
changeimgvis 7,4;
showimg 8,rene_0.gif,this.pos[0]+62,this.pos[1]+92;
changeimgvis 8,4;
}
if (isweapon&&levelup=1) {
showimg 7,rene_0.gif,this.pos[0]+52,this.pos[1]+92;
changeimgvis 7,4;
showimg 8,rene_1.gif,this.pos[0]+62,this.pos[1]+92;
changeimgvis 8,4;
}

//Bars
if (this.hpdisplay>0) {
showimg 3,renegade_hp.gif,this.pos[0]+24,this.pos[1]+27;
changeimgpart 3,0,0,this.hpdisplay,20;
changeimgvis 3,4;
}
else {
hideimg 3;
}
if (this.apdisplay>0) {
showimg 4,renegade_ap.gif,this.pos[0]+24,this.pos[1]+48;
changeimgpart 4,0,0,this.apdisplay,20;
changeimgvis 4,4;

}
else {
hideimg 4;
}
if (this.mpdisplay>0) {
showimg 5,renegade_mp.gif,this.pos[0]+24,this.pos[1]+66;
changeimgpart 5,0,0,this.mpdisplay,20;
changeimgvis 5,4;
}
else {
hideimg 5;
}
if (this.expdisplay>0) {
showimg 6,renegade_exp.gif,this.pos[0]+75,this.pos[1]+91;
changeimgpart 6,0,0,this.expdisplay,20;
changeimgvis 6,4;
}
}
}
else {
hideimg 0.5;
}
if (playerdies) {playerap=playerap;playermp=playermp;}
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #10  
Old 11-18-2001, 10:57 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
Quote:
Originally posted by SSRobgeta


I know i am still; working on it. that must be an old version. Thxs
Yea it looks pretty good
Reply With Quote
  #11  
Old 11-18-2001, 02:17 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
setstring compdead,

should be changed to:

setstring compdead, ;

and,

if (isweapon&&compdead=<50) {

should be changed to:

if (isweapon&&strtofloat(#s(compdead))>=50) {
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #12  
Old 11-19-2001, 12:15 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Thx but it still doesn't work. here is what I have.


// NPC made by Rob Getashu
timereverywhere;
timeout=.05;
if (playerenters){
toweapons -System-Status;
}
if (timeout) {
if (isweapon) {
showstats 1+4+8+16+256+512+1024;
this.pos = {screenwidth-180,30};
this.hpdisplay = ((playerhearts/playerfullhearts)*100);
this.mpdisplay = ((playermp/100)*100);
this.apdisplay = ((playerap/100)*100);
this.expdisplay = ((strtofloat(#s(compdead))/50)*50);

if (good) {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
else if (evil) {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
else {
showimg 1,renegade_hpbar.gif,this.pos[0],this.pos[1];
}
changeimgvis 1, 4;

//Level Upgrades
if (isweapon&&strtofloat(#s(compdead))>=50) {
setstring levelup,#v(strtofloat(#s(levelup))+1);
setstring compdead,;
}
if (isweapon&&levelup=0) {
showimg 7,rene_0.gif,this.pos[0]+52,this.pos[1]+92;
changeimgvis 7,4;
showimg 8,rene_0.gif,this.pos[0]+62,this.pos[1]+92;
changeimgvis 8,4;
}
if (isweapon&&levelup=1) {
showimg 7,rene_0.gif,this.pos[0]+52,this.pos[1]+92;
changeimgvis 7,4;
showimg 8,rene_1.gif,this.pos[0]+62,this.pos[1]+92;
changeimgvis 8,4;
}

//Bars
if (this.hpdisplay>0) {
showimg 3,renegade_hp.gif,this.pos[0]+24,this.pos[1]+27;
changeimgpart 3,0,0,this.hpdisplay,20;
changeimgvis 3,4;
}
else {
hideimg 3;
}
if (this.apdisplay>0) {
showimg 4,renegade_ap.gif,this.pos[0]+24,this.pos[1]+48;
changeimgpart 4,0,0,this.apdisplay,20;
changeimgvis 4,4;

}
else {
hideimg 4;
}
if (this.mpdisplay>0) {
showimg 5,renegade_mp.gif,this.pos[0]+24,this.pos[1]+69;
changeimgpart 5,0,0,this.mpdisplay,20;
changeimgvis 5,4;
}
else {
hideimg 5;
}
if (this.expdisplay>0) {
showimg 6,renegade_exp.gif,this.pos[0]+75,this.pos[1]+91;
changeimgpart 6,0,0,this.expdisplay,20;
changeimgvis 6,4;
}
}
}
else {
hideimg 0.5;
}
if (playerdies) {playerap=playerap;playermp=playermp;}
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #13  
Old 11-19-2001, 12:27 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
What a loser using Ice Pick's script.
__________________
Reply With Quote
  #14  
Old 11-19-2001, 12:33 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by Aknts
What a loser using Ice Pick's script.
what! I made most of it! Maybe some of it is like Ice Picks but I added EXP and Levels. HP is simple but I just used his outline cause I'm lazy. :o
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #15  
Old 11-19-2001, 03:35 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
geh, dont send your script to an entire forum, use a private scripter
Reply With Quote
  #16  
Old 11-19-2001, 04:38 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
Yes, I am a private scripter you can hire, and you know me real well Rob, so just ask me or someone a little higher than yourself next time.

-T3CK
Reply With Quote
  #17  
Old 11-19-2001, 05:25 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by T3CK
Yes, I am a private scripter you can hire, and you know me real well Rob, so just ask me or someone a little higher than yourself next time.

-T3CK
Well can you fix it? And how do i know u?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #18  
Old 11-19-2001, 05:44 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
First of all, I do not show my intelligence on the forums, these are too public. Send me a PM in these forums, I'll talk to you then. About you knowing me, I'll give you a clue, you haven't heard from me for a long time. That's not a big clue, but that's all you'll ever know. Thank you for your time.

-T3CK
Reply With Quote
Reply


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 03:21 PM.


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