-
Total de itens
3406 -
Registro em
-
Última visita
-
Dias Ganhos
113
Tudo que Vodkart postou
-
local time = 30 -- Tempo em segundos local refuel = 42 * 60 * 1000 function onUse(cid, item, fromPosition, itemEx, toPosition) if (getPlayerStorageValue(cid, 141012) >= os.time()) then return doPlayerSendCancel(cid, "Wait "..time.." seconds.") elseif (getPlayerStamina(cid) >= refuel) then return doPlayerSendCancel(cid, "Your stamina is already full.") end doPlayerSetStamina(cid, refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled, please relog to activate.") doRemoveItem(item.uid) setPlayerStorageValue(cid, 141012, os.time()+time) return true end
-
quem ta solteiro nunca fica só
-
com o autor do tópico
-
se for pra postar coisa pela metade então não posta né seu filho da puta fica querendo se aparecer aí
-
ah seu nojento para de espalhar vai ficar sem pirocada hj pra aprende a me respeita na frente dos outros, abobado.
-
falta de pica da nisso q vcs estão vendo
-
@up qual versão do seu servidor? eu chegando em casa hoje darei uma olhada.
-
olha ali o mesmo level abestado
-
/\ ta td errado, você colocou "cid", só vai aparecer o level de quem usou o comando e acho q dos jogadores q estiverem off vai bugar o comando k
-
mas vc gosta do preto de noite na sua cama que eu sei delicia
-
fz mesmo kkk vc ainda é amante do lf? kkkkkkkkkkkkkkkk old times
-
function onSay(cid, words, param, channel) if getPlayerGuildId(cid) <= 0 then doPlayerSendTextMessage(cid, 27, "você não tem guild.") return true end str = "Membros da Guild "..(param == "" and "" or "Online")..":" guild = param == "" and getGuildMembers(getPlayerGuildId(cid)) or getGuildMembersOnline(getPlayerGuildId(cid)) for i = 1,#guild do str = str..""..(param == "" and guild[i] or getPlayerName(guild[i]))..""..(#guild == i and "." or ",") end return doPlayerSendTextMessage(cid, 27, str) end
-
UHAUHAUAHUAHAUHAUAHUAHUAHAAUAU aqui é barzinho do éks, entra quem quer, se não gostou do conteúdo abre o seu mapper editor e volte a fazer tuas porcarias lá tem que rir desses newfags q não entendem nada do fórum vir postar sua opinião ridícula aqui, vsf.
-
function getGuildMembersOnline(GuildId) local players = {} for _, pid in pairs(getPlayersOnline()) do if getPlayerGuildId(pid) == tonumber(GuildId) then table.insert(players, pid) end end return #players > 0 and players or false end function onStepIn(cid, item, position, fromPosition) if item.actionid == 16725 and getPlayerGuildId(cid) <= 0 or #getGuildMembersOnline(getPlayerGuildId(cid)) < 5 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"você não possui uma guild ou não possui 5 membros ou mais na sua guild.") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"bem vindo.") return true end
-
mas se você viu ali na parte superior do código eu coloquei essa função, rs.
-
guildtile.lua function CountGuildMembers(GuildId) -- function by vodkart local count = 0 local lista = db.getResult("SELECT `name`, `rank_id` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = " .. GuildId .. ");") if(lista:getID() ~= -1) then repeat count = count + 1 until not lista:next() lista:free() return count end end function onStepIn(cid, item, position, fromPosition) if item.actionid == 16725 and getPlayerGuildId(cid) <= 0 or tonumber(CountGuildMembers(getPlayerGuildId(cid))) < 5 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"você não possui uma guild ou não possui 5 membros ou mais na sua guild.") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"bem vindo.") return true end tag <movevent type="StepIn" actionid="16725" event="script" value="guildtile.lua"/>
-
teu cu n é mais meu
-
escrevi e sai correndo pau no cu de quem ta lendo
-
function onKill(cid,target,lastHit) if not isPlayer(target) or getCreatureSkullType(target) >= 1 then return true end local dif = getPlayerLevel(cid)-getPlayerLevel(target) local diff = 100 --aqui você define a diferença de lvs que receberam a punição local puni = (dif*2000) --aqui voce define quanto de experiencia o matador vai perder. if isPlayer(cid) and isPlayer(target) and dif >= diff then doPlayerSendTextMessage(cid,21,'Você não teve honra!Matou um player com '..dif..' leveis de diferença e perdeu '..puni..' pontos de expêriencia.') doPlayerAddExp(cid, -puni) end return true end
-
talkaction Adicionar Items ao Depot do Jogador[Online/Offline]
um tópico no fórum postou Vodkart Actions e Talkactions
Descrição: é um comando para enviar items direto ao depot do jogador, mesmo ele estando online ou offline! Testado: em Versão Sqlite, não sei se suporta versão Mysql/Sql additemdepot.lua function doPlayerAddDepotItems(pid, item, count) --By magus and edited by vodkart local item,count = {item},{(count or 1)} for k,v in ipairs(item) do local ls = db.getResult("SELECT `sid` FROM `player_depotitems` WHERE `player_id` = "..pid.." ORDER BY `sid` DESC LIMIT 1") return db.executeQuery("INSERT INTO `player_depotitems` (`player_id`, `sid`, `pid`, `itemtype`, `count`, `attributes`) VALUES ("..pid..", "..(ls:getDataInt("sid")+1)..", 101, "..v..", "..count[k]..", '')") or false end end function onSay(cid, words, param) local t = string.explode(param:lower(),",") if not t[1] then doPlayerSendCancel(cid, "digite Nome, Item ID, quantidade.") return true elseif not getPlayerByNameWildcard(t[1]) and not getPlayerGUIDByName(t[1]) then doPlayerSendCancel(cid, "Você deve digitar um Nome Válido.") return true elseif not tonumber(t[2]) or not tonumber(t[3]) or tonumber(t[3]) < 1 or tonumber(t[3]) > 999 or not isItemStackable(t[2]) and tonumber(t[3]) > 10 then doPlayerSendCancel(cid, "você deve digitar NOME,ID,QUANTIDADE(maior que 0"..(not isItemStackable(t[2]) and " até 10 se não for empilhavel." or " até 1000 se for empilhavel.")..").") return true elseif not isItemMovable(t[2]) or not getItemNameById(tonumber(t[2])) then doPlayerSendCancel(cid, "Este item não existe ou não pode ser adicionado ao jogador.") return true end local player = getPlayerByNameWildcard(t[1]) if player then local parcel = doCreateItemEx(ITEM_PARCEL) if isItemStackable(t[2]) or tonumber(t[3]) == 1 then doAddContainerItem(parcel, t[2], t[3]) else for i = 1, t[3] do doAddContainerItem(parcel, t[2], 1) end end doPlayerSendMailByName(getPlayerNameByGUID(getPlayerGUIDByName(t[1])), parcel, 1) else local getPlayer = getPlayerGUIDByName(t[1]) if isItemStackable(t[2]) or tonumber(t[3]) == 1 then doPlayerAddDepotItems(getPlayer, t[2], t[3]) else for i = 1, t[3] do doPlayerAddDepotItems(getPlayer, t[2], 1) end end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"você adicionou "..t[3].." "..getItemNameById(t[2]).." ao depot do jogador "..t[1]) return true end Tag <talkaction log="yes" access="5" words="/adddepot" event="script" value="additemdepot.lua"/> Exemplo de uso: /adddepot vodkart,2160,500 ou adddepot vodkart,2494,6 -
adiciona um "return true" antes do último "end" vlw
-
/\ MAS OS SERVIDORES DE VOCÊS SÃO DE WAR? DISTRO E MAPAS?
-
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 return false end local talkUser,msg = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid,string.lower(msg) local trade = { {name="platinum amulet", id=2171, buy=0, sell=2500}, {name="ring of the sky", id=2123, buy=0, sell=3000}, {name="ruby necklace", id=2133, buy=0, sell=2000}, {name="scarab amulet", id=2135, buy=0, sell=200}, {name="silver brooch", id=2134, buy=0, sell=150}, {name="terra amulet", id=7887, buy=0, sell=1500}, {name="doll", id=2110, buy=0, sell=200}, {name="light shovel", id=5710, buy=0, sell=300}, {name="pirate voodo doll", id=5810, buy=0, sell=50}, {name="voodo doll", id=3955, buy=0, sell=400} } local items = {} for _, item in ipairs(trade) do items[item.id] = {item_id = item.id, buyPrice = item.buy, sellPrice = item.sell, subType = 0, realName = item.name} end local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if items[item].buyPrice ~= 0 then doPlayerRemoveMoney(cid, amount * items[item].buyPrice) if isItemStackable(items[item].item_id) then doPlayerAddItem(cid, items[item].item_id, amount) else for i = 1, amount do doPlayerAddItem(cid, items[item].item_id, 1) end end end end local onSell = function(cid, item, subType, amount, ignoreCap, inBackpacks) if items[item].sellPrice ~= 0 then doPlayerAddMoney(cid, items[item].sellPrice * amount) doPlayerRemoveItem(cid, items[item].item_id, amount) end end if msgcontains(msg, 'trade') and getPlayerStorageValue(cid, 784745) > 0 then openShopWindow(cid, trade, onBuy, onSell) else selfSay("Não vendo nada para você!", cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Valeu por avisa, editei e já retirei esse problema do sistema. abraços
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.