ID:264876
 
Code:
mob/Player/verb/CheckTab()
if(winget(src, "ChatTab","WorldChatOutput"))
winset(src, "MainWindow", "parent=macro;name=RETURN;command=Chat")
else
winset(src, "MainWindow", "parent=macro;name=RETURN;command=MapChat")


Problem description: I know everything is wrong. I'm trying to see if ChatTab (It's a Tab) is on the WorldChatOutput Tab or MapChatOutput. Then, if it's on WorldChatOuput we set the ENTER (RETURN) Macro command to Chat, if it's on MapChatOutput we set the ENTER (RETURN) Macro command to MapChat

winget the current-tab property, and assign as necessary.