ID:148306
 
var/items = {""} mob/verb/shop() usr << browse(items) mob/Topic(href,href_list[]) switch(href_list["action"]) if("buysword") usr << "You bought a sword!" else return ..()

I am trying to make me a shopkeeping thing in the browser but it says usr is undefined


Items
Sword Price : 500$ buy
</<>
try mob instead of usr.
In response to Drag0n
ive tried that.........ive tried every thing for user imaginable
In response to Jinjo21
Sorry.
try client/Topic instead of mob and then use mob instead of usr
Jinjo21 wrote:
I am trying to make me a shopkeeping thing in the browser but it says usr is undefined

But at which line does it say that?

Also, you should use <DM> around your code, not <code>, because <DM> strips out the HTML tags.

Lummox JR
In response to Lummox JR
Well i got the problem... thanks anyways