http.get is now operational
This commit is contained in:
@@ -4,11 +4,13 @@ function login.interface(actor, place)
|
||||
gui.menu_item("cb_becomeplayer", "Become a Player")
|
||||
gui.menu_item("cb_p123", "Print 1, 2, 3")
|
||||
gui.menu_item("cb_p123_nopredict", "Print 1, 2, 3 nopredict")
|
||||
gui.menu_item("cb_uglytimedaemon","Start the Time Daemon")
|
||||
end
|
||||
|
||||
function login.cb_becomeplayer(actor, place, dialog)
|
||||
actor.kind='P'
|
||||
actor.Count={} setmetatable(actor.Count,NilIsZero)
|
||||
actor.Food={} setmetatable(actor.Food,NilIsZero)
|
||||
tangible.setclass(actor, player)
|
||||
tangible.animate(actor,{action="warp",plane="main",x=0,y=0,z=0})
|
||||
end
|
||||
@@ -30,21 +32,3 @@ function login.cb_p123_nopredict(actor, place, dialog)
|
||||
print(3)
|
||||
end
|
||||
|
||||
-- this is function documentation for setfoo.
|
||||
function setfoo(n)
|
||||
if (n == nil) then
|
||||
error("setfoo(n) - n must be an integer")
|
||||
end
|
||||
nopredict()
|
||||
tangible.actor().inventory.foo = n
|
||||
end
|
||||
|
||||
function buildq()
|
||||
return tangible.build{class="login", x=10, y=0, z=0, plane="nowhere", graphic="what"}
|
||||
end
|
||||
|
||||
function htest()
|
||||
print("hi")
|
||||
pprint(http.get{url="https://mit.edu/"})
|
||||
print("bye")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user