Teleport and Summon with Topic in Developer Help
|
|
Hello, I need to do one Teleport and Summon verb with topic, but It's not working... I made it:
Summon2() set desc = "() Create an object of any type" set name = "Summon2" set category = "Staff" if(usr.ADM == "OFF") usr<<"Você não é ADM e nao pode usar o comando" del(usr) var/html = "<html><body bgcolor=black text=#CCCCCC link=white vlink=white alink=white>" var/L[] = PlayernoMundo for(var/X in L) html += "<a href=byond://?src=\ref[src];action=summon;type=[X]>[X]</a><br>" usr << browse(html,"window=info")
client/Topic(href,href_list[],hsrc) switch(href_list["action"]) if("summon") var/mob/E = href_list["type"] E<<"Pronto" E.loc = locate(1,1,1)
|
But ingame appears Runtime error: cannot modify Luan.loc
anyone can help me make it?
Best Resgards,
Luan
Merry Xmas btw
|