This one to open -Staff/Boots :
PHP Code:
//Create Tools Array: to get all weapons
this.buttonArray = {
{0,"default","-Staff/Tools","Open/Close Staff Tools"},
{1,"boots","-Staff/Boots","Boots"},
{2,"stealth","-Staff/Stealth","Stealth"},
{3,"drag","-Staff/Drag","Drag"},
{4,"staffstick","-Staff/Stick","Staff Stick"},
{5,"punish","-Staff/Punish","Punish"}
};
//Then at bottom of code there is the script on staff tools button pressed
function onStaffToolsButtonAction(obj)
{
for (temp.i = 0; i < this.buttonArray.size(); i++)
{
if(this.buttonArray[i][0] == obj.getID)
{
if((@ obj.getWeapon).isOpenTool()){
obj.normalbitmap = "peria_stafftools-button-" @ obj.getName @ "-off.png";
obj.mouseoverbitmap = "peria_stafftools-button-" @ obj.getName @ "-hover.png";
obj.pressedbitmap = "peria_stafftools-button-" @ obj.getName @ "-on.png";
player.chat = obj.getName SPC ": Off";
if((@ obj.getWeapon) == this.name)
{
for (temp.e = 1; e < this.buttonArray.size(); e++){
temp.Window = new GuiBitmapButtonCtrl("StaffToolsW_Button_" @ temp.e);
temp.Window.hide();
}
}
(@ obj.getWeapon).closeTool();
}
else{
obj.normalbitmap = "peria_stafftools-button-" @ obj.getName @ "-on.png";
obj.mouseoverbitmap = "peria_stafftools-button-" @ obj.getName @ "-on.png";
obj.pressedbitmap = "peria_stafftools-button-" @ obj.getName @ "-off.png";
player.chat = obj.getWeapon SPC ": On";
if((@ obj.getWeapon) == this.name)
{
for (temp.e = 1; e < this.buttonArray.size(); e++){
temp.Window = new GuiBitmapButtonCtrl("StaffToolsW_Button_" @ temp.e);
temp.Window.show();
}
}
(@ obj.getWeapon).openTool();
}
}
}
}
and at top you saw the public function of -Staff/Boots but idk why they aren't linked. Also on others scripts, I can't join classes to weapon :O Idk why but I think its probably a prob in the server.