Ir para conteúdo

SmiX

Conde
  • Total de itens

    963
  • Registro em

  • Última visita

  • Dias Ganhos

    2

Tudo que SmiX postou

  1. Tenta assim: local helmets = { ["demon helmet"] = {fist = 10, sword = 20, axe = 10, shield = 10}, } function onMoveItem(cid, item, formPosition, toPosition, fromItem, toItem, fromGround, toGround, status) x = helmets[getItemNameById(item.itemid)] if x then if not isPlayer(cid) then return false end if not getPlayerAccess(cid) < 4 then return false end if getPlayerSkill(cid, 0) >= x.fist and getPlayerSkill(cid, 2) >= x.sword and getPlayerSkill(cid, 3) >= x.axe and getPlayerSkill(cid, 5) >= x.shield then else return doPlayerSendCancel(cid, "Sorry, you don't have this permision") end else return false end return true end
  2. Vou mostrar umas fotos que tirei na minha formatura de conclusão do 3º ano do ensino médio. Formatura:
  3. E você está mais equivocado ainda, o único erro foi na hora de recortar a sprite, ele começou recortando de cima <</\ para baixo e não de baixo para cima...
  4. Vamos deixar brigas passadas pra o proverbio passado. Quero ter aulas com você, seria uma honra. (:
  5. SmiX

    (pedido) Eventos

    Se você não sabe, isso é considerado como Flood. Desta vez só alerta verbal, mas na próxima leva report @Topic Há vários Eventos disponíveis aqui no Xtibia, segui a lista: http://www.xtibia.com/forum/topic/186247-duvida-dota-evento/ http://www.xtibia.com/forum/topic/191723-evento-labrinto/
  6. SmiX

    Ajuda com promotion

    Dúvida sanada. Reportado!
  7. SmiX

    Ajuda com promotion

    Pronto, já corrigi.
  8. SmiX

    Ajuda com promotion

    Tenta assim: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local vocation = { [1] = {newPromotion = 9}, [2] = {newPromotion = 10}, [3] = {newPromotion = 11}, [4] = {newPromotion = 12} } if msgcontains(msg, 'promotion') or msgcontains(msg, 'PROMOTION') then selfSay("You want to be promoted?", cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then selfSay("Okay, you've earned your promotion.", cid) doPlayerSetVocation(cid, vocation[getPlayerVocation(cid)].newPromotion) doSendMagicEffect(getThingPos(cid), math.random(28, 30)) talkState[talkUser] = 0 return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Fale "hi", "promotion" e "yes".
  9. SmiX

    Tutorial Script (WOE)

    Seção errada. Reportado.
  10. Olá galera, venho hoje aqui, para pedir sugestões de eventos para o natal da PokeEmerald. Pode ser qualquer um, tendo uma boa jogabilidade e não do tipo: colocar varias bags no chão e o player escolher uma, isso não. Tem que ser bem criativo. Site do servidor. Obrigado, pela atenção.
  11. Não intendi muito bem. Quem vai perder level o que morreu ou quem matou?
  12. Só corrigindo. Talkactions: local config = { voc = 10, effect = 30, outfit = 100, stor = 8580 } local function constantEffect(cid) if getPlayerVocation(cid) == config.voc then doSetCreatureOutfit(cid, {lookType = config.outfit}, -1) end doSendMagicEffect(getCreaturePos(cid), config.effect) addEvent(constantEffect, 2*1000, cid) setPlayerStorageValue(cid, config.stor) end function onSay(cid, words, param) constantEffect(cid) end CreatureScripts: local config = { effect = 50, outfit = 100, stor = 8580 } local function doSendEffect(cid) doSendMagicEffect(getThingPos(cid), config.effect) addEvent(doSendEffect, 2000, cid) end function onLogin(cid) if getPlayerStorageValue(cid, config.stor) >= 1 then doSetCreatureOutfit(cid, {lookType = config.outfit}, -1) doSendEffect(cid) end end TAG: <event type="login" name="Transformation" event="script" value="transformation.lua"/>
  13. @Slicer Existe sim um item com o nome "Sword" @Topic function isValidName(name) return db.getResult("SELECT `id` FROM `players` WHERE `name` = " .. db.escapeString(name) .. ";"):getID() ~= -1 end function onSay(cid, words, param, channel) if param == "" then doPlayerSendTextMessage(cid, 27, "Params missing! [name], [item], [qnt]") return true end local t = string.explode(param, ",") local depot = false if type(t) ~= "table" then doPlayerSendTextMessage(cid, 27, "Params missing! [name], [item], [qnt]") return true end local player = getPlayerByName(tostring(t[1])) if not isPlayer(player) then player = tostring(t[1]) depot = true if not isValidName(t[1]) then doPlayerSendTextMessage(cid, 27, "Player with that name doesn't exist!") return true end end local id = tonumber(t[2]) local qnt = tonumber(t[3]) or 1 if not id then id = getItemIdByName(t[2], false) if not id then doPlayerSendTextMessage(cid, 27, "Item wich such name does not exists.") return true end end local itemtoadd = getItemIdByName(t[2]) if isPlayer(player) and getItemWeightById(itemtoadd) > getPlayerFreeCap(player) then depot = true end if isPlayer(player) then if depot then doPlayerSendMailByName(t[1], itemtoadd, t[3]) else doPlayerAddItem(getPlayerByName(t[1]), itemtoadd, t[3]) end doPlayerSendTextMessage(cid, 20, "Item delivered to the player: "..t[1]..".") else doPlayerSendMailByName(t[1], itemtoadd, t[3]) doPlayerSendTextMessage(cid, 20, "Item delivered to the player: "..t[1]..".") end return true end
  14. Obrigado há todos, pelos comentários. Estão nos ajudando a implementar mais diversão ao Servidor PokeEmerald. @Topic A base do PokeEmerald é a Com level, está sendo bem legal até agora. Novas ideias de sistemas e eventos são bem vindos também.
  15. Eu voto no sem level. Porquê ontem eu vi um player no ot(com level) pescando ás 10 horas e ele estava level 32 depois de meia hora ele já estava com o level 50 mano.. @Topic Acho que já da pra convencer o #Critical com o resultado de 11 a 0. Obrigado a todos que votaram e ajudaram com cometários. ¬¬' Cabeça dura.
  16. @Brincadeirinha Você é bom em scripter, até me corrigiu, mais em sprite eu posso de corrigir. kk ^}^ @Sprite Está boa, porém, use mais sombreamento no cabo e uso auto-lising, há vários tutoriais no fórum falando sobre.
  17. Olá pessoa, hoje estou nesta área para tirar uma dúvida que está quase acabando com o meu projeto e do Critical, se você, nas suas férias, fosse jogar um PokeTibia qual preferiria? Com level system, cujo o mesmo faz um "Blastoise[5]" morrer para um "Rattata[5]" ¬¬'. Perdendo totalmente a jogabilidade do GAME, e fazendo com que players inicialmente fiquem "Pescando" para upar e assim desvalorizando as Stones de evolução(Tanto para evoluir tanto para Boost). ou Sem level system, cuja a intenção deste é proporcionar dificuldade quanto ao uso de pokemons, valorizar o uso de Stones(tanto as de evoluções quanto a de Boost) e assim deixando um "Rattata" matar um "Blastoise" se estiver bostado "+50" e se o level do player estiver alto. Pronto pessoal, espero que colaborem. Sem level - [11] Voto(s) Com level - [3] Voto(s)
  18. Sem brigas pessoal. Sobre sua dúvida, você precisa saber um pouco de Scripter...
  19. SmiX

    [PDA]CP OUTLAND 20%=PXG

    Não gostei muito. Esta meio sem detalhes.
  20. Área incorreta! reportado!
  21. @Oneshot Não intendi bem, a mensagem que quis passar.
  22. \o/ Coloca em movements: tag: <movevent type="StepOut" actionid="1513" event="script" value="trap.lua"/>
  23. Tecnicamente, seu script não irá dar skill ao player, e sim dará pontos de experiência ao mesmo. @tony Acho, que seu pedido só poderá ser resolvido se trocar algumas funções nas sources. O outro jeito mais fácil é fazer com que o player deslogue.
  • Quem Está Navegando   0 membros estão online

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