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

2 guilds war system

Guxi

Developer
Joined
Mar 17, 2012
Messages
128
Reaction score
12
Location
Croatia
I need a war system that works like this:

2 guilds on server.
New players can join 1. or 2. guild, when they choose what guild they will join. Then they can go and pvp with their guild mates.

Players in same guild shouldn't deal damage to their team mates.
When you kill someone from other guild, you get a gold coin.

+ other stuff, but doesn't matter in a detail. ^ is most important

( this would be the base of system)

Does system like this already exist, could you help?

Thanks in advance! ;)

It should work with 8.60 client version > tfs 0.3.6 v8

- - - Updated - - -

bump?
 
Use towns not guilds , easy to do.
Not much complication to set it with account manager , you can select what town you want.
In gesior for example you have config with towns.

Easy scripts like no dmg for same town members :
Lua:
-- Creaturescripts (didnt test but should work)
function onCombat(cid, target)
	if(isPlayer(cid) and isPlayer(target)) then
		if(getPlayerTown(cid)==getPlayerTown(target)) then
			return false
		end
	end
	return true
end

Script for gold coin
Lua:
-- Also Creaturescripts , remeber to add links in login.lua and creatureevents.xml , also didnt test
function onDeath(cid, corpse, deathList)
	if isPlayer(cid) and isPlayer(deathList[1]) then
		if(getPlayerTown(cid)~=getPlayerTown(deathList[1])) then
			doPlayerAddItem(deathList[1], 2148, 1)
		end
	end
return true
end
 
Last edited:
Back
Top