Tudo que macalo postou
-
[PEDIDO] DO ZOMBIEVENT AUTOMATICO
E QUERIA UM SCRIP COM O SYSTEMA DE ZOMBI EVENTO PARA CADA DIA AS 16.00 COMEÇE O EVENTO..
-
Infesty Galery
blz
-
(Resolvido)[SCRIPT] DE ENTREGAR O ITEM AUTOMATICAMENTO DO SHOP
UE resolvi O ERRO Q TAVA DANDO ERA POR O Intervalo TAVA MUITO CURTO <globalevent name="shop" interval="30" script="shop.lua"/> EU MUDEI PRA ESSE <globalevent name="shop" interval="30000" script="shop.lua"/> AI O ERRO SAIO E CHEGO ITENS
-
(Resolvido)[SCRIPT] DE ENTREGAR O ITEM AUTOMATICAMENTO DO SHOP
sim eu tenho ja o que eu Faço ?
-
[ERRO] SCRIPT
EU USEI ESSE SCRIPT <globalevent name="shop" interval="30" script="shop.lua"/> e nas pasta scripts, crie um arquivo chamado shop.lua e add isso dentro: -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### 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) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) 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.') 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 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ AI DEU ESSE ERRO [28/3/2014 13:26:59] [Error - LuaInterface::loadFile] data/globalevents/scripts/shop.lua:100: '=' expected near '>' [28/3/2014 13:26:59] [Error - Event::checkScript] Cannot load script (data/globalevents/scripts/shop.lua) [28/3/2014 13:26:59] data/globalevents/scripts/shop.lua:100: '=' expected near '>' ALGUÉM SABE RESOLVER?
-
(Resolvido)[SCRIPT] DE ENTREGAR O ITEM AUTOMATICAMENTO DO SHOP
SQL DEU ESSE ERRO QUANDO FUI EXECUTAR Erro Consulta SQL: CRIAR TABELA QUE NAO EXISTE `z_shop_offer` ( `Id` INT ( 11 ) NOT NULL AUTO_INCREMENT , `pontos` INT ( 11 ) NOT NULL PADRÃO '0 ' , `itemid1` INT ( 11 ) NOT NULL PADRÃO '0 ' , `count1` INT ( 11 ) NOT NULL PADRÃO ' 0 ' , `itemid2` INT ( 11 ) NOT NULL PADRÃO '0 ' , `` count2 INT ( 11 ) NOT NULL PADRÃO '0 ' , `offer_type` VARCHAR ( 255 ) DEFAULT NULL , `` offer_description texto NOT NULL , `offer_name` VARCHAR ( 255 ) NOT NULL , PRIMARY KEY ( `id` ) ) ; Point Of Sale Fazer MySQL: # 1103 - Nome da Tabela incorreto 'z_shop_offer' O QUE EU FAÇO ?
-
(Resolvido)[SCRIPT] DE ENTREGAR O ITEM AUTOMATICAMENTO DO SHOP
Gesior
-
[Pedido] Castle 24h
ANA PAULA tem como manda pra min tb ?
-
(Resolvido)[SCRIPT] DE ENTREGAR O ITEM AUTOMATICAMENTO DO SHOP
ASSIM E QUERIA UM SCRIPT PR ENTREGA OS ITENS AUTOMATICAMENTE AOS PLAYER POR QUE NÃO TA CHEGANDO NOS PLAYER
-
[WEBSITE DUVIDA]
pra que serve isso em under ?
-
[WEBSITE DUVIDA]
ASSIM EU COLOKO LA NO SHOP DO MEU SITE CERTINHO MAIS QUANDO EU FUI TESTA AI EU COMPREI O ITEM NORMAL MAIS ELE NÃO CHEGA NA CONTTA PQ ? Transactions History Item Transactions To: From: Offer name Bought on page Received on Ot 24/7 Aki Eu Your account 0 28 March 2014, 01:15:28 Not realized yet. lost player Your account 0 28 March 2014, 01:38:18 Not realized yet. lost player Your account 0 28 March 2014, 01:43:04 Not realized yet. lost player Your account 0 28 March 2014, 01:49:09 Not realized yet. lost player Your account 0 28 March 2014, 01:52:32 Not realized yet.
-
(Resolvido)[ERRO SIMPLE] NO WEBSITE
eu vo add ai
- Erro modern acc poketibia Shop não entrega os items
-
AJUDA AI
como eu configuro vei isso q eu quero saber ?
-
(Resolvido)[ERRO SIMPLE] NO WEBSITE
o tem skype ?
-
(Resolvido)[ERRO SIMPLE] NO WEBSITE
o que é cap ? a capacidade
-
(Resolvido)[ERRO SIMPLE] NO WEBSITE
mano deu certo so que os play que eu crio no site so vem com level 1 e e queri coloka level 8 cmo eu fasso isso
-
Infesty Galery
tem como disponibilizar pra baixar ?
-
(Resolvido)[ERRO SIMPLE] NO WEBSITE
mano eu ja fiz em todos e não da certo
-
(Resolvido)[ERRO SIMPLE] NO WEBSITE
EU JA FIZ ISSO E NÃO DEU CERTO
-
(Resolvido)[ERRO SIMPLE] NO WEBSITE
assim a parada é sinistra quando eu criei uma conta no site do ot que to fazendo até ai tudo bem mais quando eu crio um charpelo site ai vo loga ele pede pro administrador ajeita a posição mais tipo meu config.lua ta todo certo quando eu crio pelo accountmanager ele loga certinho mais quando eu crio a conta pelo site ai quando eu vo loga ele pede pra o administrador da uma ajeitada la. alguém ajuda ai pf
-
(Resolvido)[ERRO] localhost/install.php
não era isso vei era o apache q tava com erro mais msm assim vlw
-
(Resolvido)[ERRO] NO XAMP
eu ja resolvi aki o problema era o erro no apache msm
-
(Resolvido)[ERRO] localhost/install.php
#4 jakimif onde eu coloko isso $page = null;
-
(Resolvido)[ERRO] NO XAMP
ASSSIM QUANDO EU USO A VERSÃO xampp-win32-1.6.5 ELE DA ESSE ERRO [26/03/2014 15:22:40] Failed connecting to database - MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10061) (2003) [26/03/2014 15:22:40] > ERROR: Couldn't estabilish connection to SQL database! ELE NÃO CONECTA NA DATA BASE MAIS QUANDO EU USO A VERSÃO xampp-win32-1.7.5, ELE CONECTA CERTINHO NA DATABASE MAIS DA ESSE ERRO QUANDO EU VO ESTALAR O SITE DO OT Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 40 Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 52 Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 63 AI EU QUERIA USAR A VERSÃO xampp-win32-1.7.5 POR QUE O MYSQL CONECTA CERTO EI SO É AJEITA O ERRO ABAIXO vvvvv Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 40 Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 52 Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 63 ALGUÉM AJUDA PF