Thread: Scripts
View Single Post
  #2  
Old 05-30-2001, 02:53 AM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
Re: Scripts

Quote:
Originally posted by Huggles
Lets say we have a forge and we have supplies what kind of script would we make let say it takes 100 swings to make armor?
I'll warn you now. Many people around here want to do a trade skill without having to click their S button 10,000 times and get carpal tunnel syndrome.


But, anyways, here:

NPC Code:

if(washit){
this.swings ++;
play swordon.wav;
}
if(this.swings == 100){
putnpc blahblahblahblahetc.;
play chest.wav;
this.swings = 0;
}



Pretty basic, hope you find it useful.
Reply With Quote