mob/verb
Swap_Files(mob/m in view(usr),F as file)
switch(alert(m,"[usr] is offering to swap [F] with you. Would you like to trade?","File Swap","Yes","No"))
if("Yes")
alert(m,"Select a file to swap with [usr]'s [F].","File Swap")
var/F2 as file
switch(alert(usr,"[m] offered [F2] in return. Do you accept these conditions? (Your [F] for [m]'s [F2])","File Swap","Yes","No"))
if("Yes")
m<<ftp(F)
usr<<ftp(F2)
alert(m,"[usr] accepted the file","Files Accepted")
alert(usr,"[m] accepted the file","Files Accepted")
if("No")
alert(m,"[usr] declined the file","Files Declined")
if("No")
alert(usr,"[m] declined the file","Files Declined")
Problem description:
When it comes to [M] selecting a file to swap for [usr]'s file. It doesn't prompt to select a file, it prompts to save [usr]'s file.