Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help!!! (https://forums.graalonline.com/forums/showthread.php?t=16028)

Poogle 11-03-2001 05:26 AM

Help!!!
 
// Graal2001 NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setplayerprop #3,no-head.gif;
setcharprop #8,body.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,no-shield.gif;
shieldpower = 1;
dir = 2;
}
if (playertouchsme) {
this.body=timevar;
body+=1;
message body#v(body).png;
setcharprop #8,body#v(body).png;
}
Why dont this work right? It needs to loop after body12.png and start back at .png

Xaviar 11-03-2001 06:16 AM

Re: Help!!!
 
Quote:

Originally posted by Poogle
this.body=timevar;

What were you smoking when you wrote this?

Poogle 11-03-2001 06:43 AM

Re: Re: Help!!!
 
Quote:

Originally posted by Xaviar

What were you smoking when you wrote this?

Nothing! Smokings for losers! Would someone just help?

SSRobgeta 11-03-2001 08:10 AM

A Quote:
One who dies... Well... Dies

Vinvect 11-03-2001 09:46 AM

Re: Help!!!
 
i think this worx

// NPC fixed by Darkyoshi1
if (created) {
showcharacter;
setcharprop #3,head478.gif;
setcharprop #8,body.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,no-shield.gif;
shieldpower = 1;
dir = 2;
}
if (playertouchsme&&this.body<12) {
this.body+=1;
message body#v(this.body/100*100).png;
setcharprop #8,body#v(this.body).png;
}
else{
this.body=2;
}

Xaviar 11-04-2001 02:08 AM

Re: Re: Help!!!
 
Quote:

Originally posted by Vinvect

message body#v(this.body/100*100).png;

Ha. :D


All times are GMT +2. The time now is 11:52 AM.

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