mob
verb
Tell()
set name = "tell"
set hidden = 1
reciever = input("Who are you sending this private message to?","Private Message Reciever")as mob in world
reciever_text = input("What will this private message say?","Pivate Message")as text
usr << "You tell <a href=?reciever>[reciever]</a>: [reciever_text]"
reciever << "<a href=?you>[src]</a> tells you: [reciever_text]"
client/Topic(href)
if(href == "reciever")
reciever_text = input("What will the private message say?","Private Message")as text
reciever = src
usr << "You tell <a href=?reciever>[reciever]</a>: [reciever_text]"
reciever << "<a href=?you>[src]</a> tells you: [reciever_text]"
if(href == "you")
your_text = input("What will the private message say?","Private Message")as text
reciever = src
usr << "You tell <a href=?reciever>[reciever]</a>: [your_text]"
reciever << "<a href=?you>[src]</a> tells you: [your_text]" </DM
I need this code seriously fixed... I can't figure it out...
ID:146864
![]() Jan 4 2005, 10:50 am
|
|
1. Show the link to the player.
2. Once they click the link, it will first call...
client.Topic("src=[0x3000000]&loc=[0x2000000]", list("src" = "[0x3000000]", "loc" = "[0x2000000]"), the obj)
Keep in mind, the [0x#######] will most likely be different.
3. The user sees the text, "You are looking at the obj from the turf..."
4. The object.Topic() will be called like this...
object.Topic("src=[0x3000000]&loc=[0x2000000]", list("src" = "[0x3000000]", "loc" = "[0x2000000]"))
5. The user sees the text, "The obj looks like a blob of paint."
Look up the \ref text macro. To get the object that it returns, use locate(). Also note that the brackets in [0x#######] aren't showing an embedded expression, thoes are literals. \[0x#######\]