Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-21-2008, 12:10 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Unhappy how do i disable the normal inventory

please sombody give me the code for it
  #2  
Old 07-21-2008, 12:14 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
openURL("http://wiki.graal.net");

Don't be so damn ignorant.
__________________
Follow my work on social media post-Graal:Updated august 2025.
  #3  
Old 07-21-2008, 12:14 AM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Go to the Graal wiki and you can look up simple codes like that.
You can either do:

PHP Code:
disableweapons(); 
or

PHP Code:
enablefeatures(bitflag); 
(And go to the graal wiki to find which bitflags to enable and disable)

Last edited by The_Kez; 07-21-2008 at 12:22 AM.. Reason: Typo
  #4  
Old 07-21-2008, 12:17 AM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Quote:
Originally Posted by xXziroXx View Post
Don't be so damn ignorant.
I noticed three seperate threads about practically the same topic from this person.
  #5  
Old 07-21-2008, 12:19 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by The_Kez View Post
I noticed three seperate threads about practically the same topic from this person.
Yeah, he's starting to piss me off quite badly. Asking for help is one thing, but this guy doesn't even listen.
__________________
Follow my work on social media post-Graal:Updated august 2025.
  #6  
Old 07-21-2008, 12:22 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
not helping xiro
and ty the kez

but can ya give me the exzact bitflag
  #7  
Old 07-21-2008, 12:24 AM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Quote:
Originally Posted by GULTHEX View Post
not helping xiro
and ty the kez

but can ya give me the exzact bitflag
He is helping, if you go to the site he tells you to and in search type in 'enablefeatures', you'll find the exact bitflag for that. And who knows, maybe you'll find bitflags for other game features that you need to enable or disable and you'll be able to do that without having to post yet another forum topic.
  #8  
Old 07-21-2008, 12:59 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Stop making so many threads. The Wiki exists for a reason, use it.

If you can't figure out things on your own you shouldn't be trying to script.
__________________
  #9  
Old 07-21-2008, 01:27 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by GULTHEX View Post
please sombody give me the code for it
Hey, search the wiki, the forum, and other gs2 guides. There's help everywhere.

Check that first next time
  #10  
Old 07-21-2008, 03:27 AM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
this helped me:

Quote:
Originally Posted by Twinny View Post
Put it wherever: just make sure it's clientside. If you're gonna change it alot, try and make some kind of way to easily change between temporary and more permanent states.

Also,
Enable Features
PHP Code:
Value      Description
1     M key 
(map)
2     P key (pause)
4     Q key (weapon select)
8     R key (show ratings)
0x10     S+A key combination for dropping items
0x20     S
+D key combination for switching weapons
0x40     TAB key 
(if disabled then you cannot switch to the chat field with TAB)
0x80     Display of chat text
0x100     Display of the hearts over player heads
0x200     Display of nicknames
0x400     Toall
/PM-icons on the minimap
0x800     Right
-click on players opens their profile
0x1000     Emoticons 
(disable it if you want to do other stuff with control+keys)
0x2000     Alt+for making snapshots (deprecated)
0x4000     Alt+8/for zooming (deprecated)
0x8000     Allows F2 output (savelog()/echo())
allfeatures     All of the previously stated feature flags enabled 
Show Stats
PHP Code:
Value      Description
1     ASD
2     Icons 
(for rupeesbombsarrows)
4     Rupees count
8     Bombs count
0x10     Arrows count
0x20     Hearts
0x40     Alignment 
(apbar
0x80     Magic points 
(mpbar
0x100     Minimap 
(you can only hide ityou can't show it when the player pressed Alt+3)
0x200     Inventory NPCs
0x400     Players
0x800     Right-click on players opens their profile
allstats     All of the previously stated stats flags enabled 
I generally keep those commented somewhere near the code

in your case it would be:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
//bla bla bla;
  
enablefeatures(allfeatures-4); 
  
showstats(allstats & ~( 0x200 ));
  
//bla bla bla;

  #11  
Old 07-21-2008, 12:05 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by GULTHEX View Post
please sombody give me the code for it
Maybe being banned for a while might make you follow the rules. http://forums.graalonline.com/forums...cement.php?f=8
Quote:
1. Be clear on your ability level. In other words, do not post asking for scripts, or asking people to fix scripts that are above your ability level. If you are writing a script to aid learning, then try writing a simpler script. If you are looking for a script for a server, then the best solution is probably to hire a scripter.
Closed Thread


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 06:37 PM.


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