View Single Post
  #2  
Old 01-29-2010, 05:13 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
Looks good, pretty sure you could get rid of the check using a for loop and do something like this instead:

PHP Code:
temp.scanguilds.loadfolder("levels/guilds/guild*.txt",0);
temp.checkguild "guild" replaceText(guildname" ""_") @ ".txt";
if (
checkguild in scanguilds) {
  
// guild found

Maybe a placeholder function for custom guild systems could be added as well.
__________________
Quote:
Reply With Quote