Radiel
-
Total de itens
13 -
Registro em
-
Última visita
Histórico de Reputação
-
Radiel deu reputação a Benny em Background para Tibia - Site, Face e Cliente!
o cara pega a stock que outro membro de outro fórum ajeitou
pega a style da net
e vem citar meu nome, watfuck
é como diziam no chat, esses estrumes nunca evoluem mesmo
-
Radiel recebeu reputação de VictorWEBMaster em [Encerrado] Vps
Na verdade o VPS não tem como mudar IP.
Oque você pode fazer é criar um NO-IP com o IP do VPS.
-
Radiel recebeu reputação de VictorWEBMaster em Shop não entrega itens corretamente
Se for pra modern acc o erro não tá no PHP e sim faltando um script!
Crie um arquivo chamado shop.lua no seu globalevents e coloque isso dentro:
function onThink(interval, lastExecution, thinkInterval) local result = db.getResult("SELECT * FROM shop_history WHERE `processed` = 0;") if(result:getID() ~= -1) then while(true) do cid = getCreatureByName(tostring(result:getDataString("player"))) product = tonumber(result:getDataInt("product")) itemr = db.getResult("SELECT * FROM shop_offer WHERE `id` = "..product..";") if isPlayer(cid) then local id = tonumber(itemr:getDataInt("item")) local tid = tonumber(result:getDataInt("id")) local count = tonumber(itemr:getDataInt("count")) local tipe = tonumber(itemr:getDataInt("type")) local productn = tostring(itemr:getDataString("name")) if isInArray({5,8},tipe) then if getPlayerFreeCap(cid) >= getItemWeightById(id, count) then if isContainer(getPlayerSlotItem(cid, 3).uid) then received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count) if received then doPlayerSendTextMessage(cid,19, "Você recebeu o item >> "..productn.." << do shop") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem espaço para receber o item >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem espaço para receber o item >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem capacidade para recber o item >> "..productn.." << (Você precisa de: "..getItemWeightById(id, count).." Capacidade)") end elseif isInArray({6,7},tipe) then if tipe == 6 then bcap = 8 bid = 1987 elseif tipe == 7 then bcap = 20 bid = 1988 end if isItemRune(id) then count = 1 end if getPlayerFreeCap(cid) >= (getItemWeightById(1987, 1) + getItemWeightById(id,count * bcap)) then local bag = doCreateItemEx(bid, 1) for i = 1,bcap do doAddContainerItem(bag, id, count) end received = doPlayerAddItemEx(getPlayerSlotItem(cid, 3).uid, bag) if received == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid,19, "Você recebeu o item >> "..productn.." << do shop") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem espaço para receber o item >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem capacidade para receber o item >> "..productn.." << (Você precisa de: "..getItemWeightById(id, count).." capacidade)") end end end itemr:free() if not(result:next()) then break end end result:free() end return true end Agora no globalevents.xml coloque essa linha:
<globalevent name="shopModernAcc" interval="30" event="script" value="shop.lua"/> -
Radiel recebeu reputação de LookMe em Shop não entrega itens corretamente
Se for pra modern acc o erro não tá no PHP e sim faltando um script!
Crie um arquivo chamado shop.lua no seu globalevents e coloque isso dentro:
function onThink(interval, lastExecution, thinkInterval) local result = db.getResult("SELECT * FROM shop_history WHERE `processed` = 0;") if(result:getID() ~= -1) then while(true) do cid = getCreatureByName(tostring(result:getDataString("player"))) product = tonumber(result:getDataInt("product")) itemr = db.getResult("SELECT * FROM shop_offer WHERE `id` = "..product..";") if isPlayer(cid) then local id = tonumber(itemr:getDataInt("item")) local tid = tonumber(result:getDataInt("id")) local count = tonumber(itemr:getDataInt("count")) local tipe = tonumber(itemr:getDataInt("type")) local productn = tostring(itemr:getDataString("name")) if isInArray({5,8},tipe) then if getPlayerFreeCap(cid) >= getItemWeightById(id, count) then if isContainer(getPlayerSlotItem(cid, 3).uid) then received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count) if received then doPlayerSendTextMessage(cid,19, "Você recebeu o item >> "..productn.." << do shop") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem espaço para receber o item >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem espaço para receber o item >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem capacidade para recber o item >> "..productn.." << (Você precisa de: "..getItemWeightById(id, count).." Capacidade)") end elseif isInArray({6,7},tipe) then if tipe == 6 then bcap = 8 bid = 1987 elseif tipe == 7 then bcap = 20 bid = 1988 end if isItemRune(id) then count = 1 end if getPlayerFreeCap(cid) >= (getItemWeightById(1987, 1) + getItemWeightById(id,count * bcap)) then local bag = doCreateItemEx(bid, 1) for i = 1,bcap do doAddContainerItem(bag, id, count) end received = doPlayerAddItemEx(getPlayerSlotItem(cid, 3).uid, bag) if received == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid,19, "Você recebeu o item >> "..productn.." << do shop") db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";") else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem espaço para receber o item >> "..productn.." <<") end else doPlayerSendTextMessage(cid,19, "Desculpe, você não tem capacidade para receber o item >> "..productn.." << (Você precisa de: "..getItemWeightById(id, count).." capacidade)") end end end itemr:free() if not(result:next()) then break end end result:free() end return true end Agora no globalevents.xml coloque essa linha:
<globalevent name="shopModernAcc" interval="30" event="script" value="shop.lua"/> -
Radiel deu reputação a Junior001 em [Modern AAC] Pokémon Online
Então galera eu vi o modern do Avu que é muito bom resolvi edita-lo para pokémon arrumar samples e tals aquelas coisas e também o template é claro então ta ae.
Para quem quiser baixa-lo link no fim do tópico.
Print:
Download:
http://www.4shared.com/rar/jxrqjEON/POKEMON.html?
Scan, Creio que o 4Shared quando agente dar upload ele automaticamente scanea o Arquivo.
CREDITOS
Avuenja
and
Junior001
-
Radiel deu reputação a lachost12 em [Global] Original Sem Bugs!
Cidades!
Quests!
Raids!
Informações do Server:
War System (Escudos)
Distro DEV_0.4
Spells 8.6 100%
Npc's Igual RL
Sem bugs (dinheiro, entre outros).
Server pronto para por Online.
Outros:
Download:
Créditos:
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.