Ir para conteúdo

Diego Heck

Membro
  • Registro em

  • Última visita

Tudo que Diego Heck postou

  1. Diego Heck postou uma resposta no tópico em Websites
    resolveu reputado
  2. Diego Heck postou uma resposta no tópico em Websites
    show, obrigado!!! tenho outro erro também, Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'basic.guild_wars' doesn't exist' in C:\xampp\htdocs\wars.php:54 Stack trace: #0 C:\xampp\htdocs\wars.php(54): PDO->query('SELECT * FROM `...') #1 C:\xampp\htdocs\index.php(147): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\wars.php on line 54
  3. Diego Heck postou uma resposta no tópico em Websites
    Como faço esse tipo de execução? teria como fazer um passo a passo básico? não tenho um grande conhecimento de database ainda. Obrigado
  4. a configuração é feita pelo phpmyadmin é meio diferente do sqlite, não encontrei ainda o local certo de adicionar essa tab ta aí mesmo fazendo pelo sqlite não obtive sucesso
  5. sim, a única coisa que não fiz foi adicionar essa query aí, porem os passos aí não são os mesmos para o mysql, sabe me informar como prossigo? tentei de tudo e continuo na mesma
  6. Acho que não entendi direito, pode detalhar mais por favor?
  7. Diego Heck postou uma resposta no tópico em Websites
  8. não consegui fazer ele rodar no servidor, como se ele nao entendesse o código se nao me engano. estou no traalho, mas logo que chegar em casa posto o erro [28/08/2014 21:40:15] [Error - LuaScriptInterface::loadFile] data/npc/scripts/Donate.lua:5: function arguments expected near ':' [28/08/2014 21:40:15] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/Donate.lua [28/08/2014 21:40:15] data/npc/scripts/Donate.lua:5: function arguments expected near ':'
  9. Diego Heck postou uma resposta no tópico em Websites
    To exatamente com o mesmo problema, se alguém conseguir solucionar por favor compartilhe
  10. Bom galera, preciso de um script na qual o npc vende item por premium days, encontrei em um outro fórum esse, porem nao esta atualizado, gostaria qu alguem ajudasse na reabilitação do script add in lib/function [LUA] function getAccountPoints(cid) local res = db.getResult('select `premium_points` from accounts where name = \''..getPlayerAccount(cid)..'\'') return res:getDataInt("premium_points") < 0 and 0 or res:getDataInt("premium_points") end function doAccountRemovePoints(cid, count) return db.executeQuery("UPDATE `accounts` SET `premium_points` = '".. getAccountPoints(cid) - count .."' WHERE `name` ='"..getPlayerAccount(cid).."'") end[/LUA] Npc: [LUA]local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end function onThink() npcHandler:eek:nThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local shopWindow = {} local t = { [2195] = 1, [2493] = 25, [2361] = 30, [8851] = 20, [8925] = 30, [2640] = 50, [2494] = 100, [9932] = 50, [2472] = 70, [8931] = 100 } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and getAccountPoints(cid) < t[item] then selfSay("You need "..t[item].." points to buy this item.", cid) else doAccountRemovePoints(cid, t[item]) doPlayerAddItem(cid, item) selfSay("Here your item!", cid) end return true end if (msgcontains(msg, 'trade') or msgcontains(msg, 'TRADE'))then for var, ret in pairs(t) do table.insert(shopWindow, {id = var, subType = 0, buy = ret, sell = 0, name = getItemNameById(var)}) end openShopWindow(cid, shopWindow, onBuy, onSell) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())[/LUA] [2640] = 50, [ITEM ID] = POINTS NEED

Informação Importante

Confirmação de Termo