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

[EO] Scripted Tile problem.


Zetasis
 Share

Recommended Posts

I am using EO v2.0 that Richey has so kindly released and I am trying to make a form that opens when you step on a scripted tile and when you click the button on the form it will take 2 item #3's(weird potion) and 1 item#1(gold) and give them player item #5(angel herbs). Everything works except for the button part. It doesn't take anything, give anything, or send the player message.

Here is what I have for the button:
```
Private Sub Command1_Click()
If HasItem(index, 3) Then
    If HasItem(index, 1) Then
    Call TakeInvItem(index, 3, 3)
    Call TakeInvItem(index, 1, 1)
    Call PlayerMsg(index, "You have created Angel Herbs!", Green)
    Call GiveInvItem(index, 5, 1, True)
Else
    End If
    End If
End Sub
```
Edit: I also thought I should mention I had to add the form in the server because I couldn't figure out how to get a from client side open when the tile script mod is in the server. I'm not sure if this would cause problems or not but I thought I would through it out there.
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...