-
Total de itens
0 -
Registro em
-
Última visita
Tudo que mjsm4ever postou
-
Mas antes de chegar no monster, tem um TILE que só passa quem tem guild SOBRE O TÓPICO: Bom gente, eu coloquei de outro jeito e funcionou! Mudei o: hitKillerName = getPlayerGuildName(lastHitKiller) else hitKillerName = getPlayerGuildName(lastHitKiller) end E coloquei: doBroadcastMessage("A guild "..hitKillerName.." Venceu!.") Obrigado a todos ! Tópico Reportado
-
Da isso [17/12/2009 15:38:06] data/creaturescripts/scripts/killer.lua:23: attempt to concatenate a boolean value [17/12/2009 15:38:06] stack traceback: [17/12/2009 15:38:06] data/creaturescripts/scripts/killer.lua:23: in function <data/creaturescripts/scripts/killer.lua:9> E na linha eu coloquei doBroadcastMessage(""..getCreatureName(cid).." has been killed by "..hitKillerName.." da guild " .. getPlayerGuildName(cid) .. ".")
-
E como faço isso? =s não sei fazer função
-
Já está em 30 =/ Não é isso
-
Olá Xtibianos, no server que estou tem um problema. Quando um player morre, ele não perde skills (Distance, Magic etc...) Como faço pra resolver isso? =S
-
Olá Xtibianos, eu peguei um script daqui mesmo do Xtibia sobre "Anuncidor de quem mata e quem morre" Creaturescript: local config = { deathListEnabled = getBooleanFromString(getConfigInfo('deathListEnabled')), sqlType = getConfigInfo('sqlType'), maxDeathRecords = getConfigInfo('maxDeathRecords') } config.sqlType = config.sqlType == "sqlite" and DATABASE_ENGINE_SQLITE or DATABASE_ENGINE_MYSQL function onDeath(cid, corpse, lastHitKiller, mostDamageKiller) if(config.deathListEnabled ~= TRUE) then return end local hitKillerName = "field item" local damageKillerName = "" if(lastHitKiller ~= FALSE) then if(isPlayer(lastHitKiller) == TRUE) then hitKillerName = getCreatureName(lastHitKiller) else hitKillerName = getCreatureName(lastHitKiller) end doBroadcastMessage(""..getPlayerName(cid).." has been killed by "..hitKillerName..".") if(mostDamageKiller ~= FALSE and mostDamageKiller ~= lastHitKiller and getCreatureName(mostDamageKiller) ~= getCreatureName(lastHitKiller)) then if(isPlayer(mostDamageKiller) == TRUE) then damageKillerName = getPlayerGUID(mostDamageKiller) else damageKillerName = getCreatureName(mostDamageKiller) end end end db.executeQuery("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `altkilled_by`) VALUES (" .. getPlayerGUID(cid) .. ", " .. os.time() .. ", " .. getPlayerLevel(cid) .. ", " .. db.escapeString(hitKillerName) .. ", " .. db.escapeString(damageKillerName) .. ");") local rows = db.getResult("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. ";") if(rows:getID() ~= -1) then local amount = rows:getRows(true) - config.maxDeathRecords if(amount > 0) then if(config.sqlType == DATABASE_ENGINE_SQLITE) then for i = 1, amount do db.executeQuery("DELETE FROM `player_deaths` WHERE `rowid` = (SELECT `rowid` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT 1);") end else db.executeQuery("DELETE FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT " .. amount .. ";") end end end end Gostaria de saber como posso por o nome da guild do player nesta linha: doBroadcastMessage(""..getPlayerName(cid).." has been killed by "..hitKillerName..".")
-
Olá Xtibianos, estou aqui pra pedir um script de remover skill Já li alguns tópicos aqui sobre isso, mas não funcionou, pq o ot não reconhece a função "removeSkill" Erro: [Warning - TalkAction::loadFunction] Function "removeSkill" does not exist. Talkaction: <talkaction log="yes" words="/removeskill" access="4" event="function" value="removeSkill"/> Help plz =)
-
Não funcionou =/
-
function isWorn(cid, itemid) for i = CONST_SLOT_FIRST, CONST_SLOT_LAST do if getPlayerSlotItem(cid, i).itemid == itemid then return TRUE end end return FALSE end function onStepIn(cid, _, _, fromPosition) if isWorn(cid, 5461) == false then doTeleportThing(cid, fromPosition) end return TRUE end Ta certo?
-
Não funcionou! =/ Mas vlw a tentativa =)
-
Olá Xtibianos, queria saber se é possível colocar um TILE que o player só fica em cima dele com um certo ITEM equipado. É possível?
-
Olá Xtibianos. Encontrei um tópico aqui mesmo no Xtibia sobre o comando /MUTE. Bom, eu gostaria de saber se é possível por tipo /mute "playername e /desmute "playername E que o MUTE (/mute "playername) não venha sair quando o player deslogar e logar novamente. É possível? Script do MUTE: local condition = createConditionObject(CONDITION_MUTED) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000*10000) -- 10000*10000 Significa 10000 Segundos. function onSay(cid, words, param) player = getPlayerByName(param) if getPlayerGroupId(cid) > 2 then if player > 1 then doAddCondition(player, condition) else doPlayerSendCancel(cid, "Este Player nao esta Online ou nao existe.") end else doPlayerSendCancel(cid, "Somente GameMasters e GODS podem executar este comando.") end end
-
Infelizmente não fez diferença alguma =/
-
Funcionou perfeitamente! muito obrigado! Só tenho uma dúvida neste script, antes de fechar o tópico. O que significa esta linha? doTeleportThing(parameters.cid, {x = 95, y = 117, z = 7})
-
Olá Xtibianos, eu queria um script que quando o IP do player for 0.0.0.0, ou seja quando player da EXIT automaticamente ele seria kickado do server. É possível? OU Uma movements que automaticamente iria deslogar o player depois de 15 minutos que o player estiver lá.
-
Me desculpa! eu não tinha visto o seu post! Bom, acho que não funciona com fishing rod =/ Mesmo assim, obrigado a todos que me ajudaram! Se houver algum jeito de resolver =)
-
Mas tipo, eu quero saber aonde devo colocar este script junto ao script de FISHING SCRIPT DE FISHING: local useWorms = TRUE local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} function onUse(cid, item, fromPosition, itemEx, toPosition) if isInArray(waterIds, itemEx.itemid) == TRUE then if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then if useWorms == TRUE then if getPlayerItemCount(cid, ITEM_WORM) > 0 then doPlayerRemoveItem(cid, ITEM_WORM, 1) doPlayerAddItem(cid, ITEM_FISH, 1) end else doPlayerAddItem(cid, ITEM_FISH, 1) end end doPlayerAddSkillTry(cid, SKILL_FISHING, 1) end doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) return TRUE end return FALSE end
-
Funcionou perfeitamente! obrigado! Tópico Reportado!
-
Olá Xtibianos, eu queria saber como eu posso aumentar os dias que as logs ficarão no server pq tipo, quando passa 1 dia automaticamente as logs dos comandos são apagadas, como faço pra aumentar esse tempo? Obrigado!
-
Espere até a minha aprovação antes de reportar! Não consegui! vou mandar o script do FISHING Aonde devo colocar? local useWorms = TRUE local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} function onUse(cid, item, fromPosition, itemEx, toPosition) if isInArray(waterIds, itemEx.itemid) == TRUE then if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then if useWorms == TRUE then if getPlayerItemCount(cid, ITEM_WORM) > 0 then doPlayerRemoveItem(cid, ITEM_WORM, 1) doPlayerAddItem(cid, ITEM_FISH, 1) end else doPlayerAddItem(cid, ITEM_FISH, 1) end end doPlayerAddSkillTry(cid, SKILL_FISHING, 1) end doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) return TRUE end return FALSE end
-
Olá Xtibianos, eu queria saber se é possível colocar LEVEL em um item que não seja um EQUIPE Exemplo: Fishing Rod, como eu faço pro player lvl 100 ou menos NÃO usar ela no mar? Obrigado!
-
Olá Xtibianos, eu queria um comando que qndo o GM usasse abriria uma janela com todas as mortes do player, e que essa lista fosse de semana a semana resetada. Tipo: /death "ruri
-
Olá Xtibianos, eu peguei um script de um tópico do Xtibia sobre pesca de ITEMS Bom, eu reparei que em uma linha do script está doPlayerAddItem(cid,2667,1) É possível colocar para pescar MONSTERS em chance de porcentagem % Script full: elseif item2.itemid == 629 then skill_level = getPlayerSkill(cid,6) random_number = math.random(1,(100+skill_level/10)) doSendMagicEffect(topos,1) if random_number<=skill_level then doPlayerAddItem(cid,2667,1) end doPlayerAddSkillTry(cid,6,1) EDIT: Resolvido via MSN com MattheusOT !
-
Como Registrar A Raid, Sem Ela ñ Executar Automaticamente?
tópico respondeu ao mjsm4ever de mjsm4ever em Lixeira Pública
Mas eu coloquei nessa raid aqui e ela ainda executa automaticamente. <raid name="gengiskhan" file="gengiskhan.xml" chance="0" interval2="130" margin="0" /> Each 1 minutes there is a 0% chance that the raid is executed... />
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.