Ir para conteúdo
  • Cadastre-se

Storm

Héroi
  • Total de itens

    1045
  • Registro em

  • Última visita

  • Dias Ganhos

    43

Tudo que Storm postou

  1. Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
  2. @TrafalgarLaw local function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then
  3. @Luzetti Você pode configurar a mensagem que o player terá que falar nessa linha if msgcontains(msg, 'itens') or msgcontains(msg, 'items') and talkState[talkUser] == 1 then
  4. @Luzetti 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 == CONVE
  5. Bom , acho que vai ficar apelão um servidor com esse comando , mas ok local function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(
  6. @Luzetti 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 == CONVE
  7. @Luzetti Voce explicou muito mal no tópico , mas eu tentei fazer : 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
  8. 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_DEFAU
  9. Actions local config = { time = 5, -- Minutos para o player sair da area global = 3242, -- Global storage storage = 3214, -- Storage cost = 1000, -- Custo para entrar dentro = {x = 94 , y = 200, z = 7}, -- Pos de dentro da arena fora = {x = 90, y = 195, z = 6} -- Pos de fora da arena } local toPos = {x = 94 , y = 200, z = 7} -- | -- | Começo e final da arena local fromPos = {x = 94 , y = 200, z = 7} -- | local function Arena(uid) if isPlayer(uid) then if getCreatureStorage(uid, config.storage) == 1 then doCreatu
  10. @quemtuacha function onMoveItem(moveItem, frompos, position, cid) if getHouseFromPos(frompos) then if getPlayerGUID(cid) == getHouseOwner(getHouseFromPos(frompos)) then return true else doPlayerSendTextMessage(cid, 27, "Voce nao pode mover itens desta house") doSendMagicEffect(getCreaturePosition(cid), 3) return false end end end
  11. @quemtuacha Você tem a função function onMoveItem(moveItem, frompos, position, cid) Adicionada nas sources ?
  12. @leozincorsair <?xml version="1.0" encoding="UTF-8"?> <npc name="Bless" script="data/npc/scripts/task/bless.lua" walkinterval="2000" speed="0" floorchange="0"> <health now="100" max="100"/> <look type="167" head="38" body="79" legs="107" feet="114"/> <parameters> <parameter key="message_greet" value="I' sell bless , say {yes} "/> </parameters></npc>
  13. local itemid, count = 2160, 5 -- ID do item que precisa e sua count 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) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEF
  14. local config = { pos = {x=1765, y=578, z=7}, -- tempo = 30, -- effect1 = 10, -- effect2 = 10 -- } local fromPosition = {x=1031, y=737, z=7} local toPosition = {x=1031, y=737, z=7} function onCastSpell(cid, var) local pos = getCreaturePosition(cid) if isInRange(pos, fromPosition, toPosition) then doPlayerSendTextMessage(cid, 27, "Voce nao pode usar essa magia nesse local") return doSendMagicEffect(pos, 3) end if isPlayer(getCreatureTarget(cid)) then target = getCreatureTarget(cid) addEvent(doTeleportThing, 1000*config.tempo, target, getThingPos(tar
  15. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, 98) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) setConditionFormula(condition, -0.90, 0, -0.90, 0) setCombatCondition(combat, condition) local time = 2.0 -- Tempo de exhaustion local storage = 45674 -- não mecha function onCastSpell(cid, var) if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "You are exhauted.") doSendMagicEffec
  16. @Jociel local tempo = 60 local outfit = {lookType = 320, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0} function onCastSpell(cid, var) local pos = getCreaturePosition(cid) local target = getCreatureTarget(cid) local targetpos = getCreaturePosition(target) local tsuku ={x = 103, y = 1780, z = 7} local alvo = {x = 103, y = 1777, z = 7} local from1,to1 = {x=97, y=1773, z=7},{x=109, y=1785, z=7} local from2,to2 = {x=979, y=911, z=7},{x=994, y=918, z=7} local from3,to3 = {x=557, y=1029, z=6},{x=573, y=1044, z=6} if isInRange(pos, from1, to1) then doPl
  17. @Jociel function onCastSpell(cid, var) local target = getCreatureTarget(cid) local outfit = { lookType = 10 } -- ID da looktype local time = 10 -- Segundos que a outfit durará if target then doSetCreatureOutfit(target, outfit, time * 1000) return true end end
  18. @Emanueldk Só mudar --_Goku Black_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 515 then doReborn(cid,1,534,511) talk_state = 0 --_Jiren_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 525 then doReborn(cid,1,543,521) talk_state = 0
  19. @Jociel local t = { [255] = {256, 50, 3000, 3000} -- {old vocation} = {New vocation, looktype, life extra, mana extra} } local itemid, count = 2150 , 5 -- ID do item que precisa local level = 100 -- level necessario para a promotion 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:onCreatur
  20. @Jociel local t = { [255] = {256, 50, 3000, 3000} -- {old vocation} = {New vocation, looktype, life extra, mana extra} } local itemid, count = 2150 , 5 -- ID do item que precisa local level = 100 -- level necessario para a promotion 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:onCreatu
  21. @bismarkzika local v = {1, 2, 3, 5} -- Vocations que poderão usar a spell function onSay(cid, words, param, channel) local pos = getCreaturePosition(cid) local t = string.explode(param, ",") local a = getPlayerByNameWildcard(t[1]) local voc = getPlayerVocation(cid) if not isInArray(v, voc) then doSendMagicEffect(pos, 5) doPlayerSendTextMessage(cid, 26, "Sua vocation não pode usar essa spell") return true end if (param == '') or (not t[1]) or (not t[2]) or (not isNumber(t[2])) then doSendMagicEffect(pos, 5)
  22. Posta a script pra a galera te ajudar , ninguem é vidente.
  23. @bismarkzika -- Os parâmentros do comando são : !transfer NOME DO PLAYER, QUANTIDADE DE MANA A SER DOADA -- Exemplo : !transferencia Storrm, 1 -- <talkaction words="!transferencia" event="script" value="transfer.lua"/> function onSay(cid, words, param, channel) local pos = getCreaturePosition(cid) local t = string.explode(param, ",") local a = getPlayerByNameWildcard(t[1]) if (param == '') or (not t[1]) or (not t[2]) or (not isNumber(t[2])) then doSendMagicEffect(pos, 5) doPlayerSendTextMessage(cid, 26, "Parametros incorretos") return
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo