• 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!

PVP Only Spells?

itallionstallio

New Member
Joined
Feb 14, 2010
Messages
2
Reaction score
0
Hi people,
I was just wondering if it is at all possible to create a spell that is only usable on other players. I imagine there is a way because certain spells say "This spell is only usable on creatures" so I assume there is a way to make a spell that is only used to attack other players.

The reasoning behind this is that in my server there are some pretty high level players that like to bot all the time. I'm not fussed if they wanna bot but i want them to be scared. So i want to implement a way of making a strong PVP only spell so that a lvl 200 player can drop a lvl 350+ player that is botting. As with my own experiences i found that attacking a player simply doesn't hit high enough to out damage the botting players healing.

So to summarise: Is it possible to create a high damage spell that can ONLY be used to attack other players, and if so can someone help me write it.
 
Code:
function onCastSpell(cid, var)
   if isPlayer(getCreatureTarget(cid)) then
     -- add combat here
     return true
   else
     doPlayerSendCancel(cid, "You can only use this on player's.")
     return false
   end
end
for xml:
Code:
<instant name="PVP Skill" words="pvp" lvl="18" mana="75" prem="0" range="1" needtarget="1" exhaustion="1000" needlearn="0" event="script" value="xxx.lua">
     <vocation id="1-8"/>
</instant>
You still gotta change some stuff on your own but shouldn't be hard.
 
Back
Top