Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   how do i disable the normal inventory (https://forums.graalonline.com/forums/showthread.php?t=80662)

GULTHEX 07-21-2008 12:10 AM

how do i disable the normal inventory
 
please sombody give me the code for it

xXziroXx 07-21-2008 12:14 AM

PHP Code:

//#CLIENTSIDE
function onCreated()
{
  
openURL("http://wiki.graal.net");


Don't be so damn ignorant.

The_Kez 07-21-2008 12:14 AM

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)

The_Kez 07-21-2008 12:17 AM

Quote:

Originally Posted by xXziroXx (Post 1406038)
Don't be so damn ignorant.

I noticed three seperate threads about practically the same topic from this person. :mad:

xXziroXx 07-21-2008 12:19 AM

Quote:

Originally Posted by The_Kez (Post 1406040)
I noticed three seperate threads about practically the same topic from this person. :mad:

Yeah, he's starting to piss me off quite badly. Asking for help is one thing, but this guy doesn't even listen.

GULTHEX 07-21-2008 12:22 AM

not helping xiro
and ty the kez

but can ya give me the exzact bitflag

The_Kez 07-21-2008 12:24 AM

Quote:

Originally Posted by GULTHEX (Post 1406044)
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.

Inverness 07-21-2008 12:59 AM

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.

excaliber7388 07-21-2008 01:27 AM

Quote:

Originally Posted by GULTHEX (Post 1406035)
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 :p

Knightmare1 07-21-2008 03:27 AM

this helped me:

Quote:

Originally Posted by Twinny (Post 1362374)
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;



Skyld 07-21-2008 12:05 PM

Quote:

Originally Posted by GULTHEX (Post 1406035)
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.


All times are GMT +2. The time now is 03:06 PM.

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