View Full Version : Help with SetMeleekill to ANY monster
I know there were an old command to SetMeleeKill that makes it attack any monster. Don't know if it's still funcional, but it worked in the past, but I can't remember nor find in forum.
Anyone knows?
I tried:
SetmeleeKill All
SetmeleeKill All creatures
SetmeleeKill All monsters
SetmeleeKill Any
SetmeleeKill Any creature
SetmeleeKill Any monser
thanks in advance, It's absolutely nescessary to me right now
Hans Henrik
01-24-2016, 18:50
i just scanned the source code for SetMeleeKill , and there is no such thing :(
very easy to change in source though,
in modCavebot
Public Function isMelee(idConnection As Integer, ByRef str As String) As Boolean
' get the name from an ID
Dim res As Boolean
If cavebotMelees(idConnection).Exists(LCase(str)) = True Then
isMelee = True
Else
isMelee = False
End If
End Function
change
If cavebotMelees(idConnection).Exists(LCase(str)) = True Then
to
If cavebotMelees(idConnection).Exists(LCase(str)) = True Or cavebotMelees(idConnection).Exists("*") = True Then
now "SetMeleeKill *" would make everything a target! :) i might actually make a pull request for this, i need it too
edit: just did, see https://github.com/blackdtools/Blackd-Proxy-CLASSIC/pull/40
and until its part of official blackd proxy, you can use this patch over blackd's tibia.exe , its 37.1 with minor modifications (the "setMeleeKill *" and fixed some 7.6 bugs and a bug with high exp ots and cavebot scripts now have their own folder in "cavebot\" and added $urlencode:str$ variable and some minor optimizations - most of it should be part of the next official blackd release anyway :) )
7988
It would be a really good addition. The more variables and functions, the better.
I had a list in mind of a lot of variables (easy and harder ones to make) that I would be glad if Daniel implemented, but I wasn't sure if he was still taking/accepting proposals.
I guess he still takes some on github though...
Maybe I'll make a thread some time later with all the proposals.
Btw, you're helping a lot the community, too bad it's kinda dead and/or with just "readers".
Hans Henrik
01-26-2016, 11:30
anyway, "attack everything" is implemented in 37.2 as: SetMeleeAttack *
Powered by vBulletin® Version 4.2.5 Copyright © 2021 vBulletin Solutions Inc. All rights reserved.