Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   enablefeatures (https://forums.graalonline.com/forums/showthread.php?t=58808)

coreys 05-01-2005 04:20 AM

enablefeatures
 
I realize somewhat what enablefeatures is supposed to do but I dont know how to use it, can someone explain for me?

KuJi 05-01-2005 04:23 AM

Quote:

Originally Posted by coreys
I realize somewhat what enablefeatures is supposed to do but I dont know how to use it, can someone explain for me?


Quote:

Originally Posted by newfeatures2002.txt
- scriptfunction for disabling features
enablefeatures flags;
A description of all flags:
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+5 for making snapshots
0x4000 - Alt+8/9 for zooming
0x8000 - the logframe where savelog stuff is added
allfeatures:
So to disable the profile click you can do:

enablefeatures allfeatures-0x800;

If you want to disable everything except the
tabulator key, then do:

enablefeatures 0x40;




That should help. (Rofl - Originally posted by newfeatures2002.txt)

CheeToS2 05-01-2005 04:41 AM

Examples (read what KuJi posted first):

enablefeatures 1+0x200+0x400; // this will enable ONLY the M key, displaying nicknames, and toalls/PM-icons

enablefeatures allfeatures-0x200; // this will enable everything EXCEPT displaying nicknames

KuJi 05-01-2005 06:57 AM

Quote:

Originally Posted by CheeToS2
Examples (read what KuJi posted first):

enablefeatures 1+0x200+0x400; // this will enable ONLY the M key, displaying nicknames, and toalls/PM-icons

enablefeatures allfeatures-0x200; // this will enable everything EXCEPT displaying nicknames


Their was examples already. Though, more doesn't hurt ;-).
Quote:

Originally Posted by KuJi
So to disable the profile click you can do:

enablefeatures allfeatures-0x800;

If you want to disable everything except the
tabulator key, then do:

enablefeatures 0x40;


coreys 05-01-2005 06:31 PM

yay =]

Rick 05-01-2005 10:10 PM

If you are doing this in the GScript2 you should use |, not +. (For the correctness :))

Ajira 05-01-2005 10:31 PM

Quote:

Originally Posted by Rick
If you are doing this in the GScript2 you should use |, not +. (For the correctness :))

What?

Sildae 05-01-2005 10:33 PM

Quote:

Originally Posted by Ajira
What?

It's a bitmask. Using arithmetical operators to emulate bit operations is so horribly old-gscript.

Ajira 05-01-2005 10:37 PM

Quote:

Originally Posted by Sildae
It's a bitmask. Using arithmetical operators to emulate bit operations is so horribly old-gscript.

So how am I supposed to use it?

Rick 05-01-2005 11:14 PM

NPC Code:
enablefeatures(1 | 2 | 4)


Ajira 05-01-2005 11:21 PM

Quote:

Originally Posted by Rick
NPC Code:
enablefeatures(1 | 2 | 4)


K thx.

KuJi 05-01-2005 11:59 PM

Quote:

Originally Posted by Rick
NPC Code:
enablefeatures(1 | 2 | 4)


Does it need a space or can it be like this:

NPC Code:
enablefeatures(1|2|4)



Just wondering.

xXDuMajuXx 05-02-2005 01:00 AM

Quote:

Does it need a space or can it be like this:

NPC Code:

enablefeatures(1|2|4)


Just wondering.
Probably you can, but what would be the use? Spaced format forever.

coreys 05-03-2005 03:44 PM

I am gs2, but I'm doing most of my scripts in GS1, and backing them up in gs2 until gs2 is in the normal graal client so everybody can experience it. :3


All times are GMT +2. The time now is 12:51 AM.

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