Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   showimg/changeimgpart & mng (https://forums.graalonline.com/forums/showthread.php?t=26663)

Bhala 03-31-2002 05:40 AM

showimg/changeimgpart & mng
 
showimg/changeimgpart do NOT work with MNGs which makes me mad. If they do work & my scripts are just messed let me know but ive tryed every thing & they never workd....

darkriders_p2p 03-31-2002 09:25 AM

...
 
this should be in like future improvements, or scripting forum.
And usually ppl make gani's with mng files, (like my pet NPC)

Python523 03-31-2002 03:10 PM

Re: ...
 
Quote:

Originally posted by darkriders_p2p
this should be in like future improvements, or scripting forum.
And usually ppl make gani's with mng files, (like my pet NPC)

I don't think I've ever seen a gani made with an mng, most of the use .png files

Bhala 03-31-2002 04:08 PM

Re: ...
 
Quote:

Originally posted by darkriders_p2p
this should be in like future improvements, or scripting forum.
And usually ppl make gani's with mng files, (like my pet NPC)

uh no its a bug. MNGs should work with setimg... Im not suposed to use gifs....

Tyhm 04-01-2002 04:40 AM

?

Lookit the rat. That uses mngs. It works fine.

Lemme take a look at your script...

Bhala 04-01-2002 02:06 PM

NPC Code:

if(created){
this.item = 10;
setstring this.layer,#a;
setshape 1,48,48;
setimg andor_hat#v(this.item).mng;
}
if (playertouchsme) {
hatc = strtofloat(#s(hatc#v(this.item)))+1;
setstring client.hatc#v(this.item),#v(hatc);
savelog2 hat-log.txt, +hat: #v(this.item) at (x,y) in #L from #s(this.layer);
destroy;
}



this is a server side script...... IT NO WORKIE!!!!

Python523 04-02-2002 03:19 AM

try this, just edit it to get the andor hat stuff, I had to change it to work it offline since I don't have those graphics
if(created){
this.item = 10;
setstring this.layer,#a;
setshape 1,48,48;
setimg hat#v(this.item).png;
setimgpart hat#v(this.item).png,40,0,60,50;
}
if (playertouchsme) {
setstring client.hatc#v(this.item),#v(strtofloat(#s(client.h atc#v(this.item)))+1);
savelog2 hat-log.txt, +hat: #v(this.item) at (x,y) in #L from #s(this.layer);
destroy;
}

Bhala 04-02-2002 07:15 AM

DUH!!!!!!! I need it to work with MNG!!!! not png >=\

Python523 04-02-2002 07:22 AM

mng files worked for me when I tried it =/

Bhala 04-02-2002 10:56 AM

Like i said its server side. duh

Python523 04-02-2002 02:23 PM

I'm guessing that this is a Join-Class? Just make part of it clientsided
if(created){
this.item = 10;
setstring this.layer,#a;
setshape 1,48,48;
}
if (playertouchsme) {
setstring client.hatc#v(this.item),#v(strtofloat(#s(client.h atc#v(this.item)))+1);
savelog2 hat-log.txt, +hat: #v(this.item) at (x,y) in #L from #s(this.layer);
destroy;
}
//#CLIENTSIDE
if(created){
setimg andor_hat#v(this.item).mng;
setimgpart andor_hat#v(this.item).mng,40,0,60,50;
}

Neonight 04-03-2002 06:35 AM

Quote:

Originally posted by Python523
I'm guessing that this is a Join-Class? Just make part of it clientsided
if(created){
this.item = 10;
setstring this.layer,#a;
setshape 1,48,48;
}
if (playertouchsme) {
setstring client.hatc#v(this.item),#v(strtofloat(#s(client.h atc#v(this.item)))+1);
savelog2 hat-log.txt, +hat: #v(this.item) at (x,y) in #L from #s(this.layer);
destroy;
}
//#CLIENTSIDE
if(created){
setimg andor_hat#v(this.item).mng;
setimgpart andor_hat#v(this.item).mng,40,0,60,50;
}

Yes that script works.

Bhala, you're NPC Admin on Andor? What are their standards? x_x

Saga2001 04-03-2002 09:09 AM

Quote:

Originally posted by Neonight


Yes that script works.

Bhala, you're NPC Admin on Andor? What are their standards? x_x

LOL

Er1c 04-04-2002 01:33 AM

What I'm guessing you're doing wrong is that you didn't upload the MNG file into the proper location... in RC use the /find command and see if it could find your hat file. If it can't find it, then the folder the image is in isn't accessable from the *******, only FTP, so you would need to change the folder setup or move the file.

Admins 04-04-2002 05:42 AM

Yes, just check the folder configuration of the server
(upper left button in the RC), it must allow the
image you want to set, may be add a *.mng for the image
folder

Admins 04-04-2002 05:43 AM

Another simple solution would be to rename the
image to png, graal doesn't care, it reads the
file type (first 8 characters) to know the real type.


All times are GMT +2. The time now is 04:52 PM.

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