Ir para conteúdo
  • Cadastre-se

JcA

Membro
  • Total de itens

    346
  • Registro em

  • Última visita

Tudo que JcA postou

  1. ou tem outro que o @KotZletY fez mas nao achei o link, depois ele posta ai
  2. Desse jeito funciona, obrigado! Não tem problema, preguiça é o de menos! Valeu!
  3. Ué, ta igual o que você postou domodlib('Loot_func') function onSay(cid, words, param, channel) local list = "" for id, price in pairs(info.items_price) do list = list .. getItemNameById(id) .. " - [" .. (price/1000) .."] K\n" end doPlayerPopupFYI(cid, list) return true end A não ser que era para acrescentar algo nele, e eu não sabia kkk
  4. Fiz conforme orientado, isso funciona em qualquer TFS? Não citei, mas sendo ou não, TFS 0.4. E a tabela esta como no mod, enfim, é serio, não fiz nada errado aqui,
  5. Sim, fiz tudo isso, não deu aqui, se quiser testa ai e me fala
  6. Usa esse datapack http://www.tibiaking.com/forum/forums/topic/67233-860-the-forgotten-server-04-sqlite-e-mysql/
  7. Conversão das Querrys do SQL para o MYSQL CREATE TABLE death_list ( id INTEGER NOT NULL, player_id INTEGER NOT NULL, date INTEGER NOT NULL, level INTEGER NOT NULL, killer_name INTEGER NOT NULL, PRIMARY KEY ( id ) ); ALTER TABLE `players` ADD `ot_points` INTEGER NOT NULL DEFAULT 0 ALTER TABLE `killers` ADD `war` INT NOT NULL DEFAULT 0; ALTER TABLE `accounts` ADD `vip_time` INT NOT NULL DEFAULT 0; ALTER TABLE `accounts` ADD loot_time INT(15) NOT NULL DEFAULT 0; CREATE TABLE mar
  8. Quando tenta deslogar no server, da esse erro de creaturescript: Quando começa o evento, não cria o teleport, e da esse erro: --[[ <!-- DUCA Event --> <event type="login" name="Duca-Login" event="script" value="DUCA_creaturescript.lua"/> <event type="logout" name="Duca-Logout" event="script" value="DUCA_creaturescript.lua"/> <event type="preparedeath" name="Duca-Death" event="script" value="DUCA_creaturescript.lua"/> <event type="combat" name="Duca-Combat" event="script" value="DUCA_creaturescript.lua"/> ]]-- dofile('da
  9. Eu so tenho uma coisa a dizer a você, obrigado fofinho
  10. Error while executing query: near "ENGINE": syntax error Preciso para SQL
  11. Preciso de ajudar para modificar o mod de autoloot para que, o premium seja meu sistema de vip. E o pedido de uma talk !loot list que pegue os dados do mod, e mostre em pop up, o nome do item, e seu valor. items_price = {[2498] = 40000,[2523] = 150000, [2656] = 15000,[2195] = 40000,[2520] = 40000,[2492] = 60000, [2466] = 30000,[2646] = 100000,[2470] = 80000, [2522] = 100000, [2472] = 100000, [2514] = 80000, [2645] = 40000, [2528] = 8000} Ficando da seguinte forma na talk (exemplo): ROYAL HELMET - [40K ] ou 40000 DEMON SHIELD - [40K] MAS
  12. Do MysQL para o SQL CREATE TABLE IF NOT EXISTS `players_dtk` ( `name` varchar(30) NOT NULL, `group_name` varchar(10) NOT NULL, `escolhido` int(2) NOT NULL DEFAULT '0', `town` int(4) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  13. Deu certo, faz no outro script também, no critical
  14. doPlayerSendTextMessage(cid,22,"You've already reached the MAX level of Critical Skill.\nCongratulations!!!!") ESSA MENSAGEM /\ SÓ DEVE APARECER QUANDO O PLAYER USAR O ITEM, OK, ISSO JA FUNCIONA NO SCRIPT doBroadcastMessage("The player ".. getCreatureName(cid).. " conquered the 100 critical stone. Congratulations!") ESSA MENSAGEM /\ FOI O QUE EU COLOQUEI NO SCRIPT, O PROBLEMA É QUE, EU QUERO QUE ELA FUNCIONE APENAS UMA VEZ QUANDO O PLAYER ALCANÇAR OS 100 ITENS CONQUISTADOS. SÓ ISSO.
  15. Mais explicado que isso? Quando essa action funciona, quando o player alcança o 100/100 vai emitir a mensagem broadcast apenas uma vez, só quando chegar 100/100. e essa outra mensagem, aparece pro player só quando ele tentar usar o item, e ja tiver 100/100
  16. Ajuda para sair a mensagem do broadcast apenas uma unica vez, só a broadcast local config = { effectonuse = 13, -- efeito que sai levelscrit = 100, --- leveis que terão storagecrit = 48903 -- storage que será verificado } local notallowed = {1,2,3,4} function onUse(cid, item, frompos, item2, topos) if not isInArray(notallowed, getPlayerVocation(cid)) then if getPlayerStorageValue(cid, config.storagecrit) < config.levelscrit then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,config.effectonuse) doPlayerSendTextMessage(cid,22,"You've Leveled your Cri
  17. Arte da improvisation, tu faz o npc aqui aceitar o item como meio de compra tb? 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 re
  18. Qual é o erro torpe aqui na talk? local id = 9020 function onSay(cid, words, param, channel) local points = getPlayerPoints(cid, 45452) if points <= 0 then return true end doPlayerRemovePoints(cid, points) else doCreatureSay(cid, "You do not have donate points.", TALKTYPE_ORANGE_1) doPlayerAddPoints(cid, id, points) doCreatureSay(cid, "You converted points into coins", TALKTYPE_ORANGE_1) return true end function doPlayerRemovePoints(cid, amount) local current = getPlayerStorageValue(cid, 45452) if current - amount < 0 then return false else setPlayerStora
  19. Não deu certo, a mensagem 1, aparece para quem é vip, e a 2 para quem não é, entendeu? Me ajuda no script do movements tb...?
  20. Estou tentando implantar esse sistema que aumenta em 20% para quem é vip, adicionei o bloqueio do acc manager, e troquei as variaveis, porém não deu muito certo. O objetivo era aparecer apenas uma mensagem para quem não é vip, e 1 para quem é vip. function onLogin(cid) local rate = 1.2 -- 10% a mais de exp. local config = { hasVip = "You have "..((rate - 1)*100).."% rom exp! Enjoy the benefits vip donate!", -- mensagem apenas para vip hasVip = "Hello player enjoy the benefits vip, you will win "..((rate - 1)*100).."% more than xp!", -- mensagem para quem não é vip } if (str
  21. Não tem como, só em Linux, infelizmente.
  22. <?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, -- Amulet of Loss 2525, -- Dwarven Shield 3965, -- Hunting Spear 2124, -- Ring of Healing 2457, -- Steel Helmet 2647, -- Plate Legs 2463, -- Plate Armor 2195 -- Boots of Haste } firstItems[1] = -- sorcerer { 2173, -- Amulet of Loss 8902, -- Spellbook of Mind Control 2437, -- Start Staff 2214, -- Ring of Healing 7900, -- Magma Monocle 7894, -- Magm
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo