Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   mm... how should i do this . (https://forums.graalonline.com/forums/showthread.php?t=26182)

la_builder 03-24-2002 02:34 AM

mm... how should i do this .
 
1 Attachment(s)
well i have made a gfx like this one and now i wanna make it move bud the only thing that stops me is how would i make for example dir=0 and than set the correct part of the gif thats the part where my thingie stands to the north here is an example of such a thing (its not the one i made)

Python523 03-24-2002 03:57 AM

ganis or showimg and changeimgpart or setimgpart

haunter 03-24-2002 05:09 AM

Quote:

Originally posted by Python523
ganis or showimg and changeimgpart or setimgpart
What's the difference between setimg part, and changeimgpart?

neomaximus2k 03-24-2002 05:27 PM

Re: mm... how should i do this .
 
Quote:

Originally posted by la_builder
well i have made a gfx like this one and now i wanna make it move bud the only thing that stops me is how would i make for example dir=0 and than set the correct part of the gif thats the part where my thingie stands to the north here is an example of such a thing (its not the one i made)
Is it for a P2P server or Non P2P server?

if it is P2P then just create a GANI for it.
if it is non P2P then you will either have to use 4 gani's, or setimg

Saga2001 03-24-2002 08:10 PM

setimgpart and changeimgpart are different because changeimgpart is for a showimg while setimgpart is for an npc's image.

screen_name 03-24-2002 10:35 PM

NPC Code:

// NPC made by screen_name

if (created) {
this.wm = 0; // Walking mode
setimgpart aurorareddragon.gif,dir*45,dir*this.wm,45,45;
this.random = random(0,1);
timeout = .2;
}
if (timeout) {
if (this.random in |0,0.4|) {
dir=int(this.random*10);
}
this.random = random(0,1);
setimgpart aurorareddragon.gif,dir*45,this.wm*45,45,45;
this.wm = abs(this.wm-1);
this.random = random(0,1);
x+=vecx(dir);
y+=vecy(dir);
timeout = .2
}


la_builder 03-25-2002 02:15 AM

wow thanks everybody

screen_name 03-25-2002 05:24 AM

hey, no prob, i believe ganis would be a little easier :P

neomaximus2k 03-25-2002 06:53 AM

Quote:

Originally posted by screen_name
hey, no prob, i believe ganis would be a little easier :P
A lot easier in fact, but depends on whether it is free or p2p.
and testing my sig

bah the spaces dont work :'( is that bug in the board?

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"^^".,___
=== ~~~~~~~~
==
= Neo

,, .-.
|| | ) )
|| | , '-'
|| | | |
|| '--' |
,, || .----'
|| | || |
| '---'| |
'------.| | _____
((_)) || | ( _ / /|\ \
(o o) || | ))("), | | | | |
____\_/___||_|_____((__^_))____________________\_\|/_/__

screen_name 03-25-2002 07:07 AM

:P

NPC Code:


_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"^^".,___
=== ~~~~~~~~
==
= Neo

,, .-.
|| | ) )
|| | , '-'
|| | | |
|| '--' |
,, || .----'
|| | || |
| '---'| |
'------.| | _____
((_)) || | ( _ / /|\ \
(o o) || | ))("), | | | | |
____\_/___||_|_____((__^_))____________________\_\|/_/__



only way to get it to work

neomaximus2k 03-25-2002 03:30 PM

Quote:

Originally posted by screen_name
:P

NPC Code:


_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"^^".,___
=== ~~~~~~~~
==
= Neo

,, .-.
|| | ) )
|| | , '-'
|| | | |
|| '--' |
,, || .----'
|| | || |
| '---'| |
'------.| | _____
((_)) || | ( _ / /|\ \
(o o) || | ))("), | | | | |
____\_/___||_|_____((__^_))____________________\_\|/_/__



only way to get it to work

Thanks dude, now i can sort ut out :D


All times are GMT +2. The time now is 08:45 AM.

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