Ir para conteúdo

MaXwEllDeN

Héroi
  • Registro em

  • Última visita

Tudo que MaXwEllDeN postou

  1. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Recebí hoje D: Ainda estamos no 3º Bimestre por causa da greve u.u
  2. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Vampira, esqueceu o [/mentira]
  3. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    VERDADE, esquecí que ainda tem a merda do Português, Português é a única que compete com Biologia aehuahe.
  4. Yes \õ/
  5. -- This script is part of Biohazard Event System -- Copyright (C) 2012 #####, Oneshot -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . -- Main config. BIOHAZARD_DEFAULT_MAX_PLAYERS = 10 BIOHAZARD_IGNORE_GROUP_ID = 4 BIOHAZARD_ARENA_ENTER_POSITION = {x = 31931, y = 31799, z = 7} BIOHAZARD_ARENA_KICK_POSITION = {x = 32360, y = 31781, z = 7} BIOHAZARD_GLOBAL_STATUS = 67600 BIOHAZARD_GLOBAL_MAX_PLAYERS = 67601 BIOHAZARD_PLAYER_STATUS = 67600 BIOHAZARD_PLAYER_NEMESIS_HEALTH = 67601 BIOHAZARD_NEMESIS_MAX_HEALTH = 100000000 -- Main functions. function doSetBiohazardMaxPlayers(amount) doSetStorage(BIOHAZARD_GLOBAL_MAX_PLAYERS, amount) return true end function getBiohazardMaxPlayers() return getStorage(BIOHAZARD_GLOBAL_MAX_PLAYERS) end function getBiohazardPlayerStatus(cid) return getCreatureStorage(cid, BIOHAZARD_PLAYER_STATUS) end function doSetBiohazardPlayerStatus(cid, status) doCreatureSetStorage(cid, BIOHAZARD_PLAYER_STATUS, status) return true end function doBiohazardAddPlayer(cid) doTeleportThing(cid, BIOHAZARD_ARENA_ENTER_POSITION) if getPlayerGroupId(cid) < BIOHAZARD_IGNORE_GROUP_ID then doCreatureSetStorage(cid, BIOHAZARD_PLAYER_STATUS, 1) end return true end function doBiohazardKickPlayer(cid) doTeleportThing(cid, BIOHAZARD_ARENA_KICK_POSITION) doRemoveCondition(cid, CONDITION_OUTFIT) doCreatureSetStorage(cid, BIOHAZARD_PLAYER_STATUS, -1) return true end function getBiohazardEventPlayers() local ret = {} for _, cid in ipairs(getPlayersOnline()) do if cid and getCreatureStorage(cid, BIOHAZARD_PLAYER_STATUS) >= 1 then table.insert(ret, cid) end end return ret end function doBiohazardChooseNemesis() local players = getBiohazardEventPlayers() local cid = players[math.random(1, #players)] doSetCreatureOutfit(cid, {lookType = 311}, -1) doCreatureSetStorage(cid, BIOHAZARD_PLAYER_NEMESIS_HEALTH, BIOHAZARD_NEMESIS_MAX_HEALTH) doCreatureSetStorage(cid, BIOHAZARD_PLAYER_STATUS, 2) return true end function isNemesis(cid) return getCreatureStorage(cid, BIOHAZARD_PLAYER_STATUS) == 2 end function getBiohazardNemesis() local ret for _, cid in ipairs(getBiohazardEventPlayers()) do if getCreatureStorage(cid, BIOHAZARD_PLAYER_STATUS) == 2 then ret = cid break end end return ret end setGlobalStorageValue(BIOHAZARD_GLOBAL_STATUS, -1) setGlobalStorageValue(BIOHAZARD_GLOBAL_MAX_PLAYERS, -1) Testa aí!
  6. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Mas não se encaixa no meu conceito de exatas, exatas são coisas legais, que te estimulam a fazer algo, Biologia não .-.
  7. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Naaah, adaskodaskodasokdo.
  8. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    .NERD.
  9. Perdão, eu que tô me apressando muito e tô fazendo o bang sem cuidado, erros bestas esses que estão dando. local item1 = 107 local quant1 = 1 local vocation13 = 4 local pos = {x=1024, y=1027, z=7} local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerVocation(cid) ~= 0 then npcHandler:say('Vaza mano você não é vocation 0.',cid) return false end if(parameters.present == true) then if(doPlayerRemoveItem(cid,item1,quant1) == true) then doPlayerSetVocation(cid, 4) doTeleportThing(cid, pos) npcHandler:say('You changed your vocation to vocation of the Angel.',cid) else npcHandler:say('You have ever vocation is the Angel or do not have the necessary items .',cid) end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|. Do you want to be promoted to {angel}?.") local noNode = KeywordNode:new({'no'}, santaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true}) local node = keywordHandler:addKeyword({'angel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bring me an enchanted wing !. Do you sure? it will be irreversible! {yes}'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new())
  10. Não não, não é problema no script, foi erro na hora que eu copiei. aí está: ocal item1 = 107 local quant1 = 1 local vocation13 = 4 local pos = {x=1024, y=1027, z=7} local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerVocation(cid) ~= 0 then npcHandler:say('Vaza mano você não é vocation 0.',cid) return false end if(parameters.present == true) then if(doPlayerRemoveItem(cid,item1,quant1) == true) then doSetPlayerVocation(cid, 4) doTeleportThing(cid, pos) npcHandler:say('You changed your vocation to vocation of the Angel.',cid) else npcHandler:say('You have ever vocation is the Angel or do not have the necessary items .',cid) end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|. Do you want to be promoted to {angel}?.") local noNode = KeywordNode:new({'no'}, santaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true}) local node = keywordHandler:addKeyword({'angel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bring me an enchanted wing !. Do you sure? it will be irreversible! {yes}'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new())
  11. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Física é dahora \õ/. Minhas disciplinas prediletas são as exatas *-*
  12. Mas no do Matheus não vai de jeito nenhum Kimos D:
  13. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Sou monoteísta(aquele que crê em um único deus). Creio em Deus e Jesus.
  14. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Protestante.
  15. Não, nesse caso aí ele não vai mais dar o clean na casa do cara, vai ficar os ítens lá entende, mas ele não vai ser mais o dono dela.
  16. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Respeito sua opção.
  17. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Tks, mas acho difícil fazer algo de bom na prova, o assunto é muito extenso e eu não sei 1/3 dele ._. \õ/ Não, biologia é mais chato.
  18. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Meu irmão queria comprar pra namorada dele .-.
  19. Esse evento tem alguma lib? Se sim poste ela aqui por-favor!
  20. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
    Existe disciplina mais chata que Biologia? Aff. Prova amanhã u.u
  21. Add msn, skype, qualquer canto pra convesarmos. Tá no meu perfil.
  22. MaXwEllDeN postou uma resposta no tópico em Playground (Off-topic)
  23. Eu e o Matheus encontramos o erro, o problema no método //setHouseOwner(houseId, owner[, clean = true]) Ele está limpando a casa. Alguém aí já mecheu com a estrutura dos ítens da casa no banco de dados?
  24. Não precisa upar , só é me arrumar o nome dele. Tipo Gesior 0.3.2

Informação Importante

Confirmação de Termo