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

War Event (Johannes10)

slayzer

Klaffen
Joined
Dec 28, 2008
Messages
301
Solutions
3
Reaction score
51
Location
Norway
Hi, I'm here to make an request for Johannes10.
He came up with an(which i think is) an awesome idea.

He's idea was:
20 players walk to like.. and room with an switch and stuff.
When 10 players walk on ea side of the switch(like in annihilator, just that its 2 different spots to stand, and its 10 spots at ea side)
Team 1 | team 2
<-- -->
2z7eb2s.jpg

in the arena
when you pull the switch(lever) you get into and PVP Arena.
In this arena, its first Team to 30 kills, win.(if you die, you have to re-spawn inside the arena somewhat)

The winning team gets into and reward room at get Experience and the Heart's of the players who lost(Like Undead Hearth
Undead_Heart.gif
, that got Description: "Player Name" and "Player's Level".
while the losers get Nothing and just get 'ported out.

Credits:
Johannes10 for Idea
Slayzer for knowing how to write English
 
Last edited by a moderator:
@up
you should just attach the file if possible

EDIT: File arena.xml received on 2010.04.11 00:20:35 (UTC)
Current status: finished
Result: 0/39 (0%)
no virus xd just had to be sure
 
@up
you should just attach the file if possible

EDIT: File arena.xml received on 2010.04.11 00:20:35 (UTC)
Current status: finished
Result: 0/39 (0%)
no virus xd just had to be sure
lol about the virus, im the one who get them not give them out, sorry ur wrong ;S
 
thats what i can do
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="kkkkkkkkk" version="1.0" author="kkkkkkk" contact="kkkkkkkk" enabled="yes">
	<config name="noob"><![CDATA[
		config = {
			v = {
				redTeam = {
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7}
				},
				blueTeam = {
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7},
					{x = 100, y = 200, z = 7}
				}
			},
			blueTeamPos = {x = 100, y = 200, z = 7},
			redTeamPos = {x = 100, y = 200, z = 7},
			redStorage = 7000,
			blueStorage = 8000,
			redPlayers = {},
			bluePlayers = {}
		}
	]]></config>
	<event type="login" name="event" event="script"><![CDATA[
		registerCreatureEvent(cid, "stats")
		registerCreatureEvent(cid, "combats")
		return true
	]]></event>
	<event type="statschange" name="stats" event="script"><![CDATA[
		domodlib('noob')
	function onStatsChange(cid, attacker, type, combat, value)
		if type == 1 then
			if getCreatureHealth(cid) <= value then
				if isPlayer(attacker) then
					if getPlayerStorageValue(cid, config.blueStorage) == 1 then
						doTeleportThing(cid, config.blueTeamPos)
					elseif getPlayerStorageValue(cid, config.redStorage) == 1 then
						doTeleportThing(cid, config.redTeamPos)
					end
				end
				return false
			end
		end
		return true
	end
	]]></event>
	<event type="combat" name="combats" event="script"><![CDATA[
		domodlib('noob')
		if isPlayer(cid) and isPlayer(target) then
			if getPlayerStorageValue(cid, config.blueStorage) == 1 and getPlayerStorageValue(target, config.blueStorage) == 1 then
				doPlayerSendCancel(cid, "You may not attack your team mates.")
				return false
			elseif getPlayerStorageValue(cid, config.redStorage) == 1 and getPlayerStorageValue(target, config.redStorage) == 1 then
				doPlayerSendCancel(cid, "You may not attack your team mates.")
				return false
			end
		end
		return true
	]]></event>
	<action uniqueid="7000" event="script"><![CDATA[
		domodlib('noob')
		for _, pos in ipairs(config.v.redTeam) do
			for _, position in ipairs(config.v.blueTeam) do
				local t, c = getTopCreature(position).uid, getTopCreature(pos).uid
				if t > 0 and isPlayer(t) or c > 0 and isPlayer(c) then
					table.insert(config.redPlayers, c)
					table.insert(config.bluePlayers, t)
				end
			end
		end
		if item.itemid == 1945 or item.itemid == 1946 then
			for i, k in ipairs(config.redPlayers) do
				for i, g in ipairs(config.bluePlayers) do
					if g > 10 and k > 10 then
						doTeleportThing(k, config.redTeamPos, true)
						setPlayerStorageValue(k, config.redStorage, 1)
						doTeleportThing(g, config.blueTeamPos, true)
						setPlayerStorageValue(g, config.blueStorage, 1)
						table.remove(config.redPlayers, k)
						table.remove(config.bluePlayers, g)
					end
				end
			end
		end
		return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
	]]></action>
</mod>

have fun doing the position thingy
 
@up
you should just attach the file if possible

EDIT: File arena.xml received on 2010.04.11 00:20:35 (UTC)
Current status: finished
Result: 0/39 (0%)
no virus xd just had to be sure

Lol, if you put virus in .xml, i will suck your balls.
 
Its okey for me i can do all the pos only i want it to work :p


what does this mean?

blueTeamPos = {x = 100, y = 200, z = 7},
redTeamPos = {x = 100, y = 200, z = 7},
 
omg whats the problem???:S:S:S still not working!... i have put the pos and everything... uniqueid: 7000

The pos:

<config name="noob"><![CDATA[
config = {
v = {
redTeam = {
{x = 99, y = 200, z = 7},
{x = 98, y = 200, z = 7},
{x = 99, y = 201, z = 7},
{x = 98, y = 201, z = 7},
{x = 99, y = 202, z = 7},
{x = 98, y = 202, z = 7},
{x = 99, y = 203, z = 7},
{x = 98, y = 203, z = 7},
{x = 99, y = 204, z = 7},
{x = 98, y = 204, z = 7}
},
blueTeam = {
{x = 101, y = 200, z = 7},
{x = 102, y = 200, z = 7},
{x = 101, y = 201, z = 7},
{x = 102, y = 201, z = 7},
{x = 101, y = 202, z = 7},
{x = 102, y = 202, z = 7},
{x = 101, y = 203, z = 7},
{x = 102, y = 203, z = 7},
{x = 101, y = 204, z = 7},
{x = 102, y = 204, z = 7}
}
},
blueTeamPos = {x = 97, y = 188, z = 7},
redTeamPos = {x = 108, y = 188, z = 7},
 
u see this?
Code:
if g > 10 and k > 10 then
replace with
Code:
if g > 1 and k > 1 then
now u need to mc 1 player mc him in the opposite team
 
Back
Top