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-06-2012, 04:55 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Era uses a custom movement system.

You can disable the sword with something like replaceani("sword", "idle"); but I'm not sure that this is still the preferred way as it has some unintended consequences.
__________________
Reply With Quote
  #2  
Old 05-06-2012, 08:59 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
replaceani("sword", "idle"); but I'm not sure that this is still the preferred way as it has some unintended consequences.
That will make idle players and NPCs "hurt" you if you walk into them, it's completely unnecessary to do though. You can also stick with default movement as well.

On Zodiac we use this (to disable nearly everything):

-System:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
showstats(1024);
  
enablefeatures(allfeatures-1-2-4-8-0x100-0x200-0x400-0x800-0x2000-0x40-0x10-0x20);
  
disableselectweapons();
  
disableweapons();

Documentation:
http://wiki.graal.net/index.php/Enablefeatures
http://wiki.graal.net/index.php/Showstats

Then we have custom systems to trigger WeaponFired/Cast on weapons.
__________________
Quote:
Reply With Quote
  #3  
Old 05-06-2012, 10:19 AM
Fysez Fysez is offline
Banned
Join Date: Apr 2012
Posts: 89
Fysez has a little shameless behaviour in the past
Quote:
Originally Posted by cbk1994 View Post
Era uses a custom movement system.

You can disable the sword with something like replaceani("sword", "idle"); but I'm not sure that this is still the preferred way as it has some unintended consequences.
Quote:
Originally Posted by fowlplay4 View Post
That will make idle players and NPCs "hurt" you if you walk into them, it's completely unnecessary to do though. You can also stick with default movement as well.

On Zodiac we use this (to disable nearly everything):

-System:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
showstats(1024);
  
enablefeatures(allfeatures-1-2-4-8-0x100-0x200-0x400-0x800-0x2000-0x40-0x10-0x20);
  
disableselectweapons();
  
disableweapons();

Documentation:
http://wiki.graal.net/index.php/Enablefeatures
http://wiki.graal.net/index.php/Showstats

Then we have custom systems to trigger WeaponFired/Cast on weapons.
Hey! Thanks so much! That helped! Now there is one other problem I can't seem to figure out..

//#CLIENTSIDE
function onCreated() {
showstats(0x200); //Inventory NPC's
enablefeatures(allfeatures-4); // Disabled S and D
disableweapons();
}

The problem is, Now I can't use my inventory (Q) and I can't use items (D)
Would you know how to fix this? I've been looking into it but can't seem to figure it out.
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:30 PM.


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