Zetasis Posted February 18, 2011 Author Share Posted February 18, 2011 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 IfEnd 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 More sharing options...
iSKweek Posted February 18, 2011 Share Posted February 18, 2011 Add it to the client.You will need to create a packet. If you can't figure it out then PM me and I will type up an example when I get on my laptop. 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