Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   AP bar (https://forums.graalonline.com/forums/showthread.php?t=14546)

SSRobgeta 10-13-2001 09:42 PM

AP bar
 
Here, Why won't the AP go down?

// NPC made by Rob Getashu
timereverywhere;
timeout=.05;
if (playerenters) {toweapons -Ap Bar-
}
//AP Bar
if (isweapon) {
showstats 1+4+8+16+32+128+256+512+1024;
this.apdisplay = ((playerap/100)*100);
showimg 1,rene_apbar.gif,this.pos[0],this.pos[1];
this.pos = {screenwidth-625,70};
}

changeimgvis 1, 4;
if (this.apdisplay>0) {
showimg 2,rene_ap.gif,this.pos[0],this.pos[1];
changeimgpart rene_ap.gif,0,0,this.apdisplay,100;
changeimgvis 2,4;
}

timeout = .05;

ownerofbabylon 10-13-2001 09:54 PM

Wow, I wish i could script like that =/

nyghtGT 10-13-2001 11:32 PM

*note
 
you should make note a lot of scripts only work online .... so you might ask a server owner if they could test it for you ....

Link188 10-13-2001 11:55 PM

nyghtGT, you have long fingers lol

nyghtGT 10-13-2001 11:59 PM

camera
 
Quote:

Originally posted by Link188
nyghtGT, you have long fingers lol
they are just really close to the camera ....

Link188 10-14-2001 12:00 AM

oh...lol

Enigma_GP6 10-14-2001 02:18 AM

Quote:

Originally posted by ownerofbabylon
Wow, I wish i could script like that =/
I sure hope you are being sarcastic, that is supa easy, basically Gene, or 'Rob', You need to make that changeimgvis to about 4, but then you have to change the variables to a little higher, to make it want to go down anyways. But then again, that might also make it not want to go up. :rolleyes:

-Rebel95

Link188 10-14-2001 02:25 AM

that helps alot

ownerofbabylon 10-14-2001 04:43 AM

Quote:

Originally posted by Enigma_GP6


I sure hope you are being sarcastic, that is supa easy, basically Gene, or 'Rob', You need to make that changeimgvis to about 4, but then you have to change the variables to a little higher, to make it want to go down anyways. But then again, that might also make it not want to go up. :rolleyes:

-Rebel95

no i wasnt joking you piece of **** with a stick in your ass

grim_squeaker_x 10-14-2001 04:45 AM

You'll have to put it in a timeout loop for it to get updated constantly.

SSRobgeta 10-14-2001 05:20 AM

Quote:

Originally posted by grim_squeaker_x
You'll have to put it in a timeout loop for it to get updated constantly.
Ok thx and anyways Lord Helmut I can probly script better than you. =/

btedji 10-14-2001 08:11 AM

all the commands needed work offline therefore a ap bar should work offline

Xaviar 10-14-2001 08:14 AM

Quote:

Originally posted by SSRobgeta


Ok thx and anyways Lord Helmut I can probly script better than you. =/

He wasn't saying you couldn't...He was saying he wished he was at your level.

Sep3kP2P 10-14-2001 10:50 AM

Re: AP bar
 
Quote:

Originally posted by SSRobgeta
Here, Why won't the AP go down?

...
this.apdisplay = ((playerap/100)*100);
...

what exatly does this accomplish? wouldn't it be the same number?...

nyghtGT 10-14-2001 11:14 AM

Quote:

Originally posted by SSRobgeta


Ok thx and anyways Lord Helmut I can probly script better than you. =/

WHY and the hell does this always end up with "I can script better than you"

SSRobgeta 10-15-2001 12:24 AM

Quote:

Originally posted by Xaviar


He wasn't saying you couldn't...He was saying he wished he was at your level.

Oh
Oh ok

btedji 10-15-2001 12:25 AM

post #23847982347 on ap bars LOL

SSRobgeta 10-15-2001 12:27 AM

Quote:

Originally posted by btedji
post #23847982347 on ap bars LOL
wow:rolleyes:

Enigma_GP6 10-15-2001 07:14 AM

Well, basically, I dont like this. Peoples are arguing on what post this is. Gosh, if I had a nickel for everytime omeone did that, I'd be rich even more than I am, that's why I use silver pens.....if You can read this, you have way to much time on your hands.

-Rebel95

PresShinP2P 10-15-2001 10:19 PM

Kamietsu is better than everyone, end of argument

PresShinP2P 10-15-2001 10:20 PM

Jesus the posting goes to fast in these forums

royce 10-16-2001 03:19 AM

i can read it by highlighting it....its second nature to highlight to me

SSRobgeta 10-16-2001 07:25 AM

Anyways... ;) Continue


All times are GMT +2. The time now is 06:47 PM.

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