Tudo que Yago Blind. postou
-
(Resolvido)Premium Scroll
Olá galera do TK , dei uma pesquisada por alto aqui no fórum porem não obtive muito sucesso, sou iniciante na área de script e não estou conseguindo criar a script, vejam se podem me ajudar. Gostaria de uma scripts na qual eu configuraria um item para ser um Premium Scroll. 1° Script Premium scroll dá 3 dias de premium 2° Script premium scroll da 9 dias de premium 3° script premium scroll da 18 dias de premium 4° script premium scroll da 36 dias de premium #Resolvido. Para quem precisar . local pdays = 30 -- Dias de Premium que ira ganhar function onUse(cid, item, fromPosition, itemEx, toPosition) doPlayerAddPremiumDays(cid, pdays) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ganhou " .. pdays .. " dias de preium account.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED) doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce sera desconectado em 5 segundos.") addEvent(doRemoveCreature, 1500, cid) end
- [8.60] Baiak Source (exclusivo)
-
(Resolvido)NPC Cledwyn - Silver token trader
Valeu rep+
-
(Resolvido)NPC Cledwyn - Silver token trader
Funciona com 8.6 ?
- DotA Event (TFS 1.x)
-
(Resolvido)Critical E Dodge no LOOK
Reveja seus scripts, pois funcionou perfeitamente, tenho quase certeza de que é sua stronage ... não deve ser a mesma de minhas scripts...
-
[EVENTO] SNOWBALLL
mods
-
[pedido] Dotta System
Procurei muito e não achei...
-
DEFEND THE TOWER
Outro evento que também preciso ..
-
SNOWBALL WAR
Tambem quero muito esse evento, e no momento por ser um evento "privado/vendido" só tem já instalados em alguns servidores ... e é meio incerto tirar de um servidor...
-
(Resolvido)Critical E Dodge no LOOK
Irei testar aqui!! REP++ PELA INICIATIVA DE AJUDA. Funcionou perfeitamente !!! OBGD REP++
-
(Resolvido)Critical E Dodge no LOOK
R: Sem erros na distro desculpe a demora. Toma ai... 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)..']') return true elseif thing.uid == cid then doPlayerSetSpecialDescription(cid,' [Frags: '..getPlayerFrags(cid)..']') 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
-
(Resolvido)Critical E Dodge no LOOK
Desculpe a demora irei testar aqui. @Forum Fala ai mano , não funcionou ....
-
(Resolvido)Critical E Dodge no LOOK
UP
-
(Resolvido)ERRO NPC TRAVEL/CAPTAIN
Irei testar aqui só um minuto. Funcionou obrigado por me alertar !! REP++ Valeu tb amigão por tentar ajudar , toma ai rep++ Tambem pela tentativa !! Outra duvida alguem poderia me ajudar neste topic aqui ??
-
(Resolvido)ERRO NPC TRAVEL/CAPTAIN
Salve galera, eu tenho um sisteminha de travel, porem ele ta com um problema que não estou sabendo solucionar. Eu falo com o npc ele responde normalmente, porem quando eu falo o nome do local que quero ir ele não teleporta, nem da sinal de vida. npcs/Kollys Captain.xml <npc name="Kollys Captain" script="data/npc/scripts/captain.lua" walkinterval="1000" floorchange="0" > <health now="150" max="150"/> <look type="98" head="0" body="0" legs="0" feet="0" corpse="6080"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. ! Eu posso te levar para {Fire Hunt} e a ilha dos {Condenados}, Onde deseja ir?" /> <parameter key="message_decline" value="Vai custar |TOTALCOST| gold coins. Vai viajar?!"/> </parameters> </npc> npcs/script/captain.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'Fire Hunt'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para central por 10000 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 300, cost = 0, destination = {x=485, y=659, z=15} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'Condenados'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para ilha dos condenados por 10000 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 300, cost = 0, destination = {x=1213, y=255, z=9} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new())
-
(Resolvido)Critical E Dodge no LOOK
storage creaturescripts/script/Critical local lvlcrit = 48913 local multiplier = 1.9 local effect = 16 function onStatsChange(cid, attacker, type, combat, value) if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and isPlayer(attacker) and isCreature(cid) then if (getPlayerStorageValue(attacker, lvlcrit)*1) >= math.random (0,1000) then value = math.ceil(value*(multiplier)) doTargetCombatHealth(attacker, cid, combat, -value, -value, 255) doSendMagicEffect(getCreaturePosition(cid), effect) doSendAnimatedText(getCreaturePos(attacker), "Critical!", 35) return false end end return true end creaturescripts/script/Dodge local lvldodge = 48902 local percent = 1.0 function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS and isCreature(attacker) then if (getPlayerStorageValue(cid, lvldodge)*3) >= math.random (0,1000) then value = math.ceil(value*(percent)) doTargetCombatHealth(attacker, cid, combat, -value, -value, 255) doSendAnimatedText(getCreaturePos(cid), "DODGE", 6) return false end end return true end Actions/script/Criticalrook --- CRITICAL System by Night Wolf local config = { effectonuse = 14, -- efeito que sai levelscrit = 100, --- leveis que terão storagecrit = 48913 -- storage que será verificado } function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, config.storagecrit) < config.levelscrit then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,config.effectonuse) doPlayerSendTextMessage(cid,22,"You've Leveled your Critical Skill to ["..(getPlayerStorageValue(cid, config.storagecrit)+1).."/"..config.levelscrit.."].") setPlayerStorageValue(cid, config.storagecrit, getPlayerStorageValue(cid, config.storagecrit)+1) elseif getPlayerStorageValue(cid, config.storagecrit) >= config.levelscrit then doPlayerSendTextMessage(cid,22,"You've already reached the MAX level of Critical Skill.\nCongratulations!!!!") return 0 end return 1 end actions/script/dodgestone local config = { effectonuse = 14, -- efeito que sai levelsdodge = 100, --- leveis que terão storagedodge = 48902 -- storage que será verificado } function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, config.storagedodge) < config.levelsdodge then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,config.effectonuse) doPlayerSendTextMessage(cid,22,"You've Leveled your Dodge Skill to ["..(getPlayerStorageValue(cid, config.storagedodge)+1).."/100].") setPlayerStorageValue(cid, config.storagedodge, getPlayerStorageValue(cid, config.storagedodge)+1) elseif getPlayerStorageValue(cid, config.storagedodge) >= config.levelsdodge then doPlayerSendTextMessage(cid,22,"You've already reached the MAX level of Dodge Skill.\nCongratulations!!!!") return 0 end return 1 end Actions.xml <action itemid="8302" event="script" value="dodgestone.lua"/> <action itemid="8303" script="criticalrock.lua"/>
-
(Resolvido)Critical E Dodge no LOOK
@up2
-
(Resolvido)Critical E Dodge no LOOK
@up
-
(Resolvido)Critical E Dodge no LOOK
Boa tarde galera , gostaria de adicionar ao lado de [Frags:0] no look do player [Critical:0] e [Dodge:0] Assim todos saberão a quantidade que um e outro possui para evitar acusações indevidas...
- [MOD] Rush War Event!
- [8.60]Winchester Server (Exp Alta)
- [Floresta Encantada] New Event - Exclusivo
- Critical Skill System
-
Como adicionar aba ? (Gesior)
Tenso :/ ngm ajuda.