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

Problem with events

jareczekjsp

Member
Joined
Jan 30, 2023
Messages
185
Reaction score
9
GitHub
Jarek123
Hello guys I have problem before I use OTX 2.6 and I convert to tfs 1.3 and I have error on console like that

Warning - Action::loadFunction] Function "" does not exist.
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
[Warning - BaseEvents::loadFromXml] Failed to configure event
[Error - CreatureEvent::configureEvent] Invalid type for creature event: dttStats
[Warning - BaseEvents::loadFromXml] Failed to configure event
[Error - CreatureEvent::configureEvent] Invalid type for creature event: dttOutfit
[Warning - BaseEvents::loadFromXml] Failed to configure event
[Error - CreatureEvent::configureEvent] Invalid type for creature event: dttCombat
[Warning - BaseEvents::loadFromXml] Failed to configure event
[Error - CreatureEvent::configureEvent] Invalid type for creature event: FireStorm
[Warning - BaseEvents::loadFromXml] Failed to configure event
[Error - CreatureEvent::configureEvent] Invalid type for creature event: DesertCombat
[Warning - BaseEvents::loadFromXml] Failed to configure event
[Error - CreatureEvent::configureEvent] Invalid type for creature event: BattleTeam
[Warning - BaseEvents::loadFromXml] Failed to configure event
[Warning - Event::checkScript] Can not load script: scripts/my_script.lua
cannot open data/globalevents/scripts/my_script.lua: No such file or directory
[Error - GlobalEvent::configureEvent] No valid type "start" for globalevent with name GlobalStart
[Warning - BaseEvents::loadFromXml] Failed to configure event


Somebody Can help me?
 
CREATURESCRIPTS

DTT
function onLogin(cid)
registerCreatureEvent(cid, "dttDeath")
registerCreatureEvent(cid, "dttPrepare")
registerCreatureEvent(cid, "dttStats")
registerCreatureEvent(cid, "dttOutfit")
registerCreatureEvent(cid, "dttKill")
registerCreatureEvent(cid, "dttCombat")
if (getPlayerStorageValue(cid, dtt.storage.team_blue) == 1) or (getPlayerStorageValue(cid, dtt.storage.team_red) == 1) then
dtt.cleanPlayer(cid)
end
if (dtt.getBonusExp(cid)) then
doPlayerSendTextMessage(cid,25, "[DEFEND THE TOWER] You're with "..dtt.bonus_rate.."x of bonus experience.")
end
return true
end

--Preparar jogadores pra morte
function onPrepareDeath(cid, deathList)
if not isPlayer(cid) then
return true
end

if (getPlayerStorageValue(cid, dtt.storage.team_blue) == 1) or (getPlayerStorageValue(cid, dtt.storage.team_red) == 1) then
local strings = {""}
local j, position, corpse = 1, 1, 0
--Dropar corpo ficticio
for _, pid in ipairs(deathList) do
if isCreature(pid) == true then
strings[position] = j == 1 and "" or strings[position] .. ", "
strings[position] = strings[position] .. getCreatureName(pid) .. ""
j = j + 1
else
strings[position] = j == 1 and "" or strings[position] .. ", "
strings[position] = strings[position] .."a field item"
j = j + 1
end
end
for i, str in ipairs(strings) do
if(str:sub(str:len()) ~= ",") then
str = str .. "."
end
desc = "You recognize "
desc = desc .. "" .. getCreatureName(cid) .. ". He was killed by " .. str
end
if(getPlayerSex(cid) == 1) then
corpse = doCreateItem(3058, getCreaturePosition(cid))
else
corpse = doCreateItem(3065, getCreaturePosition(cid))
end
doItemSetAttribute(corpse, "description", desc)
dtt.setDelay(cid)
dtt.getDelay(cid)
end

--Adicionando contagem de frags
if (getPlayerStorageValue(cid, dtt.storage.team_blue) == 1) then
setGlobalStorageValue(dtt.storage.kill_blue, (getGlobalStorageValue(dtt.storage.kill_blue)+1))
doPlayerSetTown(cid, dtt.townid.blue)
end
if (getPlayerStorageValue(cid, dtt.storage.team_red) == 1) then
setGlobalStorageValue(dtt.storage.kill_red, (getGlobalStorageValue(dtt.storage.kill_red)+1))
doPlayerSetTown(cid, dtt.townid.red)
end
return true
end

