Graal Forums

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

KuJi 05-28-2005 04:42 AM

gscript question
 
How would you change what sprites a server uses?

Kaimetsu 05-28-2005 05:12 AM

That's quite a vague question. If you want to change the appearance of characters, use replaceani or rescript movement.

KuJi 05-28-2005 05:26 AM

Quote:

Originally Posted by Kaimetsu
That's quite a vague question. If you want to change the appearance of characters, use replaceani or rescript movement.

What I mean by sprites is sprites.png.

Kaimetsu 05-28-2005 05:32 AM

Most of the relevant stuff can be rescripted.

Velox Cruentus 05-28-2005 05:33 AM

I don't believe you can through ordinary means. You're best bet is rescripting it entirely.

KuJi 05-28-2005 05:41 AM

Quote:

Originally Posted by Velox Cruentus
I don't believe you can through ordinary means. You're best bet is rescripting it entirely.

Well, the thing is. I am using the old tileset, a couple of the old imgs need the old sprites. Was wondering if u could replace them or something. guess not..owell

Evil_Trunks 05-28-2005 06:47 AM

Quote:

Originally Posted by KuJi
How would you change what sprites a server uses?


it's impossible to do so but Stefan said he might add this command in the future

KuJi 05-29-2005 02:56 AM

Alright, another question:

I've tried almost everything with keydown2 and strequals(#p(0),#))

I can't get CTRL to work.

- keydown2 is fixed, when you dont add 256,512 or 1024
(shift, control, alt) to the key number then it doesn't
return 'true' when those special keys are not pressed;
a few keycodes that can be used in keydown2 to check for
normally unaccessible keys (have not test all of them though):
8 - back
9 - tab
13 - return
16 - shift
17 - control
18 - alt
33 - page up
34 - page down
35 - end
36 - home
42 - print key
45 - insert
46 - delete
91 - left windows key
92 - right windows key
93 - mouse popup key
112-123 - F1-F12
144 - numlock
160 - left shift
161 - right shift
162 - left control
163 - right control
164 - left alt/menu
165 - right alt/menu


Tried all Controls

PrinceDark 05-29-2005 03:18 AM

I guess it depends on how you use it. I tried it with keypressed also and it didn't work. I tried this online and my results was fine.
NPC Code:

//#CLIENTSIDE
if ( playerenters || timeout ) {
if ( keydown2(17,true) )
setplayerprop #c,true;
timeout = 0.05;
}



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

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