View Single Post
  #3  
Old 12-11-2009, 05:21 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Its not,I've commented that out already, still does it.

This is the only other script part that has to do with the weapon really, it just disables certain things, and is where our enablefeatures stuff is.


PHP Code:
  if (player.level.name in this.levelnamez)
  {
    
//Settings for PK/Sparring/War arenas.
    
    
temp.features allfeatures 0x10 0x20 0x80;
    
    if (
"functions_options" in player.joinedclasses)
    {
      if (
player.getOptionsVariable("hidehearts")) temp.features -= 0x100;
      if (
player.getOptionsVariable("hidenicks")) temp.features -= 0x200;
    }
    
    
enablefeatures(temp.features);
    
    
client.swordOnly true;
    
triggerServer("weapon"this.name"remSwordWep");
  }
  else {
    
//Normal settings, disabling old inventory
    
    
enablefeatures(allfeatures 0x80);
    
    
client.swordOnly false;
    
triggerServer("weapon"this.name"addSwordWep");
  } 

There is an array of levels, and in those levels, this code is activated. It goes hand in hand with the SwordOnly script in the first post. The server trigger is to add or remove SwordOnly.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote