Tudo que joadson postou
-
(Resolvido)[PEDIDO] Baú que usa P Points
Você só quer um bau normal? Clicou > checou se tem points > se tiver remove os pontos e dá os itens? Se puder explicar um pouco melhor.
-
Pedido War System TFS 0.3.7
Tenho certeza que já tem, porque eles já vem incluso. Mas daqui a pouco, explico como confgurar certinho, porque tem mas nao deve tá configurado.
-
Pedido War System TFS 0.3.7
No TFS 0.3.7 já vem com ele por padrão.
-
(Resolvido)Evento matar outro player ganhar EXP
Vou ver aqui, posto um resultado. EDIT: Aqui o resultado... coloquei pra mostrar o nome de quem matou e tudo... Testado e dando a exp certinha. function onDeath(cid, corpse, deathList) local config = { exp = math.random(300000, 900000), killer_name = getCreatureName(deathList[1]), target_name = getCreatureName(cid) } --if getPlayerIp(cid) == getPlayerIp(deathList[1]) then return true end --se nao for testar em casa remova os 2 sinais(de menos) no começo do script. essa função é para evitar que alguem use MC para ganhar exp; if isPlayer(deathList[1]) then doPlayerSendTextMessage(deathList[1], MESSAGE_INFO_DESCR, "Você recebeu ".. config.exp .. ", de EXP por matar o ".. config.target_name ..".") doPlayerAddExp(deathList[1], config.exp) end return true end
-
(Resolvido)AJUDA NPC
Para fechar o tópico é só selecionar alguma resposta como "melhor resposta", fechará automaticamente.
-
(Resolvido)AJUDA NPC
No script dele é só trocar isso if getPlayerPremiumDays(cid) > 0 then por isso if getPlayerVipDays(cid) > 0 then
-
(Resolvido)AJUDA NPC
Vou reler tudo aqui, devo ter me passado em algo... Vou instalar o sistema de VIP assim, posso usar em futuros scripts também. Breve edito aqui com o resultado.
-
(Resolvido)Evento matar outro player ganhar EXP
vá em creaturescripts/script e crie um arquivo chamado exp.lua e coloque isso dentro function onDeath(cid, corpse, deathList) if isPlayer(cid) and isPlayer(deathList[1]) then local exp = math.random(30000,90000), -- de 300000 a 900000 mude para sua preferencia doPlayerAddExp(deathList[1], exp) end return true end e depois abra o login.lua e adicione registerCreatureEvent(cid, "Exp") agora abra o creaturescripts.xml e adiicione <event type="death" name="Exp" event="script" value="Exp.lua"/>
-
(Resolvido)AJUDA NPC
Aqui, modifiquei, mas não pude testar... Deu preguiça de instalar o sistema de VIP kk
-
(Resolvido)AJUDA NPC
Tô modifcando aqui, jaja edito e posto com o sistema de vip
-
(Resolvido)AJUDA NPC
Tem esse meu também, é de fácil configuração. Testado em um servidor 8.60 e funcionou perfeitamente.
-
Svar arena bugada.
Vou te ajudar nisso, depois instalo num servidor de teste e resolvo... porque resolver de olho é complicado. Ainda hoje faço isso, assim que tiver um tempinho PS: Se puder me passa o link do script completo.
-
Remover Frag
Vou ver outra possibilidade, breve posto o resultado. EDIT: Infelizmente não posso te ajudar nisso, não consegui fazer com que dimiinuisse apenas 1. Não sou muito bom com mysql.
- Npc dando itens a x vocation
-
(Resolvido)nao atacar player da mesma guild
Não pode, mesmo se usar magias, o player que atacou recebe a mensagem e cancela o ataque... Até mesmo na arena não pode matar.
-
Npc dando itens a x vocation
Aqui, testado e sem debugs... era o tipo de mensagem kk 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 if msgcontains(msg, 'reward') or msgcontains(msg, 'REWARD') and getPlayerStorageValue(cid, 22123) == 0 then if getPlayerVocation(cid) == 1 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você pegou os itens de Sorcerer.") elseif getPlayerVocation(cid) == 2 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você pegou os itens de Druid.") elseif getPlayerVocation(cid) == 3 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você pegou os itens de Paladin.") elseif getPlayerVocation(cid) == 4 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você pegou os itens de Knight.") return true end if msgcontains(msg, 'reward') or msgcontains(msg, 'REWARD') and getPlayerStorageValue(cid, 22123) == 1 then end npcHandler:say('Você já pegou os seus itens.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)nao atacar player da mesma guild
Pode atacar normalmente, irá contar frags e tudo... Só não poderá atacar players da mesma guild.
-
(Resolvido)nao atacar player da mesma guild
Vá em creaturescript e crie um arquivo chamado attackguild.lua e coloque isso dentro function onCombat(cid, target) if getTileInfo(getThingPos (cid)). pvp then return true end -- caso queira que na arena pvp possa atacar normal, remova isso if isPlayer(target) and getPlayerGuildId(cid) ~= 0 and getPlayerGuildId(cid) == getPlayerGuildId(target) then doPlayerSendCancel(cid, "Não pode atacar players da mesma guild.") return false end return true end e em creatures.xml coloque isso <event type="combat" name="attackguild" script="attackguild.lua"/> Agora abra o login.lua e adicione isso registerCreatureEvent(cid, "attackguild")
- Npc dando itens a x vocation
- Npc dando itens a x vocation
-
Remover Frag
Tente assim. function onSay(cid, words, param, channel) if(param == "removerfrag") then if getPlayerItemCount(cid, 2160) >= 10 then doPlayerRemoveItem(cid, 9971, 30) db.executeQuery("UPDATE `players` SET `unjustified` = `unjustified`-1 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") db.executeQuery("UPDATE `players` SET `skulltime` = 0") doCreatureSetSkullType(cid, 0) setPlayerStorageValue(cid,11548,os.time()+3) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você removeu seus frags com sucesso.") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") end return TRUE end end
-
Npc dando itens a x vocation
Aqui... vá em npcs/scripts e crie um arquivo chamado Delivery Itens.lua e coloque isso dentro 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 if msgcontains(msg, 'reward') or msgcontains(msg, 'REWARD') and getPlayerStorageValue(cid, 22123) == 0 then if getPlayerVocation(cid) == 1 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) --2160 é o ID do item nesse caso é crystal coins e 100 é a quantidade setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid,22,"Você pegou os itens de Sorcerer.") elseif getPlayerVocation(cid) == 2 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid,22,"Você pegou os itens de Druid.") elseif getPlayerVocation(cid) == 3 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid,22,"Você pegou os itens de Paladin.") elseif getPlayerVocation(cid) == 4 and getPlayerStorageValue(cid, 22123) == 0 then doPlayerAddItem(cid, 2160, 100) setPlayerStorageValue(cid, 22123, 1) doPlayerSendTextMessage(cid,22,"Você pegou os itens de Knight.") return true end if msgcontains(msg, 'reward') or msgcontains(msg, 'REWARD') and getPlayerStorageValue(cid, 22123) == 1 then end npcHandler:say('Você já pegou os seus itens.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) e depois volte para pasta NPCs e crie um arquivo chamado Delivery Itens.xml e coloque isso dentro. <?xml version="1.0" encoding="UTF-8"?> <npc name="Delivery Itens" script="data/npc/scripts/Delivery Itens.lua" walkinterval="0" floorchange="0"> <health now="150" max="150"/> <look type="131" head="95" body="95" legs="95" feet="95" corpse="6080"/> </npc> Agora vá em creaturescript/script e abra o login.lua e coloque isso em algum lugar if getPlayerStorageValue(cid, 22123) == -1 then setPlayerStorageValue(cid, 22123, 0) end Depois disso é só adicionar no RME ou usar o comando /n Delivery Itens e fazer os testes.
-
(PEDIDO/SCRIPTING) Edição simples no Arena Zombie Event.
Modifique \data\globalevents\scripts\zombie\onthink.lua por esse e faça um teste. function onThink(interval, lastExecution, thinkInterval) if ZE_isOnZombieArea >= ZE_DEFAULT_NUMBER_OF_PLAYERS then -- ZE_DEFAULT_NUMBER_OF_PLAYERS e a quantidade minima de players para começa o evento if(getStorage(ZE_STATUS) == 2) then setZombiesToSpawnCount(getZombiesToSpawnCount()+1) local players = getZombiesEventPlayers() for i=1, getZombiesToSpawnCount() * 2 do if(getZombiesToSpawnCount() > 0 and spawnNewZombie()) then setZombiesToSpawnCount(getZombiesToSpawnCount()-1) end end end else doBroadcastMessage("O Zombie Event não começou devido a poucos jogadores participantes.\n Pelo menos " .. ZE_DEFAULT_NUMBER_OF_PLAYERS .. " jogadores são necessário!", MESSAGE_STATUS_WARNING) for x = ZE_spawnFromPosition.x, ZE_spawnToPosition.x do for y = ZE_spawnFromPosition.y, ZE_spawnToPosition.y do for z = ZE_spawnFromPosition.z, ZE_spawnToPosition.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doTeleportThing(getPlayers.uid, getTownTemplePosition(getPlayerTown(getPlayers.uid)), false) doSendMagicEffect(getPlayerPosition(getPlayers.uid), CONST_ME_TELEPORT) end end end end return true end end
-
(Resolvido)Pedido Arena PVP
Isso é no RME, selecione PVP ZONE TOOLS que assim ficará como arena e ninguém perderá itens ou leveis.
-
Erro Duplicate
Procure no actions.xml a uniqueID 5040, deve ter outro script usando a mesma unique.