Kimimaru Posted July 2, 2009 Author Share Posted July 2, 2009 Hey! As many of you already know, in the current trade system, a player types "/trade (playername)," and then a trade request comes up for the other player on the chatbox. That player can either accept it by typing "/accept" or decline it by typing "/decline."I want to change it to make it so that, instead of it appearing on the chatbox, a message box or something pops up on the screen for the other player. It would say something like "(Username) wishes to trade with you." Under that, it would have buttons that say "Accept" and "Decline." When you click "Accept," of course, it would tell the other player that "(username) has accepted your trade offer" in the chatbox. Then, the trade would commence. When you click "Decline," it would tell the other player that "(username) has declined your trade offer" in the chatbox.Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
goku1993 Posted July 2, 2009 Share Posted July 2, 2009 i v done this it s pretty simple,but i forgot if the tutorial was about party or trade but i found one on here i think it was a party box tutorial then i used the party tutorial to make a trade one,commands are pretty simple. Link to comment Share on other sites More sharing options...
Kimimaru Posted July 3, 2009 Author Share Posted July 3, 2009 Okay, I appreciate the help, but does anyone think he/she can give me instructions on how to go about doing this, please? Link to comment Share on other sites More sharing options...
Lenton Posted July 3, 2009 Share Posted July 3, 2009 Well you should know that you need to do a source edit to make this happen.If you keep learning the Eclipse source then it shouldn't take long to understand and you will then find that this is very simple to do.I forget how to code in VB6 but you could just create a standard VB6 message window to pop up. Link to comment Share on other sites More sharing options...
goku1993 Posted July 3, 2009 Share Posted July 3, 2009 does this help? http://www.touchofdeathforums.com/smf/index.php/topic,22148.0.html Link to comment Share on other sites More sharing options...
Kimimaru Posted July 3, 2009 Author Share Posted July 3, 2009 I've already checked that out, but it doesn't do quite what I want. I believe that the tutorial allows you to trade with a player anywhere, and I only want you to be able to trade with someone else in the same map. I'll take another look at it and see if I can change it to my needs, though, thanks. Link to comment Share on other sites More sharing options...
Patrick Posted July 4, 2009 Share Posted July 4, 2009 You could make it so when right click on a person it brings up a menu at the position you clicked (like runescape) and have options like trade or follow or walk here. Link to comment Share on other sites More sharing options...
minipimp Posted July 5, 2009 Share Posted July 5, 2009 @üÑÂøчġġεт:> You could make it so when right click on a person it brings up a menu at the position you clicked (like runescape) and have options like trade or follow or walk here.could you explain on how to do that ?a tut of somekind or a lead on where to start that, so when i right click some were a box comes up and states (if item below player , pick up(getplayeritem) and if thats not possible atm then a box that comes up when you right click a PLAYER and stats trade or walke here, ( i am familiar with the source and i have use the ""click to walk " edit before.please ., i WOULD LOVE to find out how to do this so i can apply it to my game, and if you just know a littlebit , even if its a small bit of info, that would help .Thanks Link to comment Share on other sites More sharing options...
Owen F Posted July 5, 2009 Share Posted July 5, 2009 source it.Is /trade a scripted command? because if it is you could maybe make it call a custom menu and work from there. Link to comment Share on other sites More sharing options...
minipimp Posted July 5, 2009 Share Posted July 5, 2009 now , when i call a custom menu ,sorry if this is a little off topic, but how do i make it so when the .small option box appears when "Trade" is clicked , to send the trade request to that player?other words how do i make it call that? Link to comment Share on other sites More sharing options...
Patrick Posted July 5, 2009 Share Posted July 5, 2009 Kris has it in his game so it is possible. i'll go and try to write up a script. Link to comment Share on other sites More sharing options...
minipimp Posted July 5, 2009 Share Posted July 5, 2009 Thanks , that would be great. im working all night on my project tonight and that's one thing that just has been on my mind for so long.Thanks ;)) Link to comment Share on other sites More sharing options...
Kimimaru Posted July 6, 2009 Author Share Posted July 6, 2009 Okay, so does anyone else think they know how to do this? Link to comment Share on other sites More sharing options...
goku1993 Posted July 7, 2009 Share Posted July 7, 2009 hmm did you try finding the command in the source for /join cause you could put somthing like if the code of the message about /join or leaves appear show a picture box that may work i ll check it out later. Link to comment Share on other sites More sharing options...
Kimimaru Posted July 8, 2009 Author Share Posted July 8, 2009 The command "/join" pertains to parties by default. I'm trying to eliminate the "/accept" and "/decline" commands and instead make it so that you can simply click on an Accept or a Decline box to accept or decline the trade. The only command that you'd have to type in would be "/trade (username)" if you wanted to start a trade. I appreciate the reply, though. Link to comment Share on other sites More sharing options...
goku1993 Posted July 8, 2009 Share Posted July 8, 2009 i know i ment /accept and /decline accept and decline buttons are easy first go into the accept and decline code take what you need then use the if (accept and decline code) then image1.visible = true then on it you add accept and decline or if you want something easier use the message that appears in box and type when it appears show the image Link to comment Share on other sites More sharing options...
Kimimaru Posted July 9, 2009 Author Share Posted July 9, 2009 Thanks; I think I almost got it. There's still a problem, though. I made a separate form for the Trade Box. When you type "/trade", I want the trade box to come up instead of the text. I don't know how I can send the trade box to the other player only, because if I simply typed **frmTradeBox.Visible = True** then it would only come up on your screen. Link to comment Share on other sites More sharing options...
emblem Posted July 12, 2009 Share Posted July 12, 2009 @Kimimaru:> Thanks; I think I almost got it. There's still a problem, though. I made a separate form for the Trade Box. When you type "/trade", I want the trade box to come up instead of the text. I don't know how I can send the trade box to the other player only, because if I simply typed **frmTradeBox.Visible = True** then it would only come up on your screen.This is about where you find out how packets work, and how the server communicates with clients. Link to comment Share on other sites More sharing options...
damian666 Posted July 12, 2009 Share Posted July 12, 2009 you basicly let the server send a packet with the info on who, what, and the cmd to show the players tradebox.thats it basicly, but you should look at it yourself a bit, telling you wont teach ya a thing…Damian666 Link to comment Share on other sites More sharing options...
Kimimaru Posted July 13, 2009 Author Share Posted July 13, 2009 Okay, thanks! I'll try it out soon. Sorry, I haven't been able to get on the computer very often in the last couple of days. Link to comment Share on other sites More sharing options...
Kimimaru Posted July 15, 2009 Author Share Posted July 15, 2009 I've tried figuring it out, but I couldn't find out how the packets work. I'm not very familiar with sending and receiving packets, although I know that I'd need to know a little something if I wanted to get this to work. Also, I believe that you would have to make numerous edits to make this work, but I'm not completely certain. Anyway, do you think I can receive some more help with this, please? 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