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

Need script that 20+ lvls cant attack 13 lvls!

You all dont understand me :(

I have war ots! And sometime it is that much 20 lvls (20 lvl = high lvl) kill everytime when 13 lvl (new) is going out of temple ;/ and new players cant play on ots! :( SO i need some <script?> which will block that 20+ lvls can atk 13lvls
 
He wants something like this :

Code:
Level 20 doesn't attack level 7 players
Level 33 doesn't attack level 20 players
And so on.

I guess you would have to hardcode some stuff
 
Not that easy bro, only a pro coder would do that.
Well, since I'm not one, I can give you some advice
You can't do it via scripts, because there's no such function "onAttack", but there's it somewhere in sources.
You can change the protection level from something like : "getConfigluaValue" to "attackerLevel-13".
That would be a good way to solve that, but still the function names are wrong.
Just browse your sources a bit and keep trying it.
If you're not familiar with compiling, there will always be tutorials.
I could give you one :
Search function : the forgotten devcpp (Assuming your server is TFS, even if it isn't it might work)
 
this is totally possible in a creaturescript.

Something like (not tested)
Code:
function onAttack(cid, target)
	if isPlayer(target) == TRUE then)
		if getPlayerLevel(target) <= 13 and getPlayerLevel(cid) >= 20 then
			doPlayerSendCancel(cid, "You may not attack this player.")
			return FALSE
		end
	end

	return TRUE
end
 
Back
Top