Tudo que Magalhaes92 postou
-
Stone HP/MP
Uma stone que uparia o itens +1 ...+2 ...+3....+4 etc... so que daria HP ou MP.
-
(Resolvido)ao logar receber msg estilo pm
UP
-
Stone HP/MP
up
-
Storage para todos que logar.
Queria que ao logar o player ganhasse a storage 10359, e essa storage ficasse para sempre no player. Alguem poderia ajuda ?
-
Stone HP/MP
Então galera, gostaria de saber se alguem disponibiliza um script que acrescente HP/MP via a Stone ( Um meio de refinamento ) que possa ser colocado em itens. Se possível que o encantamento seja FIXO ( Exe: cada stone da 100HP ). Com limite de 5 Encantamentos cada iten. REP+
-
(Resolvido)slot system dúvida
Nao sei mecher muto bem, mas ja tentei de toas as formas... Mas teria como vc botar a % fixa xWhiteWolf ?? (% Fixa 5)
-
[System] Pontos "P" Points System
O doPlayerRemovePoints(cid, quant) A função remove a quantidade(quant) de pontos do player. Esta bugado, ao comprar iten pela alavanca ou comando, o player pode comprar infintivamente ficando -Quantida. Teria como arrumar esse bug ? Ou arrumar um script de alavanca ou comando que funcione perfeitamente com o script P.Points ?
-
Mass Healing
Tem como vc por esse script por um item [ID] ?
-
Juntar os Script
Ola, Gostaria de saber se alguém poderia juntar esse script de frags look + critical e dodge. Porem eu quero usar esse fraglook e não oque esta em plantado no outro script, Se alguém puder ajudar fico muito agradecido. REP + FragLook - function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if (query:getID() ~= -1) then repeat d = d+1 until not query:next() query:free() end return d end if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." Matou: ["..getDeathsAndKills(thing.uid, "kill").."] Noobs.\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." Morreu: ["..getDeathsAndKills(thing.uid, "death").."] Vezes") end return true end Critical + Dodge + Look Frags - function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } return size.day + size.week + size.month end function onLogin(cid) registerCreatureEvent(cid, "fraglook") return true end function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then doPlayerSetSpecialDescription(thing.uid,' [Frags: '..getPlayerFrags(thing.uid)..'], [Critical: '..math.max(0,(tonumber(getCreatureStorage(thing.uid,48913)) or 0))..'], [Dodge: '..math.max(0,(tonumber(getCreatureStorage(thing.uid,98798644)) or 0))..']') return true elseif thing.uid == cid then doPlayerSetSpecialDescription(cid,' [Frags: '..getPlayerFrags(cid)..'], [Critical: '..math.max(0,(tonumber(getCreatureStorage(cid,48913)) or 0))..'], [Dodge: '..math.max(0,(tonumber(getCreatureStorage(cid,98798644)) or 0))..']') local string = 'You see yourself.' if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..getPlayerSpecialDescription(cid)..'' if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.' end if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'\nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' string = string..'\nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'\nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end up
-
Alavanca que puxa PLAYS
Ja tinha conseguido aque, mt obrigado.
-
Alavanca que puxa PLAYS
Vllw
-
Alavanca que puxa PLAYS
Então galera, queria uma alavanca que o [GOD] puxasse o os plays iam pra determinada localidade. Mas que pudesse puxar quantos quiser, se tiver so 2 iria os 2, se tivesse 5 iria os 5. Queria que fosse independente de quantos plays estivesse no piso. ( Um sistema Livre de ''precisa de 6 plays para puxar alavanca. Podesse puxar quanto quisesse.) Agradeço desde ja ! REP +
-
Gerar um comando talkactions
Então galera eu estou usando um script de p points... Mas queria saber se alguem pode fazer uma talkactions (com comando) para adicionar p points para um player. Fico muito agradecido se alguém puder ajuda. REP +
-
ME AJUDEM NE uma talkactions
up
-
ME AJUDEM NE uma talkactions
up
-
ME AJUDEM NE uma talkactions
Up up
-
ME AJUDEM NE uma talkactions
Então galera eu estou usando um script de p points... Mas queria saber se alguem pode fazer uma talkactions (com comando) para adicionar p points para um player. Fico muito agradecido se alguém puder ajuda. REP +
-
[System] Pontos "P" Points System
Sei que e antigo e to revivendo, mas to precisando MUITO, e se alguém puder ajudar... Alguém disponibiliza uma talkactions que possa adicionar os PPoints para um jogador por um comando !!?? REP+
-
[Ajuda] Player fica morrendo
Isso Aconteceu cmg devido que eu peguei os arquivos Sources com executavel que tinha cast, war system e etc... de outro OT e botei no meu. Mas dps que eu substituir pelo antigo novamente voltou ao normal. Voce fez isso ?
-
[Ajuda] Player fica morrendo
Isso Aconteceu cmg devido que eu peguei os arquivos Sources com executavel que tinha cast, war system e etc... de outro OT e botei no meu. Mas dps que eu substituir pelo antigo novamente voltou ao normal. Voce fez isso ?
-
[Urgente] Player morre e ressuscita
Isso Aconteceu cmg devido que eu peguei os arquivos Sources com executavel que tinha cast, war system e etc... de outro OT e botei no meu. Mas dps que eu substituir pelo antigo novamente voltou ao normal. Voce fez isso ?
-
Problema no reset system
sinceramente eu nao ainda nao entedi man, sou mt leigo nisso. Sera que vc poderia colocar aque pra mim ? local config = { minlevel = 3000, --- level inical para resetar price = 100000000, --- preço inicial para resetar newlevel = 20, --- level após reset priceByReset = 0, --- preço acrescentado por reset percent = 100, ---- porcentagem da vida/mana que você terá ao resetar (em relação à sua antiga vida total) maxresets = 1, levelbyreset = 0 --- quanto de level vai precisar a mais no próximo reset } --- end config function getResets(uid) resets = getPlayerStorageValue(uid, 378378) if resets < 0 then resets = 0 end return resets end 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 function addReset(cid) if(npcHandler:isFocused(cid)) then npcHandler:releaseFocus(cid) end talkState[talkUser] = 0 resets = getResets(cid) setPlayerStorageValue(cid, 378378, resets+1) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) local hp = getCreatureMaxHealth(cid) setCreatureMaxHealth(cid, 7000) local differencehp = (hp - 7000) doCreatureAddHealth(cid, -differencehp) local mana = getCreatureMaxMana(cid) setCreatureMaxMana(cid, 7000) local differencemana = (mana - 7000) doCreatureAddMana(cid, -differencemana) doRemoveCreature(cid) local description = resets+1 db.query("UPDATE `players` SET `description` = ' [Reset: "..description.."]' WHERE `players`.`id`= ".. playerid .."") db.query("UPDATE `players` SET `level`="..config.newlevel..",`experience`= 0 WHERE `players`.`id`= ".. playerid .."") return true end local newPrice = config.price + (getResets(cid) * config.priceByReset) local newminlevel = config.minlevel + (getResets(cid) * config.levelbyreset) if msgcontains(msg, 'reset') then if getResets(cid) < config.maxresets then selfSay('You want to reset your character? It will cost '..newPrice..' gp\'s!', cid) talkState[talkUser] = 1 else selfSay('You already reached the maximum reset level!', cid) end elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerMoney(cid) < newPrice then selfSay('Its necessary to have at least '..newPrice..' gp\'s for reseting!', cid) elseif getPlayerLevel(cid) < newminlevel then selfSay('The minimum level for reseting is '..newminlevel..'!', cid) else doPlayerRemoveMoney(cid,newPrice) playerid = getPlayerGUID(cid) addEvent(function() if isPlayer(cid) then addReset(cid) end end, 3000) local number = getResets(cid)+1 local msg ="---[Reset: "..number.."]-- You have reseted! You'll be disconnected in 3 seconds." doPlayerPopupFYI(cid, msg) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no')) and isInArray({1}, talkState[talkUser]) == TRUE then talkState[talkUser] = 0 npcHandler:releaseFocus(cid) selfSay('Ok.', cid) elseif msgcontains(msg, 'quantity') then selfSay('You have a total of '..getResets(cid)..' reset(s).', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)ALGUEM PODE DISPONIBILIZAR SCRIPT COLECIONADOR DE OSSO ?
Vllw man
-
Problema no reset system
Esta pegando a % ainda. Eu queria que a cada reset ele ganhasse 500hp/hp somente isso, e nao a porcentagem. Tem como ajudar ? Entedir. Mas ele so ganha no primeiro reset, dps do segundo ele nao ganha mais. Como faz pra que nos outros (2..3..4..5..etc) ganhe + 500 ?
-
Problema no reset system
Entao galera, uso esse script de reset que e pelo npc. Pois se fosse possível adaptasse para cada reset o player ganhar 500hp e 500mp. link do system: REP+ vllw