ID:167079
 
Is there anyway somebody could help me with a HTML Trade File system, to where it displays both files in a window and both players have to press ok before the files are traded.
Evidence wrote:
Is there anyway somebody could help me with a HTML Trade File system, to where it displays both files in a window and both players have to press ok before the files are traded.


Try to use this:

Dantom.htmllib
In response to Y2kEric
That library is very big, it would help if you could point out the part that will acutaly HELP me.
In response to Evidence
Read the readme.txt files that come with it.
In response to Y2kEric
I looked over the whole thing, nothing i saw really has anything to do with the topic. Dantom's html Form Demo has more to do with what im trying to do, but even that i can't really get anything out of. Im gunna needs someone who know's what there talking about to actualy HELP me.
In response to Evidence
I suppose you'd be doing so by sending both mobs an alert that asks them if they want to complete the trade. If they do, send the HTML.

  if(alert("complete trade?",,"yes","no")=="yes")
if(alert(m,"complete trade?",,"yes","no")=="yes")


To show the trade in a window, use the browse() proc.
In response to DivineO'peanut
Well i got a whole verb for a secure file trade coded, it's just i want both users to be looking at the same window, and have the icosn display'd. And when one players click on, it hsows under their name "Accepted Trade" then the other person has to accept for that actualy trade to go through. If that is even possible, lol.
In response to Evidence
It is possible, and it does not require htmllib, I don't think. I don't really know what htmllib is for, to be honest. The only Dantom library I've ever found useful is CGI, and that's because it activates some sort of voodoo portion of BYOND's functionality.

I wrote a little bit of stuff out for you, but I quickly realized that it would take more time than I want to spend working on it. Use popup HTML windows, client/Topic, and probably a /trade datum to keep track of the trade's status, etc. Good luck!