Graal Forums

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

nyghtGT 01-20-2002 01:54 PM

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...

Python523 01-20-2002 01:56 PM

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

nyghtGT 01-20-2002 01:58 PM

1 Attachment(s)
forgot to attatch the gif,
here it is...

Sennema 01-20-2002 11:40 PM

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...

Poogle 01-21-2002 06:06 AM

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 :D

Sennema 01-21-2002 07:26 AM

Quote:

Originally posted by Poogle
Im glad the blank doesnt work :D
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?

Faheria_GP2 01-21-2002 02:47 PM

you set your own transparent color (in the GIF file)

TDK_RC6 01-21-2002 09:12 PM

you can set the transparency in pngs too

and also, nyght, it would help if you specify what the problem is

BocoC 01-22-2002 12:43 AM

Looks like it all should work. Does it work offline? Offline I have used old gifs in showimgs, and they all work.

Sennema 01-22-2002 07:06 AM

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...


All times are GMT +2. The time now is 12:27 PM.

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