Solutions
-
f.silva's post in (Resolvido)[Ajuda] Como se limpa todas as houses? mysql was marked as the answerVai na coluna houses, clica em limpar >>/\ e solved
-
f.silva's post in (Resolvido)[ACTION] - Ao clicar no item ganha bless?! was marked as the answerscript faz com que quando dar use no Item você ganhe todas as Bless.
Em actions.xml adicione:
<action itemid="8977" event="script" value="actionbless.lua"/> actionbless.lua
local cfg = { bless = { 1, 2, 3, 4, 5 }, level = 8 } function onUse(cid, item, fromPosition, itemEx, toPosition) for i = 1, table.maxn(cfg.bless) do if(getPlayerBlessing(cid, cfg.bless[i])) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doCreatureSay(cid, "You have already been blessed.", TALKTYPE_ORANGE_1) return true end end if getPlayerLevel(cid) >= cfg.level then for i = 1, table.maxn(cfg.bless) do doPlayerAddBlessing(cid, cfg.bless[i]) end doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been blessed by the gods.") end return true end
Créditos: DataPack GlobalWar
-
f.silva's post in (Resolvido)Aprendendo Script was marked as the answerPrimeiramente não aconselho seguir nenhum tutorial daqui, por enquanto ... faça assim veja essas videos-aula, são 17 aulas com 20 minutos cada(mais ou menos) ...
Clique Aqui
Depois que ver as 17 aulas você já vai ter grande noção de toda lógica da programação, o resto vai ser como tirar doce de criança e.e
Abrçs espero que não desista...
-
f.silva's post in (Resolvido)(AJUDA) Erro Pagina Cast System Gesior ACC was marked as the answerALTER TABLE `players` ADD `viewers` int(11) not null default '0';
-
f.silva's post in (Resolvido)Erro no xampp was marked as the answero problema era os cookies, apenas exclui o histórico e o problema foi resolvido
-
f.silva's post in (Resolvido)[PEDIDO] Exemplo de NPC barqueiro was marked as the answerdata/npcs/scripts/captain.lua :
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 npcHandler:addModule(FocusModule:new()) data/npcs/Captain Edward.xml :
<?xml version="1.0" encoding="UTF-8"?><npc name="Captain Edward" script="data/npc/scripts/captain.lua" walkinterval="0" floorchange="0"> <health now="144" max="150"/> <look type="128" head="95" body="100" legs="35" feet="100" addons="3" corpse="2212"/> <parameters> <parameter key="module_travel" value="1"/> <parameter key="message_greet" value="Hello |PLAYERNAME|. If you don't know where to flow, say travel."/> <parameter key="travel_destinations" value="goroma volcano,1812,391,6,350;night island,464,791,7,350"/> </parameters> </npc> Explicações :
<parameter key="travel_destinations" value="goroma volcano,1812,391,6,350;night island,464,791,7,350"/> value= "nome do local, posição x, posição y, posição z, preço do teleport"
; -- Usado pra adicionar mais locais, basta adicionar no fim do preço do teleport;
Fiz baseado em tibia TFS 0.4 ... acho que até meu cachorro entenderia;
Editei um negócio numa desatenção minha.