Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Disable Rupee Dropping (https://forums.graalonline.com/forums/showthread.php?t=70125)

LeetKrew 11-15-2006 10:31 PM

Disable Rupee Dropping
 
What's the code to disable the S+A rupee dropping ability, and where would I put it?

Joey_P2P 11-15-2006 11:39 PM

Quote:

Originally Posted by LeetKrew (Post 1243763)
What's the code to disable the S+A rupee dropping ability, and where would I put it?

enablefeatures(float);

ex: enablefeatures(2 + 8 + 0x10); <- Disables Pause, Rating, and Dropping of Money.

Game features (for enablefeatures)

2 P key
4 Q key
8 R key
0x10 S+A combo
0x20 S+D combo
0x40 TAB key
0x80 chat text
0x100 hearts overhead
0x200 display of nicknames
0x400 toall/PM bubbles
0x800 right-click profiles
0x1000 emoticons
0x2000 Alt+5 snapshots
0x4000 Alt+8/9 zooming
0x8000 logframe
allfeatures all features

Chompy 11-15-2006 11:54 PM

hmm, when I use enablefeatures I always have to use like
PHP Code:

enablefeatures(allfeatures 0x10);
// for example 

because it enables, so I think you have to enable
all the features, then pick out the parts that is not going to be enabled.

PHP Code:

enablefeatures(allfeatures & ~(0x10 0x20)); 
/*
  would enable everything, except dropping of items (all items for S+A combo)         
  and S+D combo for switching weapons.
*/

// 0x10      S+A key combination for dropping items
// 0x20      S+D key combination for switching weapons 

Also, enablefeatures can go in a timeout, or when creating the script/initializing
(Not sure about this, I usually uses a timeout)

LeetKrew 11-16-2006 12:43 AM

Okay
 
I can put it in an NPC, but is there an easier way so that I don't have to put it in every level?

smirt362 11-16-2006 01:13 AM

Quote:

Originally Posted by LeetKrew (Post 1243830)
I can put it in an NPC, but is there an easier way so that I don't have to put it in every level?

You put it in a systems NPC that gets adds to every player when they login if they don't already have it.

Chompy 11-16-2006 03:26 PM

LeetKrew, you forgot too mention, are you doing this on a gserver or offline?

Crono 11-16-2006 03:29 PM

Quote:

Originally Posted by Chompy (Post 1244032)
LeetKrew, you forgot too mention, are you doing this on a gserver or offline?

Your signature is freaky. o.o

Chompy 11-16-2006 03:46 PM

Quote:

Originally Posted by Gerami (Post 1244034)
Your signature is freaky. o.o

*Points at Galdor* :p

don't got anything else funny ^^
I wish I was a gfx artist :[
(btw, I like my avatar, I'll make add somelike like my avatar in my sig)


All times are GMT +2. The time now is 11:50 PM.

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