• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved hotkeys

vagnerz1k

New Member
Joined
Nov 5, 2014
Messages
35
Reaction score
0
Hello all good with you guys?
I'm here to ask for help to put my server with runes off target (used in players) and on target (used in bixos)
if someone does not want intendeu when a rune is used for example in the sd pvp can only be attacked if you have selected as use with also can not use the batle if monster poses in use both on target as with use. Sorry about my english
 
I think got it wrong ...
let hotkeyAimbotEnabled = "no" can not use runes as monster on target much less runes as uh itself
I want only when you attack a player can not use the rune on target
 
You can add this in the attack rune scripts (under function onCastSpell).
Code:
if isPlayer(getCreatureTarget(cid)) and getCreatureTarget(cid) ~= getTopCreature(variantToPosition(var)).uid then
       doPlayerSendCancel(cid, "You can not shoot this directly on players.")
       return false
end
 
worked the way I wanted but you can put not to use the batle also because if they open the batle and stay without selecting the player to sd will go and the rune can go on target in monster
 
Last edited:
What do you mean? It will only cancel if the target is a player and you shouldn't be able to use it with hotkeys and in the battle window like this.
 
What I mean is that he has to find another way to check if the player is player because if you have no target it will not go in and monster she can go the normal
with the single player target that is not possible or batle or say that he did to the source but do not know how and svn is offline
 
Code:
if isPlayer(getCreatureTarget(cid)) == TRUE and getCreatureTarget(cid) ~= getTopCreature(variantToPosition(var)).uid then
      doPlayerSendCancel(cid, "You can not shoot this directly on players.")
      return FALSE
end
 
You can't use it on hotkeys and you also can't use it in the battle window, only on the player itself.
With monsters it still works all ways.
 
It's the way that the script only cancels the batle if the player is selected you can put to use to prevent even without selecting the player?
 
Back
Top