Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-20-2008, 03:14 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
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
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
  #2  
Old 09-20-2008, 03:20 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
PHP Code:
setstatusimage("filename"); 
Thats to replace the state.png image, if thats what you mean by "default GUIs".
__________________

Reply With Quote
  #3  
Old 09-20-2008, 03:22 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
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
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #4  
Old 09-20-2008, 03:25 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
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.
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
  #5  
Old 09-20-2008, 03:28 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
PHP Code:
setletters("Filename"); 
Thats to set the qmenu and letters image. Or you coudl script your own q menu.
__________________

Reply With Quote
  #6  
Old 09-20-2008, 03:28 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
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.
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
  #7  
Old 09-20-2008, 03:29 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
enablefeatures(); would be needed if you want to disable the default inventory.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #8  
Old 09-20-2008, 03:31 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
Quote:
Originally Posted by oo_jazz_oo View Post
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.
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
  #9  
Old 09-20-2008, 03:32 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
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.
__________________

Reply With Quote
  #10  
Old 09-20-2008, 03:38 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
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?
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
  #11  
Old 09-20-2008, 03:42 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
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.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #12  
Old 09-20-2008, 03:45 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
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?
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
  #13  
Old 09-20-2008, 03:52 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
Well nmv, i think i just figured out what the script is. showstats (0) it hides everything, including player.
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
  #14  
Old 09-20-2008, 03:53 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
PHP Code:
//#CLIENTSIDE
hideplayer(5); 
Would hide the player from everyones view for 5 seconds.
__________________

Reply With Quote
  #15  
Old 09-20-2008, 05:20 AM
BonzaiXxXSRStudios BonzaiXxXSRStudios is offline
Since 2001
BonzaiXxXSRStudios's Avatar
Join Date: Jul 2007
Location: Atlanta, Georgia USA
Posts: 108
BonzaiXxXSRStudios is on a distinguished road
Send a message via MSN to BonzaiXxXSRStudios
OK, now if you wanted a gani to loop repeatedly, how would use code that?
__________________


Nutos (Jasler) and Yoke (lDarkDragonl) at Bonzai and Storm Reach Studios
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:11 AM.


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