
Tudo que Sekk postou
-
(Resolvido)Baú que sorteia 4 itens ou +
n faço ideia se funciona <actions actionid="9918" event="script" value="random.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) local items = {6497,2472,2471} -- defina seus itens local r = items[math.random(#items)] local m = 2160 -- item q usa como moeda local q = 10 -- preço if doPlayerRemoveItem(cid, m, q) then doPlayerAddItem(cid, r, 1) doPlayerSendTextMessage(cid,22,"Você ganhou uma "..getItemNameById(r)) doBroadcastMessage("O player "..getCreatureName(cid).." acabou de ganhar um "..getItemNameById(r).." do random box", 22) else doPlayerSendCancel(cid, "Sorry, you don't have enough money") end return true end coloca a actionid 9918 no bau pelo rme
-
[EVENTO] Castle 24H "Diferente"
qlqr coisa manda pm
-
[EVENTO] Castle 24H "Diferente"
como assim n consegue adicionar os monsters?
-
Erro na dristo
function onThink(interval, lastExecution) local storage = 1344 local raids = {"Morgaroth","Ghazbaran", "Undead Jester", "goblin", "Dryads", "Halloweenhare", "Hornedfox", "Necropharus", "UndeadArmy", "UndeadDarashia", "The Old Widow", "Scarabs", "Rats", "Quara", "Pirates", "Orshabaal", "OrcsThais", "Ferumbras", "Elfs", "Demodras", "Barbarian",} if getGlobalStorageValue(storage) == -1 or getGlobalStorageValue(storage) < os.time() then executeRaid(raids[math.random(1, #raids)]) setGlobalStorageValue(storage, os.time() + 9 * 60 * 60) end return TRUE end
-
Erro na dristo
abre o sqlite studio, vai no lapis la em cima no menu, cola o codigo e aperta f9
-
Mando msg no whats?
se ate o adm falou, ta falado
-
Erro na dristo
vc usa mysql ou sqlite?
-
(Resolvido)Ajuda com check outfit
n sei mais oq fazer '-'-' foi mal @Vodkart
-
Ajuda na source
Traduções não prejudicam em nada o funcionamento do tfs
-
Erro na dristo
executa na sua database
-
Erro na dristo
CREATE TABLE z_ots_comunication ( id INTEGER( 11 ) PRIMARY KEY NOT NULL, name VARCHAR( 255 ) NOT NULL, type VARCHAR( 255 ) NOT NULL, [action] VARCHAR( 255 ) NOT NULL, param1 VARCHAR( 255 ) NOT NULL, param2 VARCHAR( 255 ) NOT NULL, param3 VARCHAR( 255 ) NOT NULL, param4 VARCHAR( 255 ) NOT NULL, param5 VARCHAR( 255 ) NOT NULL, param6 VARCHAR( 255 ) NOT NULL, param7 VARCHAR( 255 ) NOT NULL, delete_it INTEGER( 2 ) NOT NULL DEFAULT ( 1 ) );
-
(Resolvido)Ajuda com check outfit
eu só uso 0.4 cara
-
(Resolvido)Ajuda com check outfit
local water = {490, 491, 492, 493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} local combat = createCombatObject() local meteor = createCombatObject() setCombatParam(meteor, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(meteor, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK) setCombatFormula(meteor, COMBAT_FORMULA_LEVELMAGIC, -7.2, -400, -7.3, -400) local meteor_water = createCombatObject() setCombatParam(meteor_water, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(meteor_water, COMBAT_PARAM_EFFECT, CONST_ME_LOSEENERGY) setCombatFormula(meteor_water, COMBAT_FORMULA_LEVELMAGIC, -7.2, -400, -7.3, -400) combat_arr = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } local combat_area = createCombatArea(combat_arr) setCombatArea(combat, combat_area) local function meteorCast(p) doCombat(p.cid, p.combat, positionToVariant(p.pos)) end function onTargetTile(cid, pos) if (math.random(0, 0) == 0) then local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 1}) if (isInArray(water, ground.itemid) == TRUE) then local newpos = {x = pos.x + 9, y = pos.y - 8, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 100, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x + 9, y = pos.y - 8, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 100, {cid = cid,pos = pos, combat = meteor}) end end end setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") local o = getCreatureOutfit(cid) local stun = createConditionObject(CONDITION_PARALYZE) function onCastSpell(cid, var) if o.lookType == 144 and o.lookAddons == 3 then setConditionParam(stun, CONDITION_PARAM_TICKS, 20000) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(meteor, stun) doCombat(cid, combat, var) elseif o.lookType == 148 and o.lookAddons == 3 then setConditionParam(stun, CONDITION_PARAM_TICKS, 20000) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(meteor, stun) doCombat(cid, combat, var) else doCombat(cid, combat, var) end local function stunEffect(cid) doSendMagicEffect(getThingPos(cid), CONST_ME_STUN) end
-
Mando msg no whats?
to sem oq fazer, to no tédio e to na duvida uahuha terminei um namoro ha uns dias, e to afim de ficar com uma mina ae uahuah eu estudei com ela desde a 1ª serie até o 3o ano do ensino medio, a gente conversava e tudo mais, ja fui na casa dela etc, mas n somos tao amigos assim quero ficar com ela, mando msg no whats? uahuah
-
(Resolvido)Ajuda com check outfit
local outfit = getCreatureOutfit(cid) local stun = createConditionObject(CONDITION_PARALYZE) if outfit.lookType == 144 and outfit.lookAddons == 3 then setConditionParam(stun, CONDITION_PARAM_TICKS, 20000) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(meteor, stun) elseif outfit.lookType == 148 and outfit.lookAddons == 3 then setConditionParam(stun, CONDITION_PARAM_TICKS, 20000) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(meteor, stun) end local function stunEffect(cid) doSendMagicEffect(getThingPos(cid), CONST_ME_STUN) end
-
(Resolvido)Ajuda com check outfit
outfit 9?
-
(Resolvido)Boss morre e nasce um TP!
Mano, existe sim um monte de coisa sobre isso aqui no tk, inclusive, eu lembro de ter respondido um tópico sobre isso, mas n lembro qual, então vou responder aqui msm creaturescripts creaturescripts.xml <event type="death" name="MonsterQuest" event="script" value="tpmonster.lua"/> Agora adiciona o seguinte no arquivo .xml do monstro <script> <event name="MonsterQuest"/> </script> obs aqui vc pode adicionar mais monstros, assim kill = { ["Demon"] = {count = 1, str = 10629}, -- ["monstro"] = {quantidade = 1, storage = n mexa ["Spider"] = {count = 1, str = 10630}, },
-
item que da atributo
mas e se colocar tipo um "/ 100" ?
-
(Resolvido)Ajuda com check outfit
Esse é um esboço: local outfit = getCreatureOutfit(cid) funcão onSay, onUse, onThink, onTime, onStepIn if outfit.lookType == 144 and outfit.lookAddons == 3 then fazer x coisa elseif outfit.lookType == 148 and outfit.lookAddons == 3 then fazer a mesma coisa x end return true end Mas preciso saber exatamente o que o script faz pra poder escrever ele uahuah
-
Comando que so usa c/ x storage e ganha 1 outfit.
talkactions.xml <talkaction words="!akatsuki" event="script" value="aka.lua"/> aka.lua function onSay(cid, words, param) local stor = 89745 if getPlayerStorageValue(cid, stor) == 6 then doPlayerSendCancel(cid, "Sorry you cannot use this command again.") else setPlayerStorageValue(cid, stor, 6) doPlayerAddOutfit(cid, ID DA OUTFIT, ADDONS) doCreatureSay(cid, "AKATSUKI ADDON!", TALKTYPE_ORANGE_1) end return true end Presumi que você usa tfs 0.4
-
[AJUDA] PALADIN EXAUSTED MAXIMO
qual o teu script do ring?
-
Trocar de Vocation Por Pergaminho
Tem só um erro, pega ai function onUse(cid, item, frompos, item2, topos) if getVocationInfo(getPlayerVocation(cid)).name == "Hashirama" then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Ja é um Hashirama!") elseif getPlayerLevel(cid) > 50 then -- tava faltando o (cid) aqui doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce nao pode trocar de character, apenas player level inferior a 50") else doPlayerSetVocation(cid, 1) doCreatureSay(cid, "Hashirama Owns!!", 19) doSendMagicEffect(getCreaturePosition(cid), 1) doCreatureChangeOutfit(cid, {lookType = 1}) if getPlayerStorageValue(cid, 5) < 1 then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+80000) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+80000) setPlayerStorageValue(cid, 5, 1) end setPlayerStorageValue(cid, 16200, 1) setPlayerStorageValue(cid, 300, (getPlayerVocation(cid))) doRemoveItem(item.uid) end return TRUE end
-
Vida e mana
@Weslley Kiyo ele disse que não possui as sources @topic Se vc quiser, pega as sources desse link https://github.com/s3kk/tfs04 ta dentro da pasta src ai vc pode seguir o tutorial q o nosso amigo ai em cima indicou! Mas antes de trocar assim, faz um backup do ser server etc, pois talvez apareça alguns erros pq o tfs 04 tem algumas mudanças dos mais antigos... Nada dificil demais pra resolver Tamo ai pra ajudar
-
[RESOLVIDO] Erro no Shop Admin
Foi mal, eu tive q dormir, mas eu ia falar pra fazer isso msm uahuaha Exportar a db sem o shop, e importar dnv dps parabens por resolver sozinho e me desculpe
-
[GESIOR] 0.3.8 modificado por Sekk
@Dornellas cara, pq raios vc executou essas queries? Elas resetam o shop e reinstalam ele do 0... Qual problema vc tava mano?