DawnOfEarth Posted May 15, 2009 Author Share Posted May 15, 2009 case "/formguild" if HasItem(index, 1) >= 50000 then 'money if HasItem(index, 493) >= 1 then 'guilditem if GetPlayerLevel(index) > 49 then n = FindPlayer(GetPlayerName(index)) Guild = Trim(Parse(1)) Acronym = Trim(Parse(2)) Call TakeItem(index, 1, 50000, 0) Call TakeItem(index, 493, 1, 0) Call GlobalMsg(GetPlayerName(index) & " has formed His/Her own guild!", 15) If n > 0 Then SetPlayerGuildAcronym n, Acronym SetPlayerGuild n, Guild SetPlayerGuildAccess n, 9 SendPlayerData n SavePlayer n End If Else Call PlayerMsg(index, "You need to be at least level 50 to found a guild.", 15) End if Else Call PlayerMsg(index, "You need a guildscroll to form a guild.", 15) End If Else Call PlayerMsg(index, "You do not have enough gold to form a guild.", 15) End if Link to comment Share on other sites More sharing options...
Kirby Lord Posted May 15, 2009 Share Posted May 15, 2009 I don't think Hasitem is a function. Link to comment Share on other sites More sharing options...
Hippoman789 Posted May 15, 2009 Share Posted May 15, 2009 its not.checkplayerinventory probably works. Link to comment Share on other sites More sharing options...
Bobosk Posted May 15, 2009 Share Posted May 15, 2009 you're missing the bigger picture guys. Think: "Syntax!"The bottom half of his/her script i missing parenthesis Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now