Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Thread for npc questions (https://forums.graalonline.com/forums/showthread.php?t=81911)

BonzaiXxXSRStudios 09-20-2008 03:14 AM

Thread for npc questions
 
Im glad i finally got my account back so that i can use forums..cause asking on classic servers just wasnt cutting it. But hey guys, ive been puzzled on a few things as to replace the default GUIs

oo_jazz_oo 09-20-2008 03:20 AM

PHP Code:

setstatusimage("filename"); 

Thats to replace the state.png image, if thats what you mean by "default GUIs".

Frankie 09-20-2008 03:22 AM

basically just use a showstats(); function in a system NPC (npc that is added to everyone on login)

http://wiki.graal.net/index.php/Crea.../Script/Client
scroll down to showstats and it will explain how to use the function.

then, a GUI is basically just an image. you use showimg() to display the image and showtext() to display info on the gui.

this is a very brief explanation but I hope I helped :D

BonzaiXxXSRStudios 09-20-2008 03:25 AM

By default i mean as the "q" button gui and the gui at the top left of the screen. Now ive read previous threads (thats how i figured out half the things i know about scripting) and i read something about the "showstats (1024);" command and im not to sure on what i does but if i read it correctly it removes the default gui at the top left of your screen.

oo_jazz_oo 09-20-2008 03:28 AM

PHP Code:

setletters("Filename"); 

Thats to set the qmenu and letters image. Or you coudl script your own q menu.

BonzaiXxXSRStudios 09-20-2008 03:28 AM

Oh ok..never noticed showstats that on wiki. Thanks Frank. I do have some more questions but give me a second to remember them correctly.

Frankie 09-20-2008 03:29 AM

enablefeatures(); would be needed if you want to disable the default inventory.

BonzaiXxXSRStudios 09-20-2008 03:31 AM

Quote:

Originally Posted by oo_jazz_oo (Post 1424725)
PHP Code:

setletters("Filename"); 

Thats to set the qmenu and letters image. Or you coudl script your own q menu.

Now i take it that in order to script your own qmenu, you must be pretty well experienced in the field to pull that off.

oo_jazz_oo 09-20-2008 03:32 AM

Making a basic qmenu isnt that hard. If you look at the last page in the code gallery, theres a qmenu script. You can learn from that, or find someone who would script one for your server.

BonzaiXxXSRStudios 09-20-2008 03:38 AM

I will definently check that out. There is another thing i am puzzled on, the "hideplayer()" command..i can not get it to work properly..ive asked someone else about this and we couldnt figure it out. Im simply trying to hide the player from view..now people say just warp em outside the level bu i think that is a little too much, dont ya think? Any suggestions?

Frankie 09-20-2008 03:42 AM

what do you mean hide the player from view? your player or other players?
I can't even seem to get that function to work, and if it did it would only be clientside, meaning everyone can still see you, but you can't see yourself.

BonzaiXxXSRStudios 09-20-2008 03:45 AM

I was saying as in other players not being able to see you. I was thinking i could just use the images from the intro and just get those to how over the player but, i figured that would be a last result. There isnt a command to hide players from from view?

BonzaiXxXSRStudios 09-20-2008 03:52 AM

Well nmv, i think i just figured out what the script is. showstats (0) it hides everything, including player.

oo_jazz_oo 09-20-2008 03:53 AM

PHP Code:

//#CLIENTSIDE
hideplayer(5); 

Would hide the player from everyones view for 5 seconds.

BonzaiXxXSRStudios 09-20-2008 05:20 AM

OK, now if you wanted a gani to loop repeatedly, how would use code that?


All times are GMT +2. The time now is 05:47 PM.

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