
Tudo que MaXwEllDeN postou
- Ctf bugado
-
(ACTION) TELEPORT POR ALAVANCA
local pos = { [1] = { antes = {x = 160, y = 54, z = 7}, depos = {x = 160, y = 54, z = 6}, }, [2] = { antes = {x = 190, y = 54, z = 7}, depos = {x = 120, y = 50, z = 7}, } } local getTableTam = function(t) local r = 0 for _, v in pairs(t) do r = r + 1 end return r end local function getAllPlayersInPos() local players = {} for a = 1, getTableTam(pos) do local po = pos[a].antes po.stackpos = 255 if (isPlayer(getThingFromPosition(po).uid)) then table.insert(players, getThingFromPosition(po).uid) end end return players end function onUse(cid, item, frompos, item2) if (#getAllPlayersInPos() ~= getTableTam(pos)) then local z = ((getTableTam(pos) - #getAllPlayersInPos()) ~= 1) and "m" or "" local zz = ((getTableTam(pos) - #getAllPlayersInPos()) ~= 1) and "" or "s" return doPlayerSendCancel(cid, "Falta".. z .. " " .. getTableTam(pos) - #getAllPlayersInPos() .. " player".. zz .. " para poder puxar a alavanca!") end local plays = getAllPlayersInPos() for a = 1, getTableTam(pos) do doSendMagicEffect(pos[a].antes, 2) doTeleportThing(plays[a], pos[a].depos) doSendMagicEffect(pos[a].antes, 10) end return true end
-
(resolvido) Start skills não pega.
Não cheguei a testar, mas dá uma olhada aew: local Vocs = { [7] = { h = { [SKILL_DISTANCE] = 110, [SKILL_SHIELD] = 90, }, mana = true }, [8] = { h = { [SKILL_AXE] = 110, [SKILL_SWORD] = 110, [SKILL_CLUB] = 110, [SKILL_SHIELD] = 105, }, }, } function onLogin(cid) local reqTries = getPlayerRequiredSkillTries if (getPlayerStorageValue(cid, 56364) ~= -1) then return true end if (Vocs[getPlayerVocation(cid)]) then for i, v in pairs(Vocs[getPlayerVocation(cid)].h) do doPlayerAddSkillTry(cid, i, reqTries(cid, i, v)) end if (Vocs[getPlayerVocation(cid)].mana) then doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid, 10))) end else doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid, 85))) end return setPlayerStorageValue(cid, 56364, 1) end
- Ctf bugado
- Ctf bugado
-
Como tirar o Vip Status ?
Por favor, poste aqui seu character.php
-
#11 - Super evento relâmpago!
Impossible²
-
[CTF] Capture The Flag
@tiago.bordin1988 Desculpe a demora para responder; Cara faz o seguinte, baixa o sistema novamente e INSTALA SEGUNDO O TÓPICO, não tenta inventar não, o que não tiver no tópico dizendo pra fazer não faz, só faz o que diz no tópico...
- Apresento a Vocês o Cão Gueeta #MtFera
-
Postar Imagem em arquivo PHP
Correção: <?PHP echo '<img src="imagem1.png' />" ?>
-
[CTF] Capture The Flag
@tiago.bordin1988 Você marcou como true o nopen na lib?
- Apresento a Vocês o Cão Gueeta #MtFera
-
Parado em Skyrim
Fiz isso também, olhei do outro lado e lá tinha a combinação!
-
[CreatureEvent] Efeito no Player
Cara, o efeito aparece porque isso já é do servidor, poe um addEvent pra depois de alguns milisegundos mandar o efeito.
-
(Resolvido) [ERRO] Shop System
Não, com [*code] fica mais fácil de visualizar o código, iai testou o que eu postei?
-
(Resolvido) [ERRO] Shop System
Cara, começa a postar as coisas entre [*code] ¬.¬ -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) action = tostring(result_plr:getDataString("action")) delete = tonumber(result_plr:getDataInt("delete_it")) cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) == TRUE then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else local ad = (type(getItemWeightById(itemtogive_id, itemtogive_count)) == "boolean") and 1 or getItemWeightById(itemtogive_id, itemtogive_count) items_weight = container_count * ad end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << Seu item esta esperando por voce. Por favor faça o local para este item em sua mochila e aguarde '.. SQL_interval ..' segundos para obte-lo.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << Seu item esta esperando por voce. O peso do item e '.. full_weight ..' oz., Vc tem no momento '.. free_cap ..' oz. de capacidade livre. Coloque alguns itens no deposito e espere cerca de '.. SQL_interval ..' segundos para obte-lo.') end end if not(result_plr:next()) then break end end result_plr:free() end return TRUE end
-
{Demonstração} Aura System
Eu já fiz isso , tô colocando pra atacar players se eles tiverem me atacando
-
{Demonstração} Aura System
Não sabia que já existia :/
-
Questão Da Olimpiada De Matemática (obs: a da capa rosa )
Nem era só isso, tinha mais informações hein!
-
{Demonstração} Aura System
O.o, sério? Esse ai, fica uma aura protegendo o cara, e quando alguma criatura se aproxima ela é atacada!
-
{Demonstração} Aura System
Ainda falta fazer alguns ajustes
-
[CTF] Capture The Flag
Isso ai do TRUE, é que você tem que dar o /ctf close para fechar né, quando você dá /ctf open, ele só fecha com o comando depois! substitui sua action por essa: http://pastebin.com/E5KuWhtb
-
[CTF] Capture The Flag
Isso mesmo.
-
[CTF] Capture The Flag
Não precisa colocar a actionid no tile, o sistema poe por sí só!
-
[MoveMents] Novo Tipo de Treiner
É legal, mas por ser antigo, tem muitas coisas desnecessárias.. --Train machine MaXwEllDeN ---- function onStepIn(cid, item, position, lastPosition, fromPosition, pos, actor) local poz = { [0] = {{x = pos.x - 1, y = pos.y - 1, z = pos.z}, {x = pos.x + 1, y = pos.y - 1, z = pos.z}}, [1] = {{x = pos.x + 1, y = pos.y - 1, z = pos.z}, {x = pos.x + 1, y = pos.y + 1, z = pos.z}}, [2] = {{x = pos.x - 1, y = pos.y + 1, z = pos.z}, {x = pos.x + 1, y = pos.y + 1, z = pos.z}}, [3] = {{x = pos.x - 1, y = pos.y - 1, z = pos.z}, {x = pos.x - 1, y = pos.y + 1, z = pos.z}}, } if isPlayer(cid) then doSummonCreature("Training Monk", poz[getCreatureLookDir(cid)][1]) doSummonCreature("Training Monk", poz[getCreatureLookDir(cid)][2]) end return 1 end local effects = {17, 15, 14, 13, 12, 39} function onStepOut(cid, item, position, lastPosition, pos, toPosition, actor) local poz = { [2] = {{x = pos.x - 1, y = pos.y - 1, z = pos.z, stackpos = 255}, {x = pos.x + 1, y = pos.y - 1, z = pos.z, stackpos = 255}}, [3] = {{x = pos.x + 1, y = pos.y - 1, z = pos.z, stackpos = 255}, {x = pos.x + 1, y = pos.y + 1, z = pos.z, stackpos = 255}}, [0] = {{x = pos.x - 1, y = pos.y + 1, z = pos.z, stackpos = 255}, {x = pos.x + 1, y = pos.y + 1, z = pos.z, stackpos = 255}}, [1] = {{x = pos.x - 1, y = pos.y - 1, z = pos.z, stackpos = 255}, {x = pos.x - 1, y = pos.y + 1, z = pos.z, stackpos = 255}}, } if isPlayer(cid) then for a = 1, 2 do doSendMagicEffect(poz[getCreatureLookDir(cid)][a], effects[math.random(#effects)]) if isCreature(getThingFromPos(poz[getCreatureLookDir(cid)][a]).uid) then doRemoveCreature(getThingFromPos(poz[getCreatureLookDir(cid)][a]).uid) end end end return 1 end Esse ai é mais "inteligente" você não precisa definir a posição dos trainers, só é colocar o script que ele identifica sozinho a posição que tem que sumonar os trainers!