Esse é quando o player upar ate o lvl [ 50 ] que estar nos quadrados ele ganharar o item é a quantidade... tendeu
info
Grupo: Infante
Registrado: 06/03/13
Posts: 1.6k
Reputação: +319
Gênero: Masculino
Char no Tibia: Lord Sorte

info
Grupo: Conde
Registrado: 20/09/12
Posts: 711
Reputação: +86
Char no Tibia: noé

o 1° é pra quando atingir tao lvl, que ta na variavel. entre parenteses [] ganhar tal item, e qntidade.
o 2° é pra quando o player tiver parado, "AFK", por quantidade de tempo, ele automaticamente sera kikado. isso se chama ANTI IDLE.
Editado Setembro 27 por Maenilse
info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino

Brigado,
info
Grupo: Campones
Registrado: 31/08/13
Posts: 93
Reputação: +17
Char no Tibia: Evarin Thin

3º acho que e quando um player pegar skull adicionar o item 12635 e se vc quer quando o player tiver com skull perde o set
4º e pra quando o player morre nao passa de lvl 8 exemplo: eu to lvl 8 ai chega um fdp lazarento e me mata ao enves (nao sei se escreve assim) de ir pro lvl 7 eu continuo no 8
info
Grupo: Conde
Registrado: 08/07/10
Posts: 914
Reputação: +128
Char no Tibia: Original Kuatxih

Brigado,
Primeiro aviso, cuidado com o flood.
info
Grupo: Marquês
Registrado: 16/06/07
Posts: 1.2k
Reputação: +377
Gênero: Masculino
Char no Tibia: Nenhum

Tópico movido para a seção de dúvidas e pedidos resolvidos.
O tópico foi fechado e movido para lixeira por estar inativo a mais de 30 dias. Caso seja preciso reabrir o mesmo, favor entrar em contato com a equipe.




info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino
Tenho vários scripts aqui,gostaria de saber pra que eles servem
1-:
function onAdvance(cid, skill, oldLevel, newLevel) local config = { [20] = {item = 2160, count = 2}, [50] = {item = 2160, count = 5}, [100] = {item = 2160, count = 10}, [150] = {item = 2160, count = 15}, [200] = {item = 2160, count = 20}, [250] = {item = 2160, count = 30}, [300] = {item = 2160, count = 50}, [350] = {item = 2160, count = 70}, [400] = {item = 2160, count = 100}, } if skill == 8 then for level, info in pairs(config) do if newLevel >= level and (getPlayerStorageValue(cid, 30700) == -1 or not (string.find(getPlayerStorageValue(cid, 30700), "'" .. level .. "'"))) then doPlayerAddItem(cid, info.item, info.count) doPlayerSendTextMessage(cid, 27, "Parabéns Guerreiro você atingiu o level "..newLevel.." e ganhou "..info.count.." "..getItemNameById(info.item)..".") local sat = getPlayerStorageValue(cid, 30700) == -1 and "Values: '" .. level .. "'" or getPlayerStorageValue(cid, 30700) .. ",'" .. level .. "'" setPlayerStorageValue(cid, 30700, sat) end end end return TRUE end2
local config = { idleWarning = getConfigValue('idleWarningTime'), idleKick = getConfigValue('idleKickTime') } function onThink(cid, interval) if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then return true end local idleTime = getPlayerIdleTime(cid) + interval doPlayerSetIdleTime(cid, idleTime) if(config.idleKick > 0 and idleTime > config.idleKick) then doRemoveCreature(cid) elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes" if(config.idleKick > 0) then message = message .. ", you will be disconnected in " local diff = math.ceil((config.idleWarning - config.idleKick) / 60000) if(diff > 1) then message = message .. diff .. " minutes" else message = message .. "one minute" end message = message .. " if you are still idle" end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return true end3
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if (getCreatureSkullType(cid) >= 4) then doSendAnimatedText(getCreaturePosition(cid),"PROTECTED!",math.random(1,255)) doSendMagicEffect(getCreaturePosition(cid),40) if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 12635) then doCreatureSetDropLoot(cid, false) end return true end return true end4
Editado Setembro 27 por SkyDarkyes