![]() |
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
|
PHP Code:
|
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 |
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.
|
PHP Code:
|
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.
|
enablefeatures(); would be needed if you want to disable the default inventory.
|
Quote:
|
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.
|
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?
|
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. |
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?
|
Well nmv, i think i just figured out what the script is. showstats (0) it hides everything, including player.
|
PHP Code:
|
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.