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
  #16  
Old 09-17-2004, 07:59 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by osrs
Geez, he is trying to help, don't be so rude.
I'm not being rude - I'm pointing out when someone else is incorrectly blaming someone or something else for something they did themselves.

The first thing for one to do when they have a problem should not be to say "There's something wrong with the system." but instead, ask yourself "What could I possibly be doing wrong?"
Reply With Quote
  #17  
Old 09-17-2004, 09:32 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by Lance
I'm not being rude - I'm pointing out when someone else is incorrectly blaming someone or something else for something they did themselves.

The first thing for one to do when they have a problem should not be to say "There's something wrong with the system." but instead, ask yourself "What could I possibly be doing wrong?"
I should have quoted, but I was talking to Sern.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #18  
Old 09-18-2004, 04:40 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by Dach
I was reffering to the forums

huh, it seems to work fine in v3, but not 2
Why is that....
__________________

Reply With Quote
  #19  
Old 09-18-2004, 08:20 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Quote:
Originally Posted by ZeroTrack
How come downloadsize it returning zero everytime? simple test will prove it does

if(created||timeout){
setplayerprop #c, #D #v(downloadpos) / #v(downloadsize);
timeout = .05;
}

Notice the var downloadsize comes up 0
NPC Code:
//#CLIENTSIDE
if (created || timeout) {
if (strlen(#D)>0) {
setplayerprop #c,#D;
showtext 201,1,1,comic sans ms,,#D;
changeimgvis 201,8;
changeimgzoom 201,11/textheight(comic sans ms,,1);
for (this.i=0;this.i<int(downloadpos/downloadsize*100);this.i++) {
showtext 300+this.i,1+textwidth(comic sans ms,,11/textheight(verdana,1),|),13,comic sans ms,,|;
changeimgvis 300+this.i,8;
changeimgzoom 300+this.i,11/textheight(comic sans ms,,1);
}
} else {
hideimg 201;
hideimgs 300,400;
}
timeout = .05;
}



Edit: Had to fix something. Erm, it should work, haven't tested so.
Reply With Quote
  #20  
Old 09-18-2004, 08:34 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Nice work malinko, I see why you are part of the debug team :P
__________________

Last edited by Python523; 09-18-2004 at 09:48 PM..
Reply With Quote
  #21  
Old 09-18-2004, 09:22 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
NPC Code:
1+textwidth(comic sans ms,,11/textheight(verdana,1),|),13,comic sans ms,,|;



The same error in my original one, how bizarre.
And it's also strange that you would use font comic sans ms everywhere but there.

And if downloadsize is 0, as is the problem, it can't divide by 0.
Reply With Quote
  #22  
Old 09-18-2004, 09:32 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by Malinko
NPC Code:
//#CLIENTSIDE
if (created || timeout) {
if (strlen(#D)>0) {
setplayerprop #c,#D;
showtext 201,1,1,comic sans ms,,#D;
changeimgvis 201,8;
changeimgzoom 201,11/textheight(comic sans ms,,1);
for (this.i=0;this.i<int(downloadpos/downloadsize*100);this.i++) {
showtext 300+this.i,1+textwidth(comic sans ms,,11/textheight(verdana,1),|),13,comic sans ms,,|;
changeimgvis 300+this.i,8;
changeimgzoom 300+this.i,11/textheight(comic sans ms,,1);
}
} else {
hideimg 201;
hideimgs 300,400;
}
timeout = .05;
}



Edit: Had to fix something. Erm, it should work, haven't tested so.
Doesnt work for me.....
__________________

Reply With Quote
  #23  
Old 09-18-2004, 09:35 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by ZeroTrack
Doesnt work for me.....
For half a moment, it should say what you're downloading right when you log on. I've never seen it show anything while you're playing.
Reply With Quote
  #24  
Old 09-18-2004, 09:48 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
I'm thinking the var is bugged, didn't work for me really when I tested it a day or so ago
Reply With Quote
  #25  
Old 09-18-2004, 11:08 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by Python523
I'm thinking the var is bugged, didn't work for me really when I tested it a day or so ago
excatly what i think
__________________

Reply With Quote
  #26  
Old 09-18-2004, 11:16 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Quote:
Originally Posted by Tolnaftate2004
NPC Code:
1+textwidth(comic sans ms,,11/textheight(verdana,1),|),13,comic sans ms,,|;



The same error in my original one, how bizarre.
And it's also strange that you would use font comic sans ms everywhere but there.

And if downloadsize is 0, as is the problem, it can't divide by 0.
I think that is yours. Did you name it -Download on #gscript?
Reply With Quote
  #27  
Old 09-19-2004, 12:47 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Malinko
I think that is yours. Did you name it -Download on #gscript?
-pfa/downloads :]

But you are a debugger and missed that? Shame
Reply With Quote
  #28  
Old 09-19-2004, 02:16 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Everyone pakes mistakes pfa, I mean look what you did to UN, You can just about do anything on UN..
__________________
Reply With Quote
  #29  
Old 09-19-2004, 07:44 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by xAndrewx
pakes mistakes pfa
Yup, yup.
And it wasn't intended to be mean.

But I didn't make most, if any, of the buggy stuff on UN.
Reply With Quote
  #30  
Old 09-21-2004, 05:08 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It seems that the modifications for the "downloadsize" variable were accidently removed in the last Graal v2 release, so the variable doesn't contain something right now except you are running v3. In the next version (will be released in a few weeks) it will be fixed.
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 04:21 AM.


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