
Tudo que Vodkart postou
-
Chega Aew Galera KKKKKKKKKKKKKK
nenhum e nem outro, estou no time desse velhinha aí, vou ver se começo a pegar ônibus para ver se nós encontramos, meu viagra já está no bolso
-
Skyforever Curte Mc Tibiano kk
vc é mto vida loka cara dps me da um autografo
-
É uma notícia triste minha gente
A voz do povo é a voz de deus! Eddy para moderador baitola! parabéns amigo vamos eleger nosso líder, foda-se se é playground, eddy na cabeça
-
Notícia do Dia.
Agora me conte uma novidade
-
[Ajuda] Somente meu ip pode fazer tal ação
rsrs é verdade, esqueci o "then", estava apressado em ir pra aula free = {"aqui meu ip"} if isInArray(free, getPlayerIp(cid)) then return true end
-
[Ajuda] Somente meu ip pode fazer tal ação
local max = 10 function onLogin(cid) free = {"aqui meu ip"} if isInArray(free, getPlayerIp(cid)) return true end local i = 0 for _, it in ipairs(getPlayersOnline()) do if getCreatureName(it):lower() == "Account Manager" then i = i + 1 end end if i > max then return false end return true end
-
Chega Aew Galera KKKKKKKKKKKKKK
61
-
First itens
if getPlayerSex(cid) == 0 then doPlayerAddItem(cid, 2465, 1) -- esse é o id da armadura q o player ira nascer else doPlayerAddItem(cid, 2465, 1) -- aki tb é id da armadura end são os mesmos items, logo essa parte é desnecessária '-'
-
Chega Aew Galera KKKKKKKKKKKKKK
as coroa sofre mesmo kkkk falta de pika é fd
-
Tryller's IP Changer
show de bola cara curti bastante parabéns pelo seu job rep+
-
Tael (Othereality)
taelzito tesudo
-
Oi Oi Oi
quem é vivo sempre aparece rs bem vindo ae gato
-
[CreatureScripts] Rank diferente
nd, ele tirou de um pedido que atendeu xd
-
[18+] entrem aqui
mimiimimi
-
[18+] entrem aqui
obrigado por compartilhar esse momento tão importante comigo
-
Pessoal qual curso eu faço?
ciências contabéis ok
-
[18+] entrem aqui
cricri
-
[18+] entrem aqui
mas vc não tem nem 18 anos seu safadinho burlando as regras
- Deem opiniões ai do meu novo projeto
-
[18+] entrem aqui
agr já podem sair
-
[CreatureScripts] Rank diferente
conseguiu fazer é? ficou bacana mano! parabéns ai abraços
-
Recovery Exp
Explicação: Você compra no npc a exp que você perdeu na sua última morte. Lib > functions.lua adc death_tabble = {before_exp = 135215,after_exp = 135216, check = 251201} creaturescript/script exp_buy.lua function onLogin(cid) registerCreatureEvent(cid, "Exp_P") if getPlayerStorageValue(cid, death_tabble.check) >= 1 then setPlayerStorageValue(cid, death_tabble.after_exp, getPlayerExperience(cid)) setPlayerStorageValue(cid, death_tabble.check, -1) end return true end function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) setPlayerStorageValue(cid, death_tabble.before_exp, getPlayerExperience(cid)) setPlayerStorageValue(cid, death_tabble.check, 1) return TRUE end creaturescript.xml <event type="preparedeath" name="Exp_P" event="script" value="exp_buy.lua"/> <event type="login" name="Exp_L" event="script" value="exp_buy.lua"/> NPC: 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 = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) local itemid,count = 9020,10 -- edite o id e count do item aqui if isInArray({"recover","recuperar","exp","experience"}, msg) then npcHandler:say("você deseja recuperar a exp perdida após á sua morte por "..count.." "..getItemNameById(itemid).."? {yes}", cid) talkState[talkUser] = 1 elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerStorageValue(cid, death_tabble.before_exp) ~= -1 and getPlayerExperience(cid) < getPlayerStorageValue(cid, death_tabble.before_exp) then if doPlayerRemoveItem(cid, itemid, count) == TRUE then local count = (getPlayerStorageValue(cid, death_tabble.before_exp) - getPlayerStorageValue(cid, death_tabble.after_exp)) doPlayerAddExp(cid, count) npcHandler:say("Obrigado! aqui está sua experiência.", cid) else npcHandler:say("Desculpe, você não tem "..getItemNameById(itemid).." suficientes!", cid) talkState[talkUser] = 0 end else npcHandler:say("Desculpe, você não morreu ou já recuperou sua exp perdida!", cid) talkState[talkUser] = 0 end elseif msg == "no" then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Presente Diario (8.6x)
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 = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) local config = { hours = 24, storage = 58485, rewards = {{itemid = 2173,chance = 15},{itemid = 2123,chance = 25},{itemid = 2160,chance = 30}} -- itens que ele poderá ganhar } function doAddReward() a = true while a == true do local m = math.random(1,#config.rewards) if config.rewards[m].chance > math.random(1, 100) then doPlayerAddItem(cid, config.rewards[m].itemid, isItemStackable(config.rewards[m].itemid) and 100 or 1) npcHandler:say("seu prêmio foi: "..getItemNameById(config.rewards[m].itemid), cid) a = false end end end if isInArray({"presente","present"}, msg) then npcHandler:say("você deseja receber seu presente agora?! {yes}", cid) talkState[talkUser] = 1 elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerStorageValue(cid,config.storage) <= os.time() then doAddReward() setPlayerStorageValue(cid, config.storage, os.time()+config.hours*3600) else npcHandler:say("Desculpe, mas você deve aguardar até "..os.date("%d %B %Y %X ", getPlayerStorageValue(cid,config.storage)).." para pegar seu presente novamente!", cid) talkState[talkUser] = 0 end elseif msg == "no" then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
- Presente Diario (8.6x)
-
[System] Weapon Hit Rank!
atualizado, usei a função "getItemWeaponType" ai não precisa ficar colocando na tabela os ids das sword, clubs, etc... somente das wands e rods