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

[EO 2.0/3.0] Guilds


Scott
 Share

Recommended Posts

  • Replies 328
  • Created
  • Last Reply

Top Posters In This Topic

```
    'Change 1 to item number
    itemamount = HasItem(Founder_Index, 1)

    'Change 5000 to amount
    If itemamount = 0 Or itemamount < 5000 Then
        PlayerMsg Founder_Index, "Not enough Gold.", BrightRed
        Exit Sub
    End If

    'Change 1 to item number 5000 to amount
    TakeInvItem Founder_Index, 1, 5000

```
So if I wanted to have a second requirement to make guild, let's say:
1\. Need to have 5000 gold
2\. Need to have 1 of Guild Creation Recommendation

Attempt:

>! In **Sub MakeGuild**:
>! Under:
```
    Dim tmpGuild As GuildRec
    Dim GuildSlot As Long
    Dim GuildFileId As Long
    Dim i As Integer
    Dim b As Integer
>! ```
Add:
```
    Dim itemamount As Long
    Dim itemamount2 As Long
>! ```
After:
```
    If Name = "" Then
        PlayerMsg Founder_Index, "Your guild needs a name!", BrightRed
        Exit Sub
    End If
>! ```
Add:
```
    'Change 1 to item number
    itemamount = HasItem(Founder_Index, 1)
>!     'Change 2 to item number 2
    itemamount2 = HasItem(Founder_Index, 2)

    'Change 5000 to amount of Item #1
    If itemamount = 0 Or itemamount < 5000 Then
        PlayerMsg Founder_Index, "Not enough Gold.", BrightRed
        Exit Sub
    End If
>!     'Change 1 to amount of Item #2
    If itemamount2 = 0 Or itemamount2 < 1 Then
        PlayerMsg Founder_Index, "and you do not have the Item2Name.", BrightRed
        Exit Sub
    End If

    'Change 1 to item number 5000 to amount of Item #1
    TakeInvItem Founder_Index, 1, 5000
>!     'Change 2 to item number 1 to amount of Item #2
    TakeInvItem Founder_Index, 2, 1
>! ```

^ Is this valid?
Link to comment
Share on other sites

People help : While trying to install this lesson I have POPs up here is the error on the server side
[![](http://s019.radikal.ru/i625/1204/2f/28f384be87b4.jpg)](http://www.radikal.ru)

http://s019.radikal.ru/i625/1204/2f/28f384be87b4.jpg
Link to comment
Share on other sites

You didn't add this server side.
–------------------------------------------------------------

FIND:

```
    ' General
    Name As String * ACCOUNT_LENGTH
    Sex As Byte
    Class As Long
    Sprite As Long
    Level As Byte
    exp As Long
    Access As Byte
    PK As Byte
```
UNDER ADD:

```
    GuildFileId As Long
    GuildMemberId As Long
```

–-----------------------------------------------------------
Link to comment
Share on other sites

Level 20 req: Just add a check in the createguild sub, exitsub if there under 20.

Npc: Would need to do that on your own, I don't mind doing easy requests but that one is more than I'm willing to do atm.
Link to comment
Share on other sites

@Scott:

> Level 20 req: Just add a check in the createguild sub, exitsub if there under 20.
>
> Npc: Would need to do that on your own, I don't mind doing easy requests but that one is more than I'm willing to do atm.

ok tnx any way ^^
Link to comment
Share on other sites

@Moral Sub ToggleGuildAdmin

@We9mak:

> Now the problem of how to fix)
> [![](http://s019.radikal.ru/i608/1204/9e/2b78bbc024dc.png)](http://www.radikal.ru)

You delete your old accounts? Where is the error pointing to?
Link to comment
Share on other sites

That's where you tell it what player you want to open the admin panel for, no need to define it per say just change it where are you trying to call this?  If you don't understand the player index system your in for a world of hurting with any edit your trying to do on your own.
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...