PDA

View Full Version : !ztele --> !tp


Diablo3
02-23-2010, 10:22
Hello,
!ztele is very useful and many times usable command, but it's so difficult quickly to type in chat when really need to teleport.

So where i could change !ztele command to !tp ( when typing in chat ) or add !tp that both command work together ?

It's so many files are in ZR , i try change some files, but not lucky...

rhelgeby
02-23-2010, 10:43
http://helgeby.no-ip.org/zrdev/hg/hgwebdir.cgi/zr-3.0-b2/file/cf5035a8414e/src/zr/ztele.inc#l59

ztele.inc:
RegConsoleCmd(SAYHOOKS_KEYWORD_ZTELE, ZTeleCommand, "Teleport back to spawn if you are stuck.");

Duplicate this line and replace SAYHOOKS_KEYWORD_ZTELE with "tp". Then you'll get an alias for ztele while keeping the old one.

Diablo3
02-23-2010, 11:27
Stupid question , maybe I have to recompile some plugins or what ? I try to do what you said, not working. I commented the code line, to look if i do right, !ztele still working, i delete ztele.inc file , but !ztele still working :)...restarted server several time... whats wrong ?...

rhelgeby
02-23-2010, 12:55
Of course you have to recompile. :P

The source is ready to be compiled in the latest patch, you just need the sdk hooks extension include file.

Diablo3
02-23-2010, 13:03
so which .sp file or what exactly I should compile ? :oops:

xiloid
02-23-2010, 14:09
Simple method:
(type in console)

bind "k" "say !ztele"
k - any key to bind

Thats all, and nothing to recompile :D

Diablo3
02-23-2010, 14:15
Simple method:
(type in console)

bind "k" "say !ztele"
k - any key to bind

Thats all, and nothing to recompile :D

for me it's simple, but for others players it's too difficult :)

Diablo3
02-23-2010, 15:05
omg... it's working :)
zombiereloaded.sp must be recompiled ;)