-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 1049 visualizações
-
- 0 respostas
- 2084 visualizações
-
- 0 respostas
- 3162 visualizações
-
- 3 respostas
- 4340 visualizações
-
- 2 respostas
- 1955 visualizações
-

Pergunta
SkyDarkyes 104
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 por SkyDarkyesLink para o comentário
https://xtibia.com/forum/topic/221784-para-que-serve/Compartilhar em outros sites
6 respostass a esta questão
Posts Recomendados