Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Help with this what did i do wrong


Recommended Posts

  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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...