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

PvP Script

JoccE

CopyLeft (ɔ)
Joined
Aug 26, 2007
Messages
3,418
Solutions
1
Reaction score
93
Location
Sweden, Stockholm
I need someone to make a system like nodamagetosamelookfeet in config.lua.

The differens is that i want it to be with storage IDs so:

If Player 1 got storage ID 12001 and player 2 got ID 12002 they can attack eachother, while

if player 1 and 2 got the same storage id then they can't attack each other.

So ID 12001 can only attack ppl with storageID 12002 but not ppl with 12002 and ppl with 12002 can only attack ppl with 12001 but not 12002.

Don't really know how advance this is but if it's possible to make i really need it :p

The reward for making this is ofc Credits on the server and money if it ever takes in more money then dedicated host :)

Here's the server idea i'm working on: http://otland.net/f251/idea-war-server-80023/
 
Code:
function onCombat(cid, target)
	if isPlayer(target) then
		if (getPlayerStorageValue(cid, 12001) == 1 and getPlayerStorageValue(target, 12001) == 1) or (getPlayerStorageValue(cid, 12002) == 1 and getPlayerStorageValue(target, 12002) == 1) then
			return doPlayerSendCancel(cid, "Something.")
		end
	end
	return true
end
dont forget login.lua part etc
 
Back
Top