Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Features and Stats (https://forums.graalonline.com/forums/showthread.php?t=134266521)

blackbeltben 05-26-2012 09:41 PM

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?

Emera 05-26-2012 09:44 PM

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!";
  }



Crow 05-26-2012 10:15 PM

You can also disable unstick me by removing the unstick x, y and level from the server options.

blackbeltben 05-26-2012 10:50 PM

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

callimuc 05-26-2012 11:01 PM

Quote:

Originally Posted by Crow (Post 1695680)
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?

DrakilorP2P 05-26-2012 11:30 PM

Quote:

Originally Posted by blackbeltben (Post 1695682)
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?


All times are GMT +2. The time now is 02:56 AM.

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