Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   disabling a+s (https://forums.graalonline.com/forums/showthread.php?t=18317)

LiquidIce00 12-05-2001 04:52 AM

disabling a+s
 
is there a way?
I think I seen it before but Im not sure how.

Aknts 12-05-2001 05:11 AM

Just make it so when they press it nothing happens or do you want it to be used for something?

btedji 12-05-2001 05:17 AM

You could also do it reverse, disable weapons and then use if(keydown(#)){} in your scripts, but that would be harder :D

LiquidIce00 12-05-2001 05:20 AM

I want it so if they hit A+S nothing happens (so they cant drop money and stuff)

Aknts 12-05-2001 05:22 AM

Just use keydown to cancel everything

LiquidIce00 12-05-2001 05:34 AM

u can do a

if (keydown(5)&&keydown(6)) { }

but it still calls the other thing

Saga2001 12-05-2001 02:46 PM

why not...
 
why not:

NPC Code:

if (keydown(5)&&keydown(6)) {hurt 0;}


Slaktmaster 12-05-2001 03:03 PM

good idea, but that will freeze the player for a short while, but it might be worth it. i dont know what liquid has in mind. :)

LiquidIce00 12-05-2001 07:12 PM

For like jail and stuff. so people cant drop . I think it will still be able to drop if u do that.. ill try it when i get home from school (im going now hehe)

grim_squeaker_x 12-05-2001 07:19 PM

NPC Code:
if (playerenters||timeout) {
for (i=0;i<itemscount;i++) take2 i;
timeout=0.05;
timereverywhere;
}

Would mean that all items laid on the ground would instantly be taken away, it doesn't stop people from laying their stuff on the ground but it does at leat prevent the from taking it back again.

btedji 12-05-2001 08:22 PM

Quote:

Originally posted by grim_squeaker_x
NPC Code:
if (playerenters||timeout) {
for (i=0;i<itemscount;i++) take2 i;
timeout=0.05;
timereverywhere;
}

Would mean that all items laid on the ground would instantly be taken away, it doesn't stop people from laying their stuff on the ground but it does at leat prevent the from taking it back again.

yea just make scripts that will remove what you dont want

Saga2001 12-06-2001 12:01 AM

well...
 
Quote:

Originally posted by grim_squeaker_x
NPC Code:
if (playerenters||timeout) {
for (i=0;i<itemscount;i++) take2 i;
timeout=0.05;
timereverywhere;
}

Would mean that all items laid on the ground would instantly be taken away, it doesn't stop people from laying their stuff on the ground but it does at leat prevent the from taking it back again.

the problem i have with that is if a player drops an item then they can claim they didn't have it like on newmain, i think the best way is hurt 0. and it does work i have tested it.

Andor_NPC-Admin1 12-06-2001 04:27 AM

meh thinks if you give the player a level 4 glove, or above, it will disable laying items =P

Falcor 12-06-2001 04:40 AM

setting a gani constantly might worik

royce 12-06-2001 05:23 AM

set a timeout on the main gani

Saga2001 12-06-2001 11:22 AM

Quote:

Originally posted by Andor_NPC-Admin1
meh thinks if you give the player a level 4 glove, or above, it will disable laying items =P
yes it does, but that does not happen unless you have such a high glove.


All times are GMT +2. The time now is 03:04 PM.

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