mob/verb/Send_File(client/person in world,filez as file)
switch(alert(person,"[usr] is trying to send you [filez]. Do you accept the file?","**File Transfer**","Yes","No"))
if("Yes")
alert(usr,"[person] accepted the file","File Accepted")
person<<ftp(filez)
if("No")
alert(usr,"[person] declined the file","File Declined")
Problem description:
I can execute this as a command from the client and I get a window that allows me to select the file but when I try to execute it as code :
Send_File()
It doesn't do the same thing. How can I get it to work this way inside my code? Thanks.