Auto-set teleportAuto_useChatCommand

Moderator: Moderators

Message
Author
pepinows
Human
Human
Posts: 20
Joined: 15 Aug 2008, 12:39
Noob?: No
Location: Brazil
Contact:

Auto-set teleportAuto_useChatCommand

#1 Post by pepinows »

If u're playing on a pvt server that has @warp command you can use it on your bot so it will change the teleportAuto_useChatCommand everytime you perform a mapchange

Code: Select all

automacro setwarpnew {
console /Map Change:/
call warpsetnew
}

macro warpsetnew {
	if	(@arg("$.lastLogMsg",1) =! Map) goto end
	if	(@arg("$.lastLogMsg",2) =! Change:) goto end
	$previousmap = @arg("@config(teleportAuto_useChatCommand)",1)
	$map = @warp @arg("$.lastLogMsg",3)
	if	($previousmap == $map) goto end
	do conf teleportAuto_useChatCommand $map
	goto end
:end
}
it does work but every mapchange it's called but its bery useful if u dont like creamy card etc
if someone could optimize this macro for me it would be great /ok
\o> Take it easy! <o/
Be happy D:

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: Auto-set teleportAuto_useChatCommand

#2 Post by help_us »

simple way.

Code: Select all

automacro setwarpnew {
   console /Map Change:/i
   call warpsetnew
}

macro warpsetnew {
   $map = $.map
   do conf teleportAuto_useChatCommand @warp $map

}
[Edited]
thx because remind me about @warp
Last edited by help_us on 30 Aug 2008, 10:34, edited 1 time in total.
Image
Image

pepinows
Human
Human
Posts: 20
Joined: 15 Aug 2008, 12:39
Noob?: No
Location: Brazil
Contact:

Re: Auto-set teleportAuto_useChatCommand

#3 Post by pepinows »

aw but this it will change the teleportAuto..command every time it's use a teleport i didn't like it because my bot tele's too much D: and it causes lag ;)


edit: help_us u forget @warp ;D
\o> Take it easy! <o/
Be happy D:

Post Reply