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 05-01-2005, 04:20 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
enablefeatures

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

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #2  
Old 05-01-2005, 04:23 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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)
Reply With Quote
  #3  
Old 05-01-2005, 04:41 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to 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
__________________

Reply With Quote
  #4  
Old 05-01-2005, 06:57 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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;
Reply With Quote
  #5  
Old 05-01-2005, 06:31 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
yay =]
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #6  
Old 05-01-2005, 10:10 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
If you are doing this in the GScript2 you should use |, not +. (For the correctness )
Reply With Quote
  #7  
Old 05-01-2005, 10:31 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Rick
If you are doing this in the GScript2 you should use |, not +. (For the correctness )
What?
__________________
Liek omigosh.

Reply With Quote
  #8  
Old 05-01-2005, 10:33 PM
Sildae Sildae is offline
Elven sorceress!
Sildae's Avatar
Join Date: Dec 2001
Location: Lothlòrien
Posts: 159
Sildae is on a distinguished road
Quote:
Originally Posted by Ajira
What?
It's a bitmask. Using arithmetical operators to emulate bit operations is so horribly old-gscript.
__________________
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
-- George Bernard Shaw
Reply With Quote
  #9  
Old 05-01-2005, 10:37 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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?
__________________
Liek omigosh.

Reply With Quote
  #10  
Old 05-01-2005, 11:14 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
NPC Code:
enablefeatures(1 | 2 | 4)

Reply With Quote
  #11  
Old 05-01-2005, 11:21 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Rick
NPC Code:
enablefeatures(1 | 2 | 4)

K thx.
__________________
Liek omigosh.

Reply With Quote
  #12  
Old 05-01-2005, 11:59 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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.
Reply With Quote
  #13  
Old 05-02-2005, 01:00 AM
xXDuMajuXx xXDuMajuXx is offline
Corsein
Join Date: Mar 2005
Location: Home
Posts: 278
xXDuMajuXx is on a distinguished road
Send a message via AIM to xXDuMajuXx Send a message via MSN to xXDuMajuXx
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.
__________________
Reply With Quote
  #14  
Old 05-03-2005, 03:44 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
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
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
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 01:07 AM.


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