Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-26-2012, 09:41 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
Features and Stats

Can someone Please fix this for me so it also disables the Emotes/Pause/'m' map

I messed with it all day but no matter what number i take off it doesn't seem to work

PHP Code:
enablefeatures(allfeatures 0x10 0x20 0x100 0x200);
showstats(allstats  0x10 0x20 0x40 0x80); 

Also how do I disable unstick me?
Reply With Quote
  #2  
Old 05-26-2012, 09:44 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
HTML Code:
enablefeatures(int flags)		 Enable/disable client features
Flags can consist of:

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+5 for making snapshots (deprecated)
0x4000	 Alt+8/9 for zooming (deprecated)
0x8000	 Allows F2 output (savelog()/echo())
allfeatures	 All of the previously stated feature flags enabled
http://www.graal.net/index.php/Creat.../Script/Client

You can disable unstick me by checking if the chat bar contains unstick me or unstuck me and clear the chat bar text.

PHP Code:
function ChatBar.onAction() {
  if (
ChatBar.text == "unstick me" || ChatBar.text == "unstuck me") {
    
ChatBar.text "That feature is disabled!";
  }

Reply With Quote
  #3  
Old 05-26-2012, 10:15 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
You can also disable unstick me by removing the unstick x, y and level from the server options.
Reply With Quote
  #4  
Old 05-26-2012, 10:50 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
so why doesnt this work?!

disablefeatures(allfeatures - 1 - 2 - 4 - 0x1000);

i even tried disablefeatures(allfeatures);

IM SO CONFUSED ON HOW TO ADD/REMOVE THEM
Reply With Quote
  #5  
Old 05-26-2012, 11:01 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Crow View Post
You can also disable unstick me by removing the unstick x, y and level from the server options.
Wouldn't that have the "Failed" text pop up on the bottom screen?
__________________
MEEP!
Reply With Quote
  #6  
Old 05-26-2012, 11:30 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by blackbeltben View Post
so why doesnt this work?!

disablefeatures(allfeatures - 1 - 2 - 4 - 0x1000);

i even tried disablefeatures(allfeatures);

IM SO CONFUSED ON HOW TO ADD/REMOVE THEM
disablefeatures() isn't a script function that exists. You have to use enablefeatures(). If you want to try disabling everything, try enablefeatures(0).

And if it's not working, maybe you forgot to put //#CLIENTSIDE?
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:33 AM.


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