-
Total de itens
36 -
Registro em
-
Última visita
Posts postados por xugrude456
-
-
lin do download quebrado
-
entao rapaiz deleta esse post ja que niaguem repsonde
-
oiee queria um item que da double hit, e quando sai esse double hit sai a fala !DOUBLE HIT
obrigado quem ajuda dou REP++
- Senju uchira reagiu a isso
- 1
-
oie queria uma spell que faz um summon e com x comando ele explode
obrigado pela atenção dou REP++
-
testei aki, funcionou obrigado, tinha dado um erro pq tinha um ponto de interogação
-
3 minutos atrás, Dragon Ball Hiper disse:
crie um arquivo em globalevents com nome removerbatle.lua local function removeBattle(cid) doRemoveCondition(cid, CONDITION_INFIGHT) return false end function onThink(interval) for _, cid in ipairs(getPlayersOnline()) do local pos, tile = getThingPos(cid), getTileThingByPos(getThingPos(cid)) if getTilePzInfo(pos) == true then removeBattle(cid) end end return true end tag xml 1000 é equivalente a 1 segundo em servidores milesegundos , caso contrário você deverá usar "1" <globalevent name="removerbatle" interval="1000" event="script" value="removerbatle.lua"/> - Você pode retirar pela source também (o correto é por la.) caso queira. em protocolgame.cpp Procura por if(player->hasCondition(CONDITION_INFIGHT)) Troque por: if(player->getZone() != ZONE_PROTECTION && player->hasCondition(CONDITION_INFIGHT))
não funciono o script do global events, fico com battle no pz
-
1 hora atrás, Yan Liima disse:
Ao entrar em PZ tira o battle? Recomendo mais alterar nas Source. Não compesa usar o onThink não
pq não compensa poderia me explica melhor
-
2 horas atrás, gabriel28 disse:
function onThink(cid, interval) if isPlayer(cid) then if(getTilePzInfo(getCreaturePosition(cid))) then doRemoveCondition(cid, CONDITION_INFIGHT) end end end
É em creaturescript.
e so addicionar ? so isso la e a tag?
-
alguem tem script para 0.4.0.0 de tira battle pra ajuda
-
olá galera tudo bom.
gostaria de uma spells que faz um summon, ai quando vc fala uma palavra o summon explode causando dano em area
obrigado pela atenção
-
-
Agora, gabriel28 disse:
Por isso esse script não está funcionando, você está tentando usar um script feito para versões 1.x. Vou ver se acho um script pra essa versão, se conseguir, editarei esse comentário.
dmr mano se vc conseguir me ajuda ficarei grato
-
1 minuto atrás, gabriel28 disse:
Qual a versão do teu TFS?
0.4.0.0
-
1 minuto atrás, gabriel28 disse:
essa aki e a tag
<talkaction log="yes" words="/skill;/addskill" access="5" event="script" value="addskill.lua"/>
local function getSkillId(skillName)
if skillName == "club" then
return SKILL_CLUB
elseif skillName == "sword" then
return SKILL_SWORD
elseif skillName == "axe" then
return SKILL_AXE
elseif skillName:sub(1, 4) == "dist" then
return SKILL_DISTANCE
elseif skillName:sub(1, 6) == "shield" then
return SKILL_SHIELD
elseif skillName:sub(1, 4) == "fish" then
return SKILL_FISHING
else
return SKILL_FIST
end
endlocal function getExpForLevel(level)
level = level - 1
return ((50 * level * level * level) - (150 * level * level) + (400 * level)) / 3
endfunction onSay(cid, words, param)
local player = Player(cid)
if not player:getGroup(5):getAccess(5) then
return true
endif player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
endlocal split = param:split(",")
if split[2] == nil then
player:sendCancelMessage("Insufficient parameters.")
return false
endlocal target = Player(split[1])
if target == nil then
player:sendCancelMessage("A player with that name is not online.")
return false
end-- Trim left
split[2] = split[2]:gsub("^%s*(.-)$", "%1")local count = 1
if split[3] ~= nil then
count = tonumber(split[3])
endlocal ch = split[2]:sub(1, 1)
for i = 1, count do
if ch == "l" or ch == "e" then
target:addExperience(getExpForLevel(target:getLevel() + 1) - target:getExperience(), false)
elseif ch == "m" then
target:addManaSpent(target:getVocation():getRequiredManaSpent(target:getBaseMagicLevel() + 1) - target:getManaSpent())
else
local skillId = getSkillId(split[2])
target:addSkillTries(skillId, target:getVocation():getRequiredSkillTries(skillId, target:getSkillLevel(skillId) + 1) - target:getSkillTries(skillId))
end
end
return false
end -
-
olá galera, queria uma ajuda pra solucionar um poblema meu servidor nao ta funcionando o comando /addskill
nao sei onde poderia ser o poblema ja tentei por o script denovo e pegar um ai pa testa mas nao funcionou .
obrigado pela atenção se puder ajuda deis de ja dou REP++
-
Agora, Yan Liima disse:
Não tenta baixar algum baiak que tu acha
dmr mano mas vlw ai men obrigado pela atenção
-
dmr bro vlww
tem o mapa
-
Olá galera então, um dia eu vi um evento em um servidor mas faz muito tempo nao lembro agora o nome, um evento de league of legends tinha nexus torres e inibidores
alguem teria esse script, procurei em tudo já .
obrigado pela atenção.
dou REP++
-
11 minutos atrás, gabriel28 disse:
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 --------------------------- Configuração Inicial ------------------------------------ local strg = 9785 -- Valor da Storage local item = xxxx -- id do item local quant = yyy --quantidade local vocs = {zzz, www} -- id das vocaçao que irao poder receber a permissao --------------------------- Configuração das Falas ----------------------------------- if (msgcontains(msg, 'storage')) then if getPlayerStorageValue(cid, strg) < 1 then selfSay('Deseja receber a permissao? Para isso, deve me trazer X quantia do item Y', cid) talkState[talkUser] = 1 else selfSay('Voce ja recebeu a permissao.', cid) talkState[talkUser] = 0 end --------------------------- Falas de Entrada ----------------------------------- elseif(msgcontains(msg, 'yes') or msgcontains(msg, 'sim') and talkState[talkUser] == 1) then if getPlayerStorageValue(cid, strg) < 1 then if isInArray(vocs, getPlayerVocation(cid)) then if doPlayerRemoveItem(cid, item, quant) then setPlayerStorageValue(cid, strg, 1) selfSay('Permissao concedida com sucesso.', cid) talkState[talkUser] = 0 else selfSay('Voce nao tem o item.', cid) talkState[talkUser] = 0 end else selfSay('Sua vocaçao nao pode receber a permissao.', cid) return false end else selfSay('Permissao ja concedida anteriormente.', cid) return false end --------------------------- Falas de Rejeição ----------------------------------- elseif(msgcontains(msg, 'no') or msgcontains(msg, 'nao') and isInArray({1}, talkState[talkUser])) then talkState[talkUser] = 0 selfSay('Tudo bem entao.', cid) --------------------------- FIM do SCRIPT --------------------------------------- end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
obrigado sua ajuda foi muito boa s2
-
muito obrigado mano, so uma coisa tem como certa vocacao pegar tal storage
-
20 horas atrás, gabriel28 disse:
@xugrude456
Quando tiver pedidos assim, já posta o script junto pra agilizar. Essa minha resposta de agora já poderia conter a solução.me perdoe sou novo,
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() endfunction creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
endlocal talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
--------------------------- Configuração Inicial ------------------------------------
local strg = 9785 -- Valor da Storage--------------------------- Configuração das Falas -----------------------------------
if (msgcontains(msg, 'storage')) then
if getPlayerStorageValue(cid, strg) < 1 then
selfSay('Deseja receber a permissao?', cid)
talkState[talkUser] = 1
else
selfSay('Voce ja recebeu a permissao.', cid)
talkState[talkUser] = 0
end--------------------------- Falas de Entrada -----------------------------------
elseif(msgcontains(msg, 'yes') or msgcontains(msg, 'sim') and talkState[talkUser] == 1) then
if getPlayerStorageValue(cid, strg) < 1 then
setPlayerStorageValue(cid, strg, 1)
selfSay('Permissao concedida com sucesso.', cid)
talkState[talkUser] = 0
else
selfSay('Permissao ja concedida anteriormente.', cid)
return false
end--------------------------- Falas de Rejeição -----------------------------------
elseif(msgcontains(msg, 'no') or msgcontains(msg, 'nao') and isInArray({1}, talkState[talkUser])) then
talkState[talkUser] = 0
selfSay('Tudo bem entao.', cid)--------------------------- FIM do SCRIPT ---------------------------------------
end
return true
endnpcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new()) -
olá galera então, gostaria de uma help de vcs
tenho script aki que da storange mas queria que ele desse storage mas cobrase algo entroca
e tipo ele desse storage pra certa vocation
-
15 horas atrás, gabriel28 disse:
@xugrude456
Se você dissesse qual é a modificação que está tentando fazer, ajudaria.eu tava pondo set creatune name pos clone ficar com nick do usuario que conjuro
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
OTX 8.6 - DASH+CAST
em 8.X
Postado
No fórum tem um tutorial