--Atacar jogadores do mesmo time
function onCombat(cid, target)
--Membros do mesmo time se atacando
if isPlayer(cid) and isPlayer(target) then
if (getPlayerStorageValue(cid, dtt.storage.team_blue) == 1) and (getPlayerStorageValue(target, dtt.storage.team_blue) == 1) then
doPlayerSendCancel(cid, "[DEFEND THE TOWER] You can't attack a member of the same team.")
return false
end
if (getPlayerStorageValue(cid, dtt.storage.team_red) == 1) and (getPlayerStorageValue(target, dtt.storage.team_red) == 1) then
doPlayerSendCancel(cid, "[DEFEND THE TOWER] You can't attack a member of the same team.")
return false
end
end

--Membro time azul atacando propria torre
if getPlayerStorageValue(cid, dtt.storage.team_blue) == 1 and isMonster(target) then
if (getCreatureName(target) == dtt.monster.name.a1) then
return false
end
if (getCreatureName(target) == dtt.monster.name.a2) then
return false
end
if (getCreatureName(target) == dtt.monster.name.a3) then
return false
end
if (getCreatureName(target) == dtt.monster.name.a4) then
return false
end
end

--Membro time vermelho atacando propria torre
if getPlayerStorageValue(cid, dtt.storage.team_red) == 1 and isMonster(target) then
if (getCreatureName(target) == dtt.monster.name.b1) then
return false
end
if (getCreatureName(target) == dtt.monster.name.b2) then
return false
end
if (getCreatureName(target) == dtt.monster.name.b3) then
return false
end
if (getCreatureName(target) == dtt.monster.name.b4) then
return false
end
end

--Impedir que ataquem torres secundarias
if (getCreatureName(target) == dtt.monster.name.a1) and isMonster(target) then
if(isCreature(getThingFromPos(dtt.monster.pos.a2).uid) or isCreature(getThingFromPos(dtt.monster.pos.a3).uid) or isCreature(getThingFromPos(dtt.monster.pos.a4).uid)) then -- SE ALGUM VALOR DER TRUE NĂO VAI PODER ATACAR
return false
end
end

if (getCreatureName(target) == dtt.monster.name.b1) and isMonster(target) then
if(isCreature(getThingFromPos(dtt.monster.pos.b2).uid) or isCreature(getThingFromPos(dtt.monster.pos.b3).uid) or isCreature(getThingFromPos(dtt.monster.pos.b4).uid)) then -- SE ALGUM VALOR DER TRUE NĂO VAI PODER ATACAR
return false
end
end

return true
end

--Bonus exp
function onKill(cid, target)
if (dtt.getBonusExp(cid)) and isMonster(target) then
doPlayerAddExp(cid, getMonsterInfo(getCreatureName(target)).experience * dtt.bonus_rate)
end
return true
end

--Aviso de attack sobre as torres
function onStatsChange(cid, attacker, type, combat, value)
if not isPlayer(attacker) then
return true
end

-- Avisar que as torres estĂŁo sendo atacadas | a2 = top, a3 = middle, a4 = bottom.
if (type == STATSCHANGE_HEALTHLOSS) and (getCreatureName(cid) == dtt.monster.name.a2) then
dtt.warningAttack(cid, "blue from the top", dtt.storage.team_blue)
end
if (type == STATSCHANGE_HEALTHLOSS) and (getCreatureName(cid) == dtt.monster.name.a3) then
dtt.warningAttack(cid, "middle blue", dtt.storage.team_blue)
end
if (type == STATSCHANGE_HEALTHLOSS) and (getCreatureName(cid) == dtt.monster.name.a4) then
dtt.warningAttack(cid, "blue from below", dtt.storage.team_blue)
end
if (type == STATSCHANGE_HEALTHLOSS) and (getCreatureName(cid) == dtt.monster.name.b2) then
dtt.warningAttack(cid, "red from the top", dtt.storage.team_red)
end
if (type == STATSCHANGE_HEALTHLOSS) and (getCreatureName(cid) == dtt.monster.name.b3) then
dtt.warningAttack(cid, "middle red", dtt.storage.team_red)
end
if (type == STATSCHANGE_HEALTHLOSS) and (getCreatureName(cid) == dtt.monster.name.b4) then
dtt.warningAttack(cid, "red from below", dtt.storage.team_red)
end

return true
end

--Impedindo troca de outfit durante o evento
function onOutfit(cid, old, current)
if getPlayerStorageValue(cid, dtt.storage.team_blue) == 1 or getPlayerStorageValue(cid, dtt.storage.team_red) == 1 then
doPlayerSendCancel(cid, dtt.msg.outfit)
return false
end
return true
end

--Tratando morte dos montros buff e torres
function onDeath(cid, corpse, mostDamageKiller)
--Avisos de morte torres time azul
if getCreatureName(cid) == dtt.monster.name.a2 then
broadcastMessage("[DEFEND THE TOWER] The blue tower at the top was destroyed.", MESSAGE_EVENT_ADVANCE)
doCreateItem(9596, dtt.monster.pos.a2)
setGlobalStorageValue(dtt.storage.tower_red, (getGlobalStorageValue(dtt.storage.tower_red)+1))
end

if getCreatureName(cid) == dtt.monster.name.a3 then
broadcastMessage("[DEFEND THE TOWER] The blue tower in the middle was destroyed.", MESSAGE_EVENT_ADVANCE)
doCreateItem(9596, dtt.monster.pos.a3)
setGlobalStorageValue(dtt.storage.tower_red, (getGlobalStorageValue(dtt.storage.tower_red)+1))
end

if getCreatureName(cid) == dtt.monster.name.a4 then
broadcastMessage("[DEFEND THE TOWER] The blue tower below was destroyed.", MESSAGE_EVENT_ADVANCE)
doCreateItem(9596, dtt.monster.pos.a4)
setGlobalStorageValue(dtt.storage.tower_red, (getGlobalStorageValue(dtt.storage.tower_red)+1))
end

--Avisos de morte torres time vermelho
if getCreatureName(cid) == dtt.monster.name.b2 then
broadcastMessage("[DEFEND THE TOWER] The red tower at the top was destroyed.", MESSAGE_EVENT_ADVANCE)
doCreateItem(9596, dtt.monster.pos.b2)
setGlobalStorageValue(dtt.storage.tower_blue, (getGlobalStorageValue(dtt.storage.tower_blue)+1))
end

if getCreatureName(cid) == dtt.monster.name.b3 then
broadcastMessage("[DEFEND THE TOWER] The middle red tower was destroyed.", MESSAGE_EVENT_ADVANCE)
doCreateItem(9596, dtt.monster.pos.b3)
setGlobalStorageValue(dtt.storage.tower_blue, (getGlobalStorageValue(dtt.storage.tower_blue)+1))
end

if getCreatureName(cid) == dtt.monster.name.b4 then
broadcastMessage("[DEFEND THE TOWER] The red tower below was destroyed.", MESSAGE_EVENT_ADVANCE)
doCreateItem(9596, dtt.monster.pos.b4)
setGlobalStorageValue(dtt.storage.tower_blue, (getGlobalStorageValue(dtt.storage.tower_blue)+1))
end


--Aviso ultimas torres e abertura do teleporte
if getCreatureName(cid) == dtt.monster.name.a1 then
dtt.removeMonsters()
setGlobalStorageValue(dtt.storage.win, "red")
setGlobalStorageValue(dtt.storage.tower_red, (getGlobalStorageValue(dtt.storage.tower_red)+1))
dtt.close()
broadcastMessage(dtt.msg.win_team_red, MESSAGE_EVENT_ADVANCE)
dtt.resultBattle()
end

--Aviso ultimas torres e abertura do teleporte
if getCreatureName(cid) == dtt.monster.name.b1 then
dtt.removeMonsters()
setGlobalStorageValue(dtt.storage.win, "blue")
setGlobalStorageValue(dtt.storage.tower_blue, (getGlobalStorageValue(dtt.storage.tower_blue)+1))
dtt.close()
broadcastMessage(dtt.msg.win_team_blue, MESSAGE_EVENT_ADVANCE)
dtt.resultBattle()
end

--Verificando buff sorcerer and paladin
if getCreatureName(cid) == dtt.monster.name.buff1 then
if (getPlayerStorageValue(mostDamageKiller[1], dtt.storage.team_blue) == 1) then
dtt.setBuff(dtt.storage.team_blue, 1, 3)
for _, index in ipairs(dtt.getPlayersInEvent()) do
if getPlayerStorageValue(index.pid, dtt.storage.team_blue) == 1 then
doPlayerSendTextMessage(index.pid, 25, "[DEFEND THE TOWER] Your team's sorcerers and paladins will receive buff, use wizard buff or archer buff spells.")
end
end
else
dtt.setBuff(dtt.storage.team_red, 1, 3)
for _, index in ipairs(dtt.getPlayersInEvent()) do
if getPlayerStorageValue(index.pid, dtt.storage.team_red) == 1 then
doPlayerSendTextMessage(index.pid, 25, "[DEFEND THE TOWER] Your team's sorcerers and paladins will receive buff, use wizard buff or archer buff spells.")
end
end
end
end

--Verificando buff druid and knight
if getCreatureName(cid) == dtt.monster.name.buff2 then
if (getPlayerStorageValue(mostDamageKiller[1], dtt.storage.team_blue) == 1) then
dtt.setBuff(dtt.storage.team_blue, 2, 4)
for _, index in ipairs(dtt.getPlayersInEvent()) do
if getPlayerStorageValue(index.pid, dtt.storage.team_blue) == 1 then
doPlayerSendTextMessage(index.pid, 25, "[DEFEND THE TOWER] Your team's druids and knights will receive buff, use magician buff or warrior buff spells.")
end
end
else
dtt.setBuff(dtt.storage.team_red, 2, 4)
for _, index in ipairs(dtt.getPlayersInEvent()) do
if getPlayerStorageValue(index.pid, dtt.storage.team_red) == 1 then
doPlayerSendTextMessage(index.pid, 25, "[DEFEND THE TOWER] Your team's druids and knights will receive buff, use magician buff or warrior buff spells.")
end
end
end
end
return true
end
FIRE STORM

function onStatsChange(cid, attacker, type, combat, value)
if type == 1 and getCreatureHealth(cid) <= value then
if isInRange(getThingPos(cid), {x = 532, y = 703, z = 7}, {x = 588, y = 741, z = 7}) then
doCreatureAddMana(cid, - getCreatureMana(cid))
doItemSetAttribute(doCreateItem(3058, 1, getPlayerPosition(cid)), "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by Fire.")
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You loss.')
return false
end
end
return true
end


DESERT

function onCombat(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerStorageValue(cid, 51) == 1 and getPlayerStorageValue(target, 51) == 1 or getPlayerStorageValue(cid, 52) == 1 and getPlayerStorageValue(target, 52) == 1 or getPlayerStorageValue(cid, 71) == 1 and getPlayerStorageValue(target, 71) == 1 or getPlayerStorageValue(cid, 72) == 1 and getPlayerStorageValue(target, 72) == 1 then
doPlayerSendCancel(cid, "Vocę năo pode atacar jogadores do seu time!")
return false
end
end
return true
end

function onPrepareDeath(cid, deathList, lastHitKiller, mostDamageKiller)
if getPlayerStorageValue(cid, 51) == 1 then
if getGlobalStorageValue(4) > 1 then
setPlayerStorageValue(cid, 51, 0)
setGlobalStorageValue(4, getGlobalStorageValue(4)-1)
doRemoveCondition(cid, CONDITION_OUTFIT)
doItemSetAttribute(doCreateItem(3058, 1, getPlayerPosition(cid)), "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by Black Assassins team.")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[DESERT WAR] Vocę Morreu!")
doPlayerSave(cid)
for _, pid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(pid, 51) == 1 or getPlayerStorageValue(pid, 52) == 1 then
doPlayerSendTextMessage(pid, 18, "Players restante: ".. getGlobalStorageValue(5) .." Black Assassins X ".. getGlobalStorageValue(4) .." Red Barbarians")
end
end
else
setPlayerStorageValue(cid, 51, 0)
setGlobalStorageValue(4, getGlobalStorageValue(4)-1)
doRemoveCondition(cid, CONDITION_OUTFIT)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[DESERT WAR] Vocę foi o último sobrevivente do time perdedor e também ganhou recompensa!")
doPlayerAddItem(cid,9971,10)
doPlayerAddItem(cid,6527,300)
doBroadcastMessage("".. getGlobalStorageValue(5) .." Players do Black Assassins team sobreviveram ao evento e obteram a recompensa de 300 Event Coins e 10 Real Coins!")
setGlobalStorageValue(5, getGlobalStorageValue(5)-1)
doPlayerSave(cid)
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(cid, 52) > 0 then
setPlayerStorageValue(cid, 52, 0)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doPlayerAddItem(cid,9971,10)
doPlayerAddItem(cid,6527,300)
doRemoveCondition(cid, CONDITION_OUTFIT)
doPlayerSave(cid)
end
end
end
elseif getPlayerStorageValue(cid, 52) == 1 then
if getGlobalStorageValue(5) > 1 then
setPlayerStorageValue(cid, 52, 0)
setGlobalStorageValue(5, getGlobalStorageValue(5)-1)
doRemoveCondition(cid, CONDITION_OUTFIT)
doItemSetAttribute(doCreateItem(3058, 1, getPlayerPosition(cid)), "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by Red Barbarians team.")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[DESERT WAR] Vocę Morreu!")
doPlayerSave(cid)
for _, pid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(pid, 51) == 1 or getPlayerStorageValue(pid, 52) == 1 then
doPlayerSendTextMessage(pid, 18, "Players restantes: ".. getGlobalStorageValue(5) .." Black Assassins X ".. getGlobalStorageValue(4) .." Red Barbarians")
end
end
else
setPlayerStorageValue(cid, 52, 0)
setGlobalStorageValue(5, getGlobalStorageValue(5)-1)
doRemoveCondition(cid, CONDITION_OUTFIT)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[DESERT WAR] Vocę foi o último sobrevivente do time perdedor e também ganhou recompensa!")
doPlayerAddItem(cid,9971,10)
doPlayerAddItem(cid,6527,300)
doBroadcastMessage("".. getGlobalStorageValue(4).." Players do Red Barbarians team sobreviveram ao evento e obteram a recompensa de 300 Event Coins e 10 Real Coins!")
setGlobalStorageValue(4, getGlobalStorageValue(4)-1)
doPlayerSave(cid)
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(cid, 51) > 0 then
setPlayerStorageValue(cid, 51, 0)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doPlayerAddItem(cid,9971,10)
doPlayerAddItem(cid,6527,300)
doRemoveCondition(cid, CONDITION_OUTFIT)
doPlayerSave(cid)
end
end
end
end
return true
end

BATTLE

function onLogin(cid)
registerCreatureEvent(cid, "BattleTeam")
registerCreatureEvent(cid, "BattleDeath")
if getGlobalStorageValue(_Lib_Battle_Info.TeamOne.storage) == -1 then
setGlobalStorageValue(_Lib_Battle_Info.TeamOne.storage, 0)
setGlobalStorageValue(_Lib_Battle_Info.TeamTwo.storage, 0)
setGlobalStorageValue(_Lib_Battle_Info.storage_count, 0)
end
if getPlayerStorageValue(cid,_Lib_Battle_Info.TeamOne.storage) >= 1 or getPlayerStorageValue(cid,_Lib_Battle_Info.TeamTwo.storage) >= 1 then
setPlayerStorageValue(cid, _Lib_Battle_Info.TeamOne.storage, -1)
setPlayerStorageValue(cid, _Lib_Battle_Info.TeamTwo.storage, -1)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
end
return true
end
function onCombat(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerStorageValue(cid,_Lib_Battle_Info.TeamOne.storage) >= 1 and getPlayerStorageValue(target,_Lib_Battle_Info.TeamOne.storage) >= 1 or getPlayerStorageValue(cid,_Lib_Battle_Info.TeamTwo.storage) >= 1 and getPlayerStorageValue(target,_Lib_Battle_Info.TeamTwo.storage) >= 1 then
return false
end
return true
end
return true
end
function onPrepareDeath(cid, deathList, lastHitKiller, mostDamageKiller)
if isPlayer(cid) and getPlayerStorageValue(cid,_Lib_Battle_Info.TeamOne.storage) >= 1 or getPlayerStorageValue(cid,_Lib_Battle_Info.TeamTwo.storage) >= 1 then
local MyTeam = getPlayerStorageValue(cid,_Lib_Battle_Info.TeamOne.storage) >= 1 and _Lib_Battle_Info.TeamOne.storage or _Lib_Battle_Info.TeamTwo.storage
local EnemyTeam = getPlayerStorageValue(cid,_Lib_Battle_Info.TeamOne.storage) >= 1 and _Lib_Battle_Info.TeamTwo.storage or _Lib_Battle_Info.TeamOne.storage
setGlobalStorageValue(MyTeam, (getGlobalStorageValue(MyTeam)-1))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[Battle Field] You Are Dead!")
setPlayerStorageValue(cid, MyTeam, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
if getGlobalStorageValue(MyTeam) == 0 then
getWinnersBattle(EnemyTeam)
else
doBroadCastBattle(23,"[BattleField Information] ".._Lib_Battle_Info.TeamOne.name.." "..getGlobalStorageValue(_Lib_Battle_Info.TeamOne.storage).." VS "..getGlobalStorageValue(_Lib_Battle_Info.TeamTwo.storage).." " .._Lib_Battle_Info.TeamTwo.name)
end
end
return true
end
Post automatically merged:

mOVEMEN
Post automatically merged:

ACTION
Post automatically merged:

CREATURESCRIPTS
 

Attachments

Last edited:
Back
Top