This KI command takes the form "/link [AgeName]" and will link you to whatever Age you specify. Be careful, this does not provide any checks, and assumes that you are smart enough to link only to an Age that actually exists.
You will need the full KI from ABM in order to use this hack. Add the following code to the ICheckChatCommands section of xKI.py.
- Code: Select all
if string.lower(chatmessage).startswith('/link '):
age = chatmessage[len('/link '):]
vault = ptVault()
info = ptAgeInfoStruct()
info.setAgeFilename(age)
vLink = vault.getOwnedAgeLink(info)
if (not vLink):
link = ptAgeLinkStruct()
link.setAgeInfo(info)
link.setSpawnPoint(ptSpawnPointInfo("Default", "LinkInPointDefault"))
link.setLinkingRules(PtLinkingRules.kOriginalBook)
else:
link = vLink.asAgeLinkStruct()
mgr = ptNetLinkingMgr()
mgr.setEnabled(1)
mgr.linkToAge(link)
Thanks to Hoikas for reviewing this and offering suggestions.
This code is provided with no warranty in the hopes that it might be useful. Always back up your files before hacking.
General rule: if you don't understand the hack, don't try it. There is more than enough information here about how to install it if you know what you are doing.
Have fun
