Tudo que ViitinG postou
-
(Resolvido)Pedido script bônus ao matar outro jogador!
Este erro não é do script que te mandei.. Aqui eu uso o script normalmente..
-
(Resolvido)Pedido script bônus ao matar outro jogador!
Manda o erro.
-
(Resolvido)Pedido script bônus ao matar outro jogador!
local exp = 5000000 ---Quanto de experiencia sera perdido local item,quant = 2152,0 -----Item e a quantidade function onDeath(cid, target, damage, flags) if isPlayer(target) then if getPlayerIp(cid) == getPlayerIp(target) then doPlayerAddExp(cid, -exp) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Foi dectado o uso de mc você sera perderá "..exp.." de exp") return true end doPlayerAddItem(cid, item, quant) return true end return true end <event type="death" name="privi" event="script" value="privi.lua"/>
-
(Resolvido)Pedido script bônus ao matar outro jogador!
"data/creaturescripts/privi.lua" : local exp = 5000000 ---Quanto de experiencia sera perdido local item,quant = 2152,0 -----Item e a quantidade function onKill(cid, target, damage, flags) if isPlayer(target) then if getPlayerIp(cid) == getPlayerIp(target) then doPlayerAddExp(cid, -exp) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Foi dectado o uso de mc você sera perderá "..exp.." de exp") return true end doPlayerAddItem(cid, item, quant) return true end return true end "data/creaturescripts/creaturescripts.xml" : <event type="kill" name="privi" event="script" value="privi.lua"/> "data/creaturescripts/login.lua" : registerCreatureEvent(cid, "privi")
- War System - Erro No Distro
- War System - Erro No Distro
-
Alguem me ajuda ?
Tem que liberar as portas 7171 - 7172 no firewall e no modem.
- (Resolvido)Tempo de fala no Help, ou Trade.
-
(Resolvido)Tempo de fala no Help, ou Trade.
"talkactions/scripts/muteplayer" local v = {} for k = 1, 100 do table.insert(v, createConditionObject(CONDITION_MUTED)) setConditionParam(v[k], CONDITION_PARAM_TICKS, k*60*1000) end function onSay(cid, words, param) if (words == "/mute") then local t = string.explode(param, ",") if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local player,time,pid = getPlayerByName(t[1]),t[2],getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você mutou o jogador "..t[1].." por "..time.." minutos.") doAddCondition(player, v[tonumber(time)]) setPlayerStorageValue(player, 90000, os.time()+time*60) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você foi mutado por "..time.." minutos.") elseif (words == "/desmute") then if param == '' then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local player = getPlayerByNameWildcard(param) if(not player)then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return true end if getCreatureCondition(player, CONDITION_MUTED) == false then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "este jogador não está mutado.") return true end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você desmutou o jogador "..param..".") doRemoveCondition(player, CONDITION_MUTED) setPlayerStorageValue(player, 90000, -1) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você foi desmutado.") end return true end "talkactions.xml" <talkaction log="yes" words="/mute;/desmute" access="2" event="script" value="muteplayer.lua"/> "creaturescript/scripts/mute_check" local v = {} for k = 1, 100000 do table.insert(v, createConditionObject(CONDITION_MUTED)) setConditionParam(v[k], CONDITION_PARAM_TICKS, k*1000) end function onLogin(cid) if getPlayerStorageValue(cid, 90000) >= os.time() then doAddCondition(cid, v[tonumber(getPlayerStorageValue(cid, 90000) - os.time())]) end return TRUE end "creaturescript.xml" <event type="login" name="MutePlayer" event="script" value="mute_check.lua"/> Comandos :
- (Resolvido)Tempo de fala no Help, ou Trade.
- Error mapa distro
- Error mapa distro
- Error mapa distro
-
(Resolvido)Tirar itens de novos playes que são criados
Veja se tem um script chamado "firstitems" em creaturescripts ! Se tiver basta remover o 1kk.
-
Ajeitando loot do monstro
Veja se esse é o script do monster certo e veja se não há mais de um script deste monster com o mesmo nome !! obs : manda o ID da gema !
-
Ajeitando loot do monstro
Aqui : function onUse(cid, item, fromPosition, itemEx, toPosition) local tppos = {x=1095,y=1062,z=7} local exp = 100000 -- Quanto de experience o player irá ganhar?! local default = {2090,6570} local vocs = {2158,2158,2154,2154,2158,2158,2154,2156} for x,i in pairs(default) do doPlayerAddItem(cid,i) doPlayerAddExp(cid, exp) end local bp = doPlayerAddItem(cid,5801,5) local gala = math.random(1,10) for x = 1, gala do doAddContainerItem(bp, 2160, 100) end local add = math.random(1,100) doAddContainerItem(bp, 2160, add) doPlayerAddItem(cid,vocs[getPlayerVocation(cid)],1) local ret = "" for x,i in pairs(default) do if x == 1 then ret = "1 " .. getItemNameById(i) else ret = ret .. ", 1 " ..getItemNameById(i) end end for x,i in pairs(getPlayersOnline()) do doPlayerSendTextMessage(i, 19, "O jogador (" .. getPlayerName(cid).. ") completou o Castle e ganhou 100000 de experiência, "..ret..", 1 "..getItemNameById(vocs[getPlayerVocation(cid)]).." e "..gala..""..string.sub(add,1,10).." crystal coins!") end doTeleportThing(cid,tppos) doSendAnimatedText(getPlayerPosition(cid), "COMPLETOU!", TEXTCOLOR_YELLOW) doSendMagicEffect(getCreaturePosition(cid), math.random(28,28)) doSendMagicEffect(tppos,10) return true end Basta mudar isso :
-
(Resolvido)Script de ganha dinheiro HELP
Obrigado por tirar Nogard ! Nem tinha percebido estou ocupado..
-
(Resolvido)Criar Itens
Tem que usar um programa chamado item editor.
-
(Resolvido)Script de ganha dinheiro HELP
function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then doPlayerAddItem(cid, 2160, 1) end end return TRUE end
-
Ajuda aqui porfavor
Sim acho que resolve.
- (Resolvido)Como colocar os Comando /attr
-
(Resolvido)Script de ganha dinheiro HELP
Tenta este : "data/creaturescripts/scripts/killgold" function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then if getPlayerIp(target) ~= getPlayerIp(cid) then doPlayerAddItem(cid, 2160, 1) end end return TRUE end login.lua : registerCreatureEvent(cid, "killgold") tag creaturescripts.xml : <event type="kill" name="killgold" event="script" value="killgold.lua"/>
-
(Resolvido)Ajuda ao editar o Mapa do poketibia
É só usar um descompilador. Eu usava antigamente o TibiaUnpacker !
-
(Resolvido)Ajuda ao editar o Mapa do poketibia
Você tem que descompilar o client do poketibia para aparecer o tibia.dat e tibia.spr !
-
[DUVIDA] Como trocar de DISTRO?
Veja se isso pode te ajudar : http://www.tibiaking.com/forum/topic/12846-c-compilando-um-otserv-no-windowns/