Histórico de Curtidas
-
Makakovisk deu reputação a KotZletY em Ajuda com Bug no SqliteEstá faltando a seguinte tabela: player_statements
Execute esse código em sua database:
DROP TABLE IF EXISTS player_statements; CREATE TABLE player_statements ( id INTEGER PRIMARY KEY, player_id INTEGER NOT NULL, channel_id INTEGER NOT NULL DEFAULT '0', text VARCHAR( 255 ) NOT NULL, date INTEGER NOT NULL DEFAULT '0', FOREIGN KEY ( player_id ) REFERENCES players ( id ) ); Mais uma coisa:
-
Makakovisk deu reputação a IagoNp em [Ajuda]Piso que teleportaFácil amigo, faça o seguinte.
Vai na pasta movements/scripts copie e renomeie o arquivo.lua para tiletp ou o nome que achar melhor.
Dentro do arquivo cole isto aqui:
local pos = {x = 1226, y = 800, z = 7} function onStepIn(cid, item, position, fromPosition) if getPlayerAccess(cid) then doTeleportThing(cid, pos) doSendMagicEffect(getThingPos(cid), 37) end return true end As posições é a única coisa que precisa configurar.
Em movements/movements.xml adicione essa tag:
<movevent type="StepIn" actionid="23020" event="script" value="tiletp.lua"/> Actionid = id do piso que você vai configurar no Mapa Editor.
Value = o nome do arquivo que você criou.
Pronto, teste e veja se funcionou!
-
Makakovisk deu reputação a Spraypaint em VilarejoDescrição
Um pequeno vilarejo, um pouco diferente do convencional espero que gostem!
Versão
8.60
Scan
https://www.virustotal.com/pt/file/f825280f0fd94b47afc7cf09181cbf1ef4591f3bf85b1dd01339482bd03b5ff3/analysis/1441321487/
Download
cidade.otbm
-
Makakovisk deu reputação a Wakon em (Resolvido)[Pedido] Comando para comprar montaria"nesse mesmo script eu queria colocar um por exemplo:", por isso dei essa explicação '-'.
local mounts = { ["shadow draptor"] = {price = 1000000, id = 13}, ["donkey"] = {price = 10000, id = 14} } function onSay(cid, words, param) local param = string.lower(param) local st = mounts[param] if not st then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "A montaria ".. param .." não existe.") end if(param ~= st) then if doPlayerRemoveMoney(cid, st.price) then doPlayerAddMount(cid, st.id) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você precisa de ".. st.price .." para comprar a montaria ".. param ..".") end end return true end <talkaction words="!mount" event="script" value="nome_do_script.lua"/> Comando: !mount shadow draptor
@Edit
Dei uma editada no script, assim você pode configurar facilmente e adicionar outras montarias, caso queira.
-
Makakovisk deu reputação a Snowsz em (Resolvido)[Ajuda] Magia BugadaTenta agora:
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true) arr = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } local area = createCombatArea(arr) setCombatArea(combat, area) function spellCallback(param) local form = 100 if param.count > 0 or math.random(0, 1) == 1 then doSendMagicEffect(param.pos, CONST_ME_MORTAREA) doAreaCombatHealth(param.cid, COMBAT_DEATHDAMAGE, param.pos, 0, -(((form*getPlayerLevel(param.cid)/2)*getPlayerMagLevel(param.cid))/20)/2, -(((form*getPlayerLevel(param.cid)/2)*getPlayerMagLevel(param.cid))/20), CONST_ME_EXPLOSIONHIT) end if(param.count < 5) then param.count = param.count + 1 addEvent(spellCallback, math.random(1000, 3000), param) end end function onCastSpell(cid, var) doPlayerSetPzLocked(cid) return doCombat(cid, combat, var) end function onTargetTile(cid, pos) local param = {} param.cid = cid param.pos = pos param.count = 0 spellCallback(param) end setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onCastSpell(cid, var) doSetCreatureOutfit(cid,{lookType = 290, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons}, 18 * 1000) return doCombat(cid, combat, var) end -
Makakovisk deu reputação a narazaky em [Spell] Espiritos do infernoTestado no TSF 1.0
Primeiramente vá em data/spell/scripts/attack e crie um arquivo em .lua e cole isso dentro dele:
Em seguida vai em spells.xml e coloque isso:
-
Makakovisk deu reputação a L3K0T em (Resolvido)[Pedido] Npc que Cobra Itenslocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
local pos = {x=152,y=58,z=7} --Pos para onde o player sera levado--
local itemid = 2468 --Id do item que vai ser removido do player--
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, "offer") or msgcontains(msg, "help") then
selfSay("Eu posso te levar a TAL lugar por um "..getItemNameById(itemid).." item, fale {travel} se quizer viajar.", cid)
talkState[cid] = 0
elseif msgcontains(msg, 'travel') then
if doPlayerRemoveItem(cid, itemid, 1) then
selfSay("Boa viagem.", cid)
doTeleportThing(cid, pos)
else
selfSay("Voce nao tem o item nescessario.", cid)
end
end
return TRUE
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
-
Makakovisk deu reputação a zipter98 em (Resolvido)[AJUDA] Alavanca com 2 funçoes.Tipo assim?
local config = { stoneId = xxx, --ID da pedra que aparecerá. toPosition = {x = x, y = y, z = z}, --Para onde o jogador será teleportado. } function onUse(cid, item) doPlayerSendTextMessage(cid, 27, "You were teleported.") doCreateItem(config.stoneId, 1, getThingPos(cid)) doTeleportThing(cid, config.toPosition) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end -
Makakovisk deu reputação a Ceos em (Resolvido)[AJUDA] Resets BugaramExecute essa query na sua database .
ALTER TABLE `players` ADD reset INT(11) NOT NULL DEFAULT 0; -
Makakovisk deu reputação a lerme em Duvida OT POKEMON Immunityseu acho que tenho esse server aqui perdido em meu computador vo procura e da uma olhada jaja volto
n achei aqui tm como vc me manda o seu configuration.lua que se encontra em ot/data/lib na minha opinião é o que os lendarios não ta balanciado ou se vc preferir me passa o link do server que eu edito para vc