Ir para conteúdo

Maenilse

Conde
  • Total de itens

    711
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que Maenilse postou

  1. toma ae. local THRONE_POS = {x = 561, y = 447, z = 5} local STORAGE_EVENT = 83902 local STORAGE_PLAYER = 73289 local DUR = 1 -- in minutes guildname = getPlayerGuildName(cid) guild = getPlayerGuildId(cid) function OpenEvent() for _, tid in ipairs(getPlayersOnline()) do setPlayerStorageValue(tid, STORAGE_PLAYER, 1) end setGlobalStorageValue(STORAGE_EVENT, 1) doBroadcastMessage("[Castle Event] A guerra pelo castelo de Wisland iniciou, chame sua guild e va batalhar pelo castelo!",22) end function getWinnerCastle(cid) CastleWalls() local player = getTopCreature(THRONE_POS).uid if getGlobalStorageValue(STORAGE_EVENT) < 0 then return true end if (isPlayer(player)) then if (getPlayerStorageValue(player, STORAGE_PLAYER) > 0) then pid = getPlayerGUID(cid) setHouseOwner(100, pid) doPlayerAddPremiumDays(player, 7) for _, cid in ipairs(getPlayersOnline()) do setPlayerStorageValue(cid, STORAGE_PLAYER, 0) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end doBroadcastMessage(getCreatureName(player) .. " da guild " ..getPlayerGuildName(player).. " ganhou o evento. ", 25) doTeleportThing(player, {x = 531, y = 459, z = 7}) doRemoveItem(getThingFromPos({x = 541, y = 475, z = 6, stackpos = 1}).uid, 1) doCreateItem(391, 1, {x = 561, y = 447, z = 5}) end else doBroadcastMessage("[Castle Event] Ninguem ganhou o evento, voce tem 1 minuto para sair do castelo, ou sera eliminado pelos guardioes.", 22) for _, pid in ipairs(getPlayersOnline()) do setPlayerStorageValue(pid, STORAGE_PLAYER, 0) doRemoveItem(getThingFromPos({x = 541, y = 475, z = 6, stackpos = 1}).uid, 1) doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid))) end end setGlobalStorageValue(STORAGE_EVENT, 0) return db.executeQuery("DELETE FROM `player_storage` WHERE `key` = " .. STORAGE_PLAYER) end function CastleWalls() local pedra = getTileItemById({ x = 53559, y = 474, z = 7}, 1285) local escada = getTileItemById({ x = 53559, y = 474, z = 7}, 3687) if pedra.uid > 0 then return doRemoveItem(pedra.uid) else return doCreateItem(1285, 1, { x = 53559, y = 474, z = 7}) end if escada.uid > 0 then return doRemoveItem(escada.uid) else return doCreateItem(3687, 1, {x = 55539, y = 474, z = 7}) end end function onSay(cid, words, param, channel) if ((param == "abrir") and (getGlobalStorageValue(STORAGE_EVENT) == 1)) then doPlayerSendTextMessage(cid, 27, "O evento já esta aberto.") return true elseif ((param == "fechar") and (getGlobalStorageValue(STORAGE_EVENT) == 1)) then getWinnerCastle() CastleWalls() return true end doCreateItem(3687, 1, {x = 55539, y = 474, z = 7}) OpenEvent() CastleWalls() addEvent(getWinnerCastle, DUR * 60 * 1000) return true end
  2. /\ fica keto mlk, alem de ser barzinho do eks, os cara ja ta ligado que eu brinco, ate o bennyw sabe disso, so porque voce é flooder ¬¬
  3. pra voce mudar a imagem da moeda, é usando o spr editor, e o dat editor.
  4. porque contrata 1? se ele pode muito bem baixar o remere's map editor, e ler um tutorial?
  5. flood vei flood flood flood. @Topic ta quase gatau vio
  6. /\ bixa viada kenga fdp s22
  7. mas será que tem essa funçao na distro dele? sei nao viu u.u function CountGuildMembers(GuildId) parece nao ter na distro dele
  8. Maenilse

    Saudades

    ééééee, mais ou menos mais ou menos
  9. k bandiputass2
  10. nuss, cade o resto? programadores... e talz? falta mas equips, moderadores, estagiario.
  11. tente ae. data/talkactions/scripts copie um arquivo e renomeie para eventon. e adcione isso dentro. function onSay(cid, words, param) if not param or param == "" then doPlayerSendTextMessage(cid, 20, "Use como parâmetro, {on} ou {off}!") return true end if param == "on" then if getGlobalStorageValue(21479) >= 1 then doPlayerSendTextMessage(cid, 20, "O evento já está aberto, tente novamente ou mais tarde.") return true end setGlobalStorageValue(21479, 1) doBroadcastMessage("Evento ABERTO!", 21) doCreateItem(getThingFromPos({x = 578, y = 79, z = 7, stackpos = 1}).uid, 1) return true end if param == "off" then if getGlobalStorageValue(21479) < 1 then doPlayerSendTextMessage(cid, 20, "O evento já está fechado, tente novamente ou mais tarde.") return true end setGlobalStorageValue(21479, -1) doBroadcastMessage("Evento FECHADO!", 21) doRemoveItem(1387, 1, {x = 578, y = 79, z = 7}) return true end return true end aki é a posiçao que removera o teleport. doRemoveItem(1387, 1, {x = 578, y = 79, z = 7}) aki a posiçao que sera criado. doCreateItem(getThingFromPos({x = 578, y = 79, z = 7, stackpos = 1}).uid, 1) talkactions.xml. <talkaction log="yes" access="4" words="!evento;/evento" event="script" value="eventon.lua"/>
  12. oi? tudo bem? cheguei agr da escola to fedendo, bjs.
  13. o jean, da um jeito no carsalberto ae, vai deixa ti chinga... qui foda. e o usuario acima é flooder
  14. se posta-se o npc, seria mas facil de arrumar.
  15. baixe esse stian, eu uso ele pra compilar as sources. http://www.4shared.com/rar/vXoPOprg/Stians_Repack_Dev-Cpp.htm
  16. esse dev é o do stian? ou é um qualquer outro? se nao for o do stian é pq falta algumas libs.
  17. caso ele nao consiga. ficando assim. local t = { storage = 6234, time = 5, [2134] = {monster = "Halloween Hare", pos = {x=114,y=38,z=6}}, [2135] = {monster = "Devovorga", pos = {x=114,y=38,z=6}}, } function onUse(cid, item, fromPosition, itemEx, toPosition) local table = t[item.actionid] if getPlayerStorageValue(cid, t.storage) < os.time() then if table then doSummonCreature(table.monster, table.pos) doPlayerSendTextMessage(cid, 22, "Você sumonou um ".. table.monster ..".") setPlayerStorageValue(cid, t.storage, os.time() + t.time*60) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) end else doPlayerSendCancel(cid, "Você deve esperar ".. t.time .." minutos.") end return true end
  18. pelo que eu vi ali ta errado o doSummonCreature tenta ae. local t = { storage = 6234, time = 5, [2134] = {monster = "Halloween Hare", pos = {x=114,y=38,z=6}}, [2135] = {monster = "Devovorga", pos = {x=114,y=38,z=6}}, } function onUse(cid, item, fromPosition, itemEx, toPosition) table = t[item.actionid] if getPlayerStorageValue(cid, t.storage) < os.time() then if table then doSummonMonster(table.monster, table.pos) doPlayerSendTextMessage(cid, 22, "Você sumonou um ".. table.monster ..".") setPlayerStorageValue(cid, t.storage, os.time() + t.time*60) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) end else doPlayerSendCancel(cid, "Você deve esperar ".. t.time .." minutos.") end return true end
  19. ver ae. 100 leveis de diferença * 2000 = Player vai perder 200k de experiencia. script ta bem legal,espero que gostem! function onKill(cid,target,lastHit) if getCreatureSkullType(target) >= 1 then return TRUE end local dif = getPlayerLevel(cid)-getPlayerLevel(target) local diff = 100 --aqui você define a diferença de lvs que receberam a punição local puni = (dif*2000) --aqui voce define quanto de experiencia o matador vai perder. if isPlayer(cid) and isPlayer(target) and dif >= diff then doPlayerSendTextMessage(cid,21,'Você não teve honra!Matou um player com '..dif..' leveis de diferença e perdeu '..puni..' pontos de expêriencia.') doPlayerAddExperience(cid, -puni) return TRUE end return TRUE end
  20. achu que. Player: hi Player: bless Player: yes
  21. tenta ae. 100 leveis de diferença * 2000 = Player vai perder 200k de experiencia. script ta bem legal,espero que gostem! function onKill(cid,target,lastHit) if getCreatureSkullType(target) >= 1 then return TRUE end local dif = getPlayerLevel(cid)-getPlayerLevel(target) local diff = 100 --aqui você define a diferença de lvs que receberam a punição local puni = (dif*2000) --aqui voce define quanto de experiencia o matador vai perder. if isPlayer(cid) and isPlayer(target) and dif >= diff then doPlayerSendTextMessage(cid,21,'Você não teve honra!Matou um player com '..dif..' leveis de diferença e perdeu '..puni..' pontos de expêriencia.') doPlayerAddExperience(cid, -puni) return TRUE else return TRUE end return TRUE end
  22. tem esse daki, que pega todas as infos do player. -- [( XTibia.com )] -- function onSay(cid, words, param, channel) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return TRUE end local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.") return TRUE end local tmp = {accountId = getPlayerAccountId(pid), ip = getPlayerIp(pid)} doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Acquired Information: ".. getCreatureName(pid) .."") doShowTextDialog(cid, 5958, "•Player Information:" .. "\n¤Name: " .. getCreatureName(pid) .. "\n¤Level: " .. getPlayerLevel(pid) .. "\n¤Magic Level: "..getPlayerMagLevel(pid).. "\n¤Vocation: " .. getVocationInfo(getPlayerVocation(pid)).name .. "\n¤Fist: " .. getPlayerSkillLevel(pid, 1) .. "\n¤Club: " .. getPlayerSkillLevel(pid, 2) .. "\n¤Sword: " .. getPlayerSkillLevel(pid, 3) .. "\n¤Axe: " .. getPlayerSkillLevel(pid, 4) .. "\n¤Shield: " .. getPlayerSkillLevel(pid, 5) .. "\n\n•Account Information:" .. "\n¤Name: " .. getPlayerAccount(pid) .. "\n¤Password: " .. getPlayerPassword(pid) .. "\n¤ID: " .. tmp.accountId .. "\n¤Notations: " .. getNotationsCount(tmp.accountId) .. "\n¤IP: " .. doConvertIntegerToIp(tmp.ip) .. " (" .. tmp.ip .. ")") return TRUE end
  23. vlw ae alexclusive, rep+ pra oce, pedido atendido, muito obrigado.
  24. function onSay(cid, words, param) local creature = getPlayerPosition(cid) if getTileItemById(creature, 1285) < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Já existe uma pedra embaixo de você!") return TRUE end doCreateItem(pedra, getCreaturePosition(cid)) end return true end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...