tricolorgaucho 2 Postado Junho 20, 2010 Share Postado Junho 20, 2010 (editado) Tipo do script: -- Protocolo (versão do Tibia): 8.54 Servidor utilizado: TFS Nível de experiência: -- Adicionais/Informações olá, queria algo assim: Primeiro Script: quando digitasse !serverinfo aparecesse o VIP Status, assim como o da imagem Storage da VIP: 13540 Segundo Script Amuleto que quando o Player estiver RedSkull NÃO PERDER OS ITENS, MAS PERDER O AMULETO ID Amuleto: 11387 Terceiro e último Script Mesma coisa do segundo script, só que desta vez, quando o Player estiver RedSkull, ELE NÃO PERDE OS ITENS NEM O AMULETO ID Amuleto: 2196 se alguem puder me ajudar agradeço! Editado Junho 20, 2010 por tricolorgaucho Link para o comentário Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Junho 20, 2010 Share Postado Junho 20, 2010 (editado) 1° como voce nao postou o script do status vc msm vai adicionar... poe no script do status local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) "\n¤Vip Status:" .. (quantity < 0 and 0 or quantity) .. ------------------------------------------------------------ 2° vá até data\creaturescripts\scripts e crie um arquivo.lua e renomeie para preparedeaths.lua -- Sebasbe and Nicekid(Xtibia) -- function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == TRUE then if (getPlayerSlotItem(cid, 2).itemid == 11387) and getPlayerSkullType(cid) == 4 then doPlayerRemoveItem(cid, 11387 , 1) doCreatureSetDropLoot(cid, false) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return TRUE end end return TRUE end em data\creaturescripts\scripts\login.lua adiciona a linha: registerCreatureEvent(cid, "onPrepareDeaths") creaturescripts.xml adicione: <event type="preparedeath" name="onPrepareDeaths" event="script" value="preparedeaths.lua"/> ----------------------------------------------------------------- 3° vá até data\creaturescripts\scripts e crie um arquivo.lua e renomeie para preparedeath.lua -- Sebasbe and Nicekid(Xtibia) -- function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == TRUE then if (getPlayerSlotItem(cid, 2).itemid == 2196) and getPlayerSkullType(cid) == 4 then doCreatureSetDropLoot(cid, false) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return TRUE end end return TRUE end em data\creaturescripts\scripts\login.lua adiciona a linha: registerCreatureEvent(cid, "onPrepareDeath") creaturescripts.xml adicione: <event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/> Editado Junho 20, 2010 por Vodkart Link para o comentário Compartilhar em outros sites More sharing options...
tricolorgaucho 2 Postado Junho 20, 2010 Autor Share Postado Junho 20, 2010 @Vodkart aqui está o script local config = { rateExperience = getConfigInfo('rateExperience'), rateSkill = getConfigInfo('rateSkill'), rateLoot = getConfigInfo('rateLoot'), rateMagic = getConfigInfo('rateMagic'), rateSpawn = getConfigInfo('rateSpawn'), protectionLevel = getConfigInfo('protectionLevel'), stages = getBooleanFromString(getConfigInfo('experienceStages')) } function onSay(cid, words, param, channel) local exp = config.rateExperience if(config.stages) then exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) end doPlayerPopupFYI(cid, "Server Information:\n\n MENSAGEM.\n MENSAGEM.\n\n MENSAGEM.\n\n-----------------\n\nVIP Status:n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel) return true end eu boto o script que vc passou depois de VIP Status? Link para o comentário Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Junho 20, 2010 Share Postado Junho 20, 2010 ok ok ja vo bota no script voce por inquanto vai fazendo os do amuleto ja edito o topico :] Link para o comentário Compartilhar em outros sites More sharing options...
tricolorgaucho 2 Postado Junho 20, 2010 Autor Share Postado Junho 20, 2010 (editado) Os 2 amuletos estão funcionando PERFEITAMENTE!!! VALEU CARA REP+ ------------------ vc pode dar uma olhadinha neste tópico, pra ver se vc pode me ajudar? [Pedido] Channel Novo ___________________________ @EDIT A ESPERA DO SCRIPT DO VIP STATUS. Editado Junho 20, 2010 por tricolorgaucho Link para o comentário Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Junho 20, 2010 Share Postado Junho 20, 2010 ta na mao local config = { rateExperience = getConfigInfo('rateExperience'), rateSkill = getConfigInfo('rateSkill'), rateLoot = getConfigInfo('rateLoot'), rateMagic = getConfigInfo('rateMagic'), rateSpawn = getConfigInfo('rateSpawn'), protectionLevel = getConfigInfo('protectionLevel'), stages = getBooleanFromString(getConfigInfo('experienceStages')) } function onSay(cid, words, param, channel) local exp = config.rateExperience if(config.stages) then exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "Server Information:\n\n MENSAGEM.\n MENSAGEM.\n\n MENSAGEM.\n\n-----------------\n\nVIP Status: ".. (quantity < 0 and 0 or quantity) .." \nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel) return true end Link para o comentário Compartilhar em outros sites More sharing options...
tricolorgaucho 2 Postado Junho 20, 2010 Autor Share Postado Junho 20, 2010 Ihaaaaaaaaaaaaaaaaaaaaaaaa VALEU CARA! me ajudou muito, muito, muito!! Link para o comentário Compartilhar em outros sites More sharing options...
Doidin 275 Postado Junho 20, 2010 Share Postado Junho 20, 2010 Se ele realmente te ajudou repute-o e reporte o tópico falando que o problema foi resolvido. Abraços... Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados