Raised This Month: $51 Target: $400
 12% 

!ztele --> !tp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diablo3
Senior Member
Join Date: Feb 2010
Old 02-23-2010 , 10:22   !ztele --> !tp
Reply With Quote #1

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...
Diablo3 is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 02-23-2010 , 10:43   Re: !ztele --> !tp
Reply With Quote #2

http://helgeby.no-ip.org/zrdev/hg/hg.../ztele.inc#l59

ztele.inc:
PHP Code:
RegConsoleCmd(SAYHOOKS_KEYWORD_ZTELEZTeleCommand"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.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Diablo3
Senior Member
Join Date: Feb 2010
Old 02-23-2010 , 11:27   Re: !ztele --> !tp
Reply With Quote #3

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 ?...

Last edited by Diablo3; 02-23-2010 at 11:29.
Diablo3 is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 02-23-2010 , 12:55   Re: !ztele --> !tp
Reply With Quote #4

Of course you have to recompile.

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

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Diablo3
Senior Member
Join Date: Feb 2010
Old 02-23-2010 , 13:03   Re: !ztele --> !tp
Reply With Quote #5

so which .sp file or what exactly I should compile ?
Diablo3 is offline
xiloid
Member
Join Date: Sep 2009
Location: Ukraine
Old 02-23-2010 , 14:09   Re: !ztele --> !tp
Reply With Quote #6

Simple method:
(type in console)

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

Thats all, and nothing to recompile
xiloid is offline
Diablo3
Senior Member
Join Date: Feb 2010
Old 02-23-2010 , 14:15   Re: !ztele --> !tp
Reply With Quote #7

Quote:
Originally Posted by xiloid View Post
Simple method:
(type in console)

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

Thats all, and nothing to recompile
for me it's simple, but for others players it's too difficult
Diablo3 is offline
Diablo3
Senior Member
Join Date: Feb 2010
Old 02-23-2010 , 15:05   Re: !ztele --> !tp
Reply With Quote #8

omg... it's working
zombiereloaded.sp must be recompiled ;)
Diablo3 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode