Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #16  
Old 09-27-2004, 07:42 AM
NeoJenova NeoJenova is offline
my name isn't bold, HA!
NeoJenova's Avatar
Join Date: Jun 2003
Location: 0H10
Posts: 668
NeoJenova will become famous soon enough
Send a message via AIM to NeoJenova Send a message via Yahoo to NeoJenova
Quote:
Originally Posted by Kaimetsu
Advice 1: Do not listen to clueless UN managers
Quote:
Originally Posted by Slash-P2P
Amen to Kai's Advice 1.
Quote:
Originally Posted by falco10291029
1. *****
__________________
[helpfulthreads] | advertising
[server] | unholynation

  #17  
Old 09-27-2004, 03:04 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by falco10291029
i tried several of the things suggested, waht r u talking about?
I gave three suggestions. Did you pay heed to any of them?

Quote:
Originally Posted by NeoJenova
How can you complain? You're the one polluting the thread with bad advice.
__________________
  #18  
Old 09-27-2004, 05:56 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by Slash-P2P
Maybe this will end the thread.
-long code here-
Anyone else notice that one of his indexes (8675309) is a song? A bad one if I may add...
That's not quite a complete optimization, I must say. Not to mention I do believe your taste in music is a whee bit poor

on-topic, I was messing with this script this morning and duplicated your problem easily, but when I got back just now I wasn't getting any blinking... I'd just suggest making your code a bit more eloquent. I.E.
  • use showtext index,x,y,font,style,text; instead of showimg index,@font@style@text,x,y;
  • Add static text to the menu image instead of wasting cpu by using showtext.
  • Don't draw static images or borders with showpoly. Put it on the menu image.
  • Put all initiating code in a created block (triggeraction, showstats, local variable definitions) and the rest in a timeout (no freaking while+sleep loops!).
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
  #19  
Old 09-27-2004, 06:08 PM
NeoJenova NeoJenova is offline
my name isn't bold, HA!
NeoJenova's Avatar
Join Date: Jun 2003
Location: 0H10
Posts: 668
NeoJenova will become famous soon enough
Send a message via AIM to NeoJenova Send a message via Yahoo to NeoJenova
Quote:
Originally Posted by Kaimetsu
How can you complain? You're the one polluting the thread with bad advice.
I don't remember contributing any advice to this thread, I only expressed my opinion on your comments.
__________________
[helpfulthreads] | advertising
[server] | unholynation

  #20  
Old 09-27-2004, 07:26 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by NeoJenova
I don't remember contributing any advice to this thread
I apologise. The original post had been deleted and I couldn't remember the name of the person who posted it. Since you were objecting, I assumed you were he.

Still, I cannot see how you could complain about my advice. Xecutor/DIABLO2099 was doing the thread a great disservice by forcing his ignorance upon it.
__________________
  #21  
Old 09-27-2004, 08:43 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Dach
That's not quite a complete optimization, I must say. Not to mention I do believe your taste in music is a whee bit poor
The song gets very annoying

He needs to learn on his own so I didn't try to make it completely optimized.
  #22  
Old 09-27-2004, 09:07 PM
Zero Hour Zero Hour is offline
Stiff Upper Lip
Zero Hour's Avatar
Join Date: Oct 2006
Location: Nova Scotia, Canada
Posts: 0
Zero Hour is on a distinguished road
Send a message via AIM to Zero Hour
I'm not sure, but isn't there a way draw a GUI on a certain screen level so that it doesn't actually timeout, etc. (Although I suppose you would need them to draw the health bars, etc.)

*shrug* Maybe it was already mentioned.
__________________
  #23  
Old 09-27-2004, 09:09 PM
NeoJenova NeoJenova is offline
my name isn't bold, HA!
NeoJenova's Avatar
Join Date: Jun 2003
Location: 0H10
Posts: 668
NeoJenova will become famous soon enough
Send a message via AIM to NeoJenova Send a message via Yahoo to NeoJenova
Quote:
Originally Posted by Kaimetsu
Xecutor/DIABLO2099 was doing the thread a great disservice by forcing his ignorance upon it.
Oh. Didn't see his post.
__________________
[helpfulthreads] | advertising
[server] | unholynation

  #24  
Old 09-27-2004, 09:09 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Zero Hour
I'm not sure, but isn't there a way draw a GUI on a certain screen level so that it doesn't actually timeout, etc. (Although I suppose you would need them to draw the health bars, etc.)

*shrug* Maybe it was already mentioned.
I think you can just do showimg/showtext with layer 4+ and it stays shown on the screen.

NPC Code:

if (playerenters) {
showtext 200,screenwidth-2,screenheight-16,r,verdana,hello;
changeimgvis 200,4;
changeimgzoom 200,.7;
}



I believe thats what I did.
  #25  
Old 09-27-2004, 10:19 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Quote:
use showtext index,x,y,font,style,text; instead of showimg index,@font@style@text,x,y;
Add static text to the menu image instead of wasting cpu by using showtext.
Don't draw static images or borders with showpoly. Put it on the menu image.
Put all initiating code in a created block (triggeraction, showstats, local variable definitions) and the rest in a timeout (no freaking while+sleep loops!).
All good suggestions but not verywell needed ones.

Quote:
Maybe this will end the thread
-code-
Didn't help and you left some stuff out. I'd fill it in but i would rather just use my old one. No point in using a slightly better broken object :/
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
  #26  
Old 09-27-2004, 10:25 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
Just try to remove all showimgs except one, so that the code gets very small and easy to analyze
  #27  
Old 09-27-2004, 10:30 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Kaimetsu
Advice 1: Do not listen to clueless UN managers
Advice 2: Strip your code to the bare essentials before posting it. Nobody wants to scan through pages of unrelated lines.
Advice 3: Don't just set the alpha to 0 in order to hide something.
Advice 4: Put some effort into understanding what you are doing, instead of asking for help and then closing your eyes until your script works.


Once you have succeeded, contact a mod to have this reopened, if neccessary.
Closed Thread


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 10:43 AM.


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