Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-20-2002, 01:54 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
ignorant NPC

here it is can someone help me:
NPC Code:

NPC Code:

// NPC made by NyghtGT (Admin)
// SP Agent's Toy's (Super-Saiyin)
if (created) {
hide;
}
if (playerenters) {
toweapons Super-Saiyin;
}
if (weaponfired) {
say2
Super Saiying Thingy#b
'super on' - turns super on#b
'super off' - turns super off;
}
if (playerchats) {
if (strequals(#c,super on)) {
setplayerprop #c,;
showimg 103,d-saiyin.gif,playerx,playery;
timeout=0.05;
}
if (strequals(#c,super off)) {
setplayerprop #c,;
hideimg 103;
timeout=0;
}
}
if (timeout) {
updatesaiyin();
timeout=0.05;
}
// Functions
function updatesaiyin() {
showimg 103,d-saiyin.gif,playerx,playery;
}




sorry for asking for quite a bit of help lately, just trying to take care of buisness...
Reply With Quote
  #2  
Old 01-20-2002, 01:56 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: ignorant NPC

Quote:
Originally posted by nyghtGT
here it is can someone help me:
NPC Code:

NPC Code:

// NPC made by NyghtGT (Admin)
// SP Agent's Toy's (Super-Saiyin)
if (created) {
hide;
}
if (playerenters) {
toweapons Super-Saiyin;
}
if (weaponfired) {
say2
Super Saiying Thingy#b
'super on' - turns super on#b
'super off' - turns super off;
}
if (playerchats) {
if (strequals(#c,super on)) {
setplayerprop #c,;
showimg 103,d-saiyin.gif,playerx,playery;
timeout=0.05;
}
if (strequals(#c,super off)) {
setplayerprop #c,;
hideimg 103;
timeout=0;
}
}
if (timeout) {
updatesaiyin();
timeout=0.05;
}
// Functions
function updatesaiyin() {
showimg 103,d-saiyin.gif,playerx,playery;
}




sorry for asking for quite a bit of help lately, just trying to take care of buisness...
changeimgvis 103,1 might help

Last edited by Python523; 01-20-2002 at 02:26 PM..
Reply With Quote
  #3  
Old 01-20-2002, 01:58 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
forgot to attatch the gif,
here it is...
Attached Images
 
Reply With Quote
  #4  
Old 01-20-2002, 11:40 PM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Not sure, but the problem may be that the current version of Graal has several bugs... One being that it doesn't like to show .gif files in a showimg command. I don't know why... It also doesn't like to use black as a transparent colour...
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #5  
Old 01-21-2002, 06:06 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Sennema
Not sure, but the problem may be that the current version of Graal has several bugs... One being that it doesn't like to show .gif files in a showimg command. I don't know why... It also doesn't like to use black as a transparent colour...
Im glad the blank doesnt work
Reply With Quote
  #6  
Old 01-21-2002, 07:26 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
Originally posted by Poogle
Im glad the blank doesnt work
Yeah, same here. I use black for lines and such sometimes, and it looks really bad when it uses that as a transparent colour. What is the transparent colour now, anyway?
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #7  
Old 01-21-2002, 02:47 PM
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
you set your own transparent color (in the GIF file)
Reply With Quote
  #8  
Old 01-21-2002, 09:12 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
you can set the transparency in pngs too

and also, nyght, it would help if you specify what the problem is
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #9  
Old 01-22-2002, 12:43 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Looks like it all should work. Does it work offline? Offline I have used old gifs in showimgs, and they all work.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #10  
Old 01-22-2002, 07:06 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
Originally posted by Faheria_GP2
you set your own transparent color (in the GIF file)
Ah, that could do it. Now if I could only finding something better than Paint to do it with...
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:13 PM.


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