ID:265015
 
Code:
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.
You have to pass it some arguments if you're calling it directly. Probably by calling input() as needed before calling the command and passing the results of input() through.
In response to Nadrew
Thanks man