Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-23-2001, 02:49 AM
9898 9898 is offline
Registered User
Join Date: Aug 2001
Location: United States
Posts: 31
9898 is on a distinguished road
Send a message via AIM to 9898 Send a message via Yahoo to 9898
Question hat script

i found this script but its too long and would take days to put up all hats
// NPC made by Adrenaline
if (playerchats && strequals(#c,knighthelmet)) {
set knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,samurai)) {
unset knighthelmet;
set samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,beret)) {
unset knighthelmet;
unset samurai;
set beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,bomyshell)) {
unset knighthelmet;
unset samurai;
unset beret;
set bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,gentleman)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
set gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,fool)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
set fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,pirate)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
set pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,bandana)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
set bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,cap)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
set cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,turban)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
set turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
set elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
set blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
set flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
set egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
set wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
set crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
set shroom;
unset ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
set ladyhat;
unset cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
set cowboy;
unset elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
set elf2;
unset goldhelmet;
}
if (playerchats && strequals(#c,elf)) {
unset knighthelmet;
unset samurai;
unset beret;
unset bomyshell;
unset gentleman;
unset fool;
unset pirate;
unset bandana;
unset cap;
unset turban;
unset elf;
unset blackbandana;
unset flower;
unset egg;
unset wingedknight;
unset crown;
unset shroom;
unset ladyhat;
unset cowboy;
unset elf2;
set goldhelmet;
}
see what i mean
how can i shorten it
__________________
Reply With Quote
 


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 08:10 PM.


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