
Tudo que Sekk postou
-
Script Storage Value
NN no rme vc muda a actionid. vai no rme, botao direito no bau, properties e ve qual a action id q ta no bau, ai vc vai no actions.xml do server, procura por actionid="action q ta no bau pelo rme" e manda aqui o script pra eu ver
-
Script Storage Value
Então usa uma storage diferente no bau e nesse script ai q te passei
-
Script Storage Value
Isso, a primeira vez que o char logar, o server vai setar aquela storage como valor 1, então todo script q vc quer usar, q necessita q o player tenha valor 1 nessa storage, coloca getPlayerStorageValue(cid, 1010101) == 1 then
-
Tamanho do Personagem
magina cara, é bem complicado mexer NA MINHA OPINIAO, mas vai q vc curte e vira spriter
-
Tamanho do Personagem
Vc pode usar o programa Object Builder, tem vários tutoriais tanto no TibiaKing, como outros fóruns ou pesquisando no google e vendo videos do youtube. Desculpe, mas não sei mexer mesmo no programa vc terá que criar uma nova sprite, arrumar o tamanho dela etc
-
Script Storage Value
Tem como colocar a storage ja ao logar, pela primeira vez.. É parecido com o firstitems creaturescripts/scripts/ fstor.lua local stor = 1010101 local pos = getCreaturePosition(cid) function onLogin(cid) if getPlayerStorageValue(cid, stor) <= 0 then setPlayerStorageValue(cid, stor, 1) doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) end return true end creaturescripts.xml <creaturescript type="login" name="firstStor" event="script" value="fstor.lua"/>
-
Tamanho do Personagem
Creio que não seja possível sem edição dos arquivos .dat e .spr do client do ot '-'
-
mod first item com erro
Esse aqui funciona, só configurar os itens... Deixei o nome de cada item em cada lugar <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="First Items" version="1.0" author="Sekk" enabled="yes"> <event type="login" name="FirstItems" event="script"><![CDATA[ local firstItems = {} firstItems[0] = -- none { 2173, -- aol 2525, -- d shield 3965, -- hunting spear 2124, -- ring 2457, -- steel helmet 2647, -- plate legs 2463, -- plate armor 2643 -- leather boots } firstItems[1] = -- sorcerer { 2173, -- aol 2525, -- d shield 7429, -- super wand 2124, -- ring 2457, -- steel helmet 2647, -- plate legs 2463, -- plate armor 2643 -- leather boots } firstItems[2] = -- druid { 2173, -- aol 2525, -- d shield 7429, -- super wand 2124, -- ring 2457, -- steel helmet 2647, -- plate legs 2463, -- plate armor 2643 -- leather boots } firstItems[3] = -- paladin { 2173, -- aol 2525, -- d shield 8857, -- super bow 7850, -- super arrow 2124, -- ring 2457, -- steel helmet 2647, -- plate legs 2643, -- leather boots 2463 -- plate armor } firstItems[4] = -- knight { 2173, -- aol 2525, -- d shield 8931, -- super sword 2124, -- ring 2457, -- steel helmet 2647, -- plate legs 2643, -- leather boots 2463, -- plate armor 7456, -- super axe 7450 -- super club } function onLogin(cid) if getPlayerStorageValue(cid, 30001) <= 0 then for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)][i], 1) end local bag = doPlayerAddItem(cid, 1988, 1) -- backpack doAddContainerItem(bag, 2160, 100) -- crystal coin doAddContainerItem(bag, 2554, 1) -- shovel(pa) doAddContainerItem(bag, 2120, 1) -- rope(corda) doAddContainerItem(bag, 7618, 1) -- hp potion setPlayerStorageValue(cid, 30001, 1) end return true end ]]></event> </mod>
-
Vida e mana
compila em 32bits, vai consumir menos
-
Vida e mana
creio q não vai chegar em 100% n... E seu pc é oq? 32 ou 64?
-
[EVENTO] Castle 24H "Diferente"
Então seria um monstro, que vc coloca no lugar da alavanca, e ao matar ele, vc ganha a storage etc?
-
Vida e mana
ser estável não é consumir menos memoria ou manter apenas certa porcentagem de memoria kkk, ser estável é ficar um boooom tempo online, sem ocorrer bugs criticos e nem fechar o server sozinho tendeu? Não ocorrer anomalias. Por ser 64bits a compilação, ele vai consumir mais memória consequentemente, por causa da arquitetura(64) que é mais 'pesada'
-
Vida e mana
tenta usar a distro antiga q vc tinha antes, se funcionar, faz um backup da sua database. Outra coisa, é q vc n pode mexer mais no encryptionType n entendi
-
[EVENTO] Castle 24H "Diferente"
desculp,e não sou o criador do sistema, e n entendo quase nada do tfs 1.x Como assim? ao invés de clicar na alavanca, clicar em uma pedra?
-
Vida e mana
o encryprion da sua database tava como plain ou sha1? eu uso essas dll's https://github.com/s3kk/tfs04/releases/tag/1.3
-
(Resolvido)[moveevent] Adicionar 'delay' em TELEPORT
sinceramente, não sei se funciona local pos1 = {x = 1290, y = 975, z = 7} local pos2 = {x = 1290, y = 974, z = 7} local pos3 = {x = 1290, y = 973, z = 7} local c = { s = 121223, t = 121224, p = 2 } function onStepIn(cid, item, position, fromPosition) if isPlayer(cid) then doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, pos1) setPlayerStorageValue(cid, c.s, os.time() + c.p) end if getPlayerStorageValue(cid, c.s) > 0 then doSendPlayerCancel(cid, "Wait 2 seconds.") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, pos2) setPlayerStorageValue(cid, c.t, os.time() + c.p) end if getPlayerStorageValue(cid, c.t) > 0 then doSendPlayerCancel(cid, "Wait 2 seconds.") else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, pos3) doSendMagicEffect(getThingPos(cid), 2) end return true end
-
SISTEMA DEATHBROADCAST
no q vc tinha, o registro no login.lua tem q estar exatamente igual o xml, deathBroadcast
-
SISTEMA DEATHBROADCAST
function onDeath(cid, corpse, deathList) if isPlayer(cid) then return doBroadcastMessage(" O Jogador ".. getCreatureName(cid) .. " [Level: " .. getPlayerLevel(cid) .. "] Foi morto pelo jogador " .. getCreatureName(deathList[1]) .. " [Level: " .. getPlayerLevel(deathList[1]) .. "]",20) end return doBroadcastMessage(" O Jogador ".. getCreatureName(cid) .. " [Level: " .. getPlayerLevel(cid) .. "] Foi morto pelo monstro " .. getCreatureName(deathList[1]) .. ".",20) end
-
Vida e mana
Tem 2 videos ensinando isso na minha assinatura, um ensinando no ubuntu, outro no windows(visual studio 2010)
-
(Resolvido)Baú que sorteia 4 itens ou +
@tirso function onUse(cid, item, fromPosition, itemEx, toPosition) local items = {6497,2472,2471, 2160, 12640, 12411, 12468} -- defina seus itens local r = items[math.random(#items)] local m = 9971 -- item q usa como moeda local q = 10 -- preço local p = getPlayerPosition(cid) if doPlayerRemoveItem(cid, m, q) then if r == 2160 or r == 12640 or r == 12411 or r == 12468 then doPlayerAddItem(cid, r, 10) doPlayerSendTextMessage(cid,22,"Você ganhou uma "..getItemNameById(r)) doBroadcastMessage("O player "..getCreatureName(cid).." acabou de ganhar 10 "..getItemNameById(r).." do random box", 22) doSendMagicEffect(p, CONST_ME_MAGIC_BLUE) else 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) doSendMagicEffect(p, CONST_ME_MAGIC_BLUE) end else doPlayerSendCancel(cid, "Sorry, you don't have enough money") doSendMagicEffect(p, CONST_ME_POFF) end return true end
-
(Resolvido)Baú que sorteia 4 itens ou +
passa o id dos itens q tem q vir a cima de 1, e é pra ser aleatório essa quantidade? e eu ja arrumei o doSendMagicEffect, ja editei a minha ultima resposta ali
-
(Resolvido)Baú que sorteia 4 itens ou +
esse ate eu testei e gostei uahauh function onUse(cid, item, fromPosition, itemEx, toPosition) local items = {6497,2472,2471, 2160} -- defina seus itens local r = items[math.random(#items)] local m = 9971 -- item q usa como moeda local q = 10 -- preço local p = getPlayerPosition(cid) if doPlayerRemoveItem(cid, m, q) then if r == 2160 then doPlayerAddItem(cid, r, 100) doPlayerSendTextMessage(cid,22,"Você ganhou uma "..getItemNameById(r)) doBroadcastMessage("O player "..getCreatureName(cid).." acabou de ganhar 100 "..getItemNameById(r).." do random box", 22) doSendMagicEffect(p, CONST_ME_MAGIC_BLUE) else 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) doSendMagicEffect(p, CONST_ME_MAGIC_BLUE) end else doPlayerSendCancel(cid, "Sorry, you don't have enough money") doSendMagicEffect(p, CONST_ME_POFF) end return true end
-
(Resolvido)Baú que sorteia 4 itens ou +
Como assim? Mas funcionou o script?
-
(Resolvido)Baú que sorteia 4 itens ou +
@tirso n sei se funciona tbm uahauh tenta ai function onUse(cid, item, fromPosition, itemEx, toPosition) local items = {6497,2472,2471, 2160} -- 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 if r == 2160 then doPlayerAddItem(cid, r, 100) doPlayerSendTextMessage(cid,22,"Você ganhou uma "..getItemNameById(r)) doBroadcastMessage("O player "..getCreatureName(cid).." acabou de ganhar um "..getItemNameById(r).." do random box", 22) else 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 end return true end
-
Vida e mana
se usar as libs corretas, n da erro n