Tudo que f.silva postou
- wtf?
-
Tem algum designer fera ai?
Beeny...
-
[AJUDA] Bug no shop do gesior
Primeiro limpe a tabela z_ots_communication Dps de limpar todos os pedidos de itens comprados no shop ... troque o seu shop.lua por esse : -- ### CONFIG ### -- message send to player by script "type" (types you can check in "data/lib/000-constants.lua") SHOP_MSG_TYPE = MESSAGE_STATUS_CONSOLE_BLUE -- time (in seconds) between queries to MySQL database by shop script SQL_interval = 40 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM `z_ots_comunication` WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) action = tostring(result_plr:getDataString("action")) delete = tonumber(result_plr:getDataInt("delete_it")) cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) == TRUE then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) doItemSetAttribute(new_container, "description", 'Bought by ' .. getCreatureName(cid) .. ' [ID:' .. id .. '].') doItemSetAttribute(new_container, "tid", id) local iter = 0 while iter ~= container_count do local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) doItemSetAttribute(new_item, "description", 'Bought by ' .. getCreatureName(cid) .. ' [ID:' .. id .. '].') doItemSetAttribute(new_item, "tid", id) doAddContainerItemEx(new_container, new_item) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) doItemSetAttribute(new_item, "description", 'Bought by ' .. getCreatureName(cid) .. ' [ID:' .. id .. '].') doItemSetAttribute(new_item, "tid", id) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') doPlayerSave(cid) db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return true end .xml <globalevent name="shop" interval="40000" script="shop.lua"/>
-
[PEDIDO] Ajustar o meu script da alavanca dos rats em rookgaard
poss = { [1] = {x=32099, y=32205, z=8}, [2] = {x=32100, y=32205, z=8}, [3] = {x=32101, y=32205, z=8} } local lever = { [1] = {x=32098, y=32204, z=8}, [2] = {x=32104, y=32204, z=8} } local itemids = 5770 local exhausth = 2 function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == 1945 then if (getGlobalStorageValue(11548) <= os.time()) then doTransformItem(getTileItemById(poss[1],4645).uid,itemids) doCreateItem(itemids,poss[1]) doCreateItem(itemids,poss[2]) if getTileItemById(poss[2],4645).itemid ~= nil then doTransformItem(getTileItemById(poss[2],4645).uid,itemids) end if getTileItemById(poss[3],4647).itemid > 0 then doTransformItem(getTileItemById(poss[3],4647).uid,itemids) end doTransformItem(item.uid,item.itemid+1) doTransformItem(getTileItemById(lever[b],1945).uid,1946) setGlobalStorageValue(11548,os.time()+exhausth) end elseif item.itemid == 1946 then doTransformItem(getTileItemById(poss[2],5770).uid,4619) doCreateItem(4616,poss[1]) doCreateItem(351,poss[3]) doCreateItem(4645,poss[1]) doCreateItem(9023,poss[1]) doCreateItem(4647,poss[3]) doTransformItem(item.uid,item.itemid-1) doTransformItem(getTileItemById(lever[b],1946).uid,1945) end return TRUE end
-
(Resolvido)[Ajuda] Como se limpa todas as houses? mysql
Vai na coluna houses, clica em limpar >>/\ e solved
- [Nicaw AAC] Sistema de SHOP simples.
- [ERRO] Compilar TFS 1.0 UBUNTO 12.10
-
[PESQUISA] Dê sugestões para servidor de pokémon!
Ah sim, com esse gráficos prefiro jogar minecraft hu3
-
[PESQUISA] Dê sugestões para servidor de pokémon!
http://www.psoul.net/ Slowmotion discorda do seu comentário, ainda mais na época que eu jogava onde batia 300 players on fácil ... olha que ele nem divulgava, hj deve ter em torno de uns 100 on, dps de tanta merda que ele fez ...
-
[PESQUISA] Dê sugestões para servidor de pokémon!
joga GBA de Pokemon, dps vem e faz um serve de verdade ...
-
(Resolvido)[ACTION] - Ao clicar no item ganha bless?!
script 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
-
(Resolvido)Tirar vocações do site.
config.php Exemplo : $config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample'); $vocation_list = array(1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); Retirei druid, pala e kina ... $config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample'); $vocation_list = array(1 => 'Sorcerer');
- [ERRO] Compilar TFS 1.0 UBUNTO 12.10
-
(Resolvido)Aprendendo Script
Opah ai sim, sempre é bom ver pessoas querendo aprender
-
(Resolvido)Aprendendo Script
Primeiramente 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...
-
Mermão que vontade...
- linux tirar arquivo do rar
- linux tirar arquivo do rar
- Primeiro trabalho spriting
Não sou nenhum god do spriting nem ao menos sei... mas acho que a empunhadura e a guarda mão estão fora de proporção pra lamina da espada mas para o primeiro trabalho está ótimo creio eu.- (Resolvido)(AJUDA) Erro Pagina Cast System Gesior ACC
- (Resolvido)(AJUDA) Erro Pagina Cast System Gesior ACC
- (Resolvido)[PEDIDO] Pagina Igual ou Parecida Com Essa
Qual é o site em questão que tu vai usar ? se possível poderia deixar o link, pra mim baixar... ai quando eu tiver entediado faço pra você;- (Resolvido)(AJUDA) Erro Pagina Cast System Gesior ACC
Primeiramente quando vir pedir ajuda, nunca coloque o arquivo em questão pra baixar, pois assim irá diminuir suas chances de alguém te ajudar, pois além de perder tempo ajudando os outros ter que ficar baixando arquivos inúteis no próprio computador é o cumulo , então da próxima vez ou posta o arquivo em spoiler no tópico ou no pastebin .. Vai no seu index.php : procure por : define('DEBUG_DATABASE', false); mude pra true... define('DEBUG_DATABASE', true); Assim irá dar mais detalhes sobre o erro, pelo que eu vi é alguma coluna na database faltando, se não entender o erro, poste o erro aqui...- Erro no Xampp [security]
Primeiramente desinstale essa versão que você está usando... e baixe essa 1.7.3.- Baiak Natal.. inovador (25/12/2014)
Informação Importante
Confirmação de Termo