Ir para conteúdo

lucascat1

Campones
  • Total de itens

    13
  • Registro em

  • Última visita

Sobre lucascat1

Últimos Visitantes

O bloco dos últimos visitantes está desativado e não está sendo visualizado por outros usuários.

lucascat1's Achievements

  1. Quando acaba a potion de double xp da esse erro: [Error - Action Interface] In a timer event called from: data/actions/scripts/donator/exp.lua:onUse Vou postar o meu exp. lua function onUse(cid, item, frompos, item2, topos) local pausa = 120*60*1000 -- (1000 = 1 segundos) Tempo que o script durará local texto = "You have 3 times more experience for 60 minutes, do not logout or else you will loose the bonus." textofinal = "Your bonus time is gone." -- Texto que irá receber quando o efeito da potion acabar. local exp = 2.0 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. if item.itemid == 7443 then doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid,exp) doSendMagicEffect(frompos,13) doPlayerSendTextMessage(cid,22,texto) addEvent(potion,pausa,cid) end end function potion(pos, cid) doPlayerSetExperienceRate(pos,expfinal) doPlayerSendTextMessage(pos,22,textofinal) end
  2. ai está falando sobre TFS 1.2 o meu é 2.6 será que dá certo?
  3. tem skype? me passa ai, acho que vai ser melhor pra explicar
  4. é através do site... meu servidor é mysql
  5. ai no caso coloco no action ou no uniqueid?
  6. já veio no servidor, tipo a questão é, pelo site eu consigo add o vip, mostra que sou vip nas info do char, mas ele n entra na area donate, acredito que seja por causa da storage que nãi é a mesma, ai quero descobrir a storage do systema vip que consigo comprar pelo site, consegue me ajudar? esse é meu script de talkactions: -- Script SYtem vip 1.0 -- function onSay(cid, words, param) if(words == "!buyvip") then local price = 3000000 if doPlayerRemoveMoney(cid, 3000000) == TRUE then local days = 30 local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..price.." gp's para colocar vip.") end elseif(words == "!vipdays") then local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no seu character.") elseif(words == "/checkvip") then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(param) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 13540) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") return TRUE end elseif(words == "/addvip") then if getPlayerAccess(cid) == 5 then local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local days = t[2] local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end local daysvalue = days*3600*24 local storageplayer = getPlayerStorageValue(player, 13540) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.") setPlayerStorageValue(player, 13540, time) local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.") end elseif(words == "/delvip") then if getPlayerAccess(cid) == 5 then local dec = MESSAGE_INFO_DESCR if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end local C,t = {},string.explode(param, ",") C.pos = getPlayerPosition(cid) C.uid = getCreatureByName(t[1]) C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia. C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip. local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end if(getPlayerStorageValue(C.uid,13540) < C.time)then doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.') else doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.') setPlayerStorageValue(C.uid,13540,getPlayerStorageValue(C.uid,13540)-C.time) end doSendMagicEffect(C.pos, math.random(28,30)) end end return TRUE end
  7. Fala galera, estou com uma dificuldade, será que alguém pode me ajudar? eu criei uma area donate e quero que o piso perto do TP pra levar a essa área, entre somente quem for donate no server. Agradeço desde já, REP++ pra quem ajudar
  8. está dando esse erro na distro: data/actions/scripts/other/donatepoint.lua:3: attempt to index local 'player' (a number value) stack traceback: data/actions/scripts/other/donatepoint.lua:3: in function <data/actions/scripts/other/donatepoint.lua:1> alguem me ajuda? Segue abaixo a action que usei e o arquivo.lua <action itemid="9020" script="other/donatepoint.lua"/> - action.xml arquivo.lua: function onUse(player, item, fromPosition, target, toPosition, isHotkey) local points = 1 --aqui você bota a quantidade de coins que o item vai dar db.query("UPDATE `accounts` SET `coins` = `coins` + '" .. points .. "' WHERE `id` = '" .. player:getAccountId() .. "';") player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Você recebeu "..points.." coins") item:remove(1) return true end
  9. Galera, alguém pode me ajudar? Estou rodando um Otserv aqui 8.60 e quando dá a hora do evento FireStorm começar o tp não abre e na distro aparece esse erro: error - creatureScript Interface data/creaturescripts/scripts/idle.lua:14 in function <data/creaturescripts/scripts/idle.lua:6> Se alguém ajudar dou REP++ SEGUE O SCRIPT Idle.lua: 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 = "There was no variation in your behaviour 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 there is no change in your actions until then." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return true end TSF: The OTX Server Version: (2.6) - Codename: (SCARETALE) Compiled with GNU C++ version 3.4.5 (mingw special) for arch 32 Bits at Nov 21 2016 17:47:43
  10. The OTX Server Version: (2.6) - Codename: (SCARETALE) Compiled with GNU C++ version 3.4.5 (mingw special) for arch 32 Bits at Nov 21 2016 17:47:43
  11. Segue o script Idle.lua: 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 = "There was no variation in your behaviour 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 there is no change in your actions until then." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return trueend alguém pode ajudar?
  12. Galera, alguém pode me ajudar? Estou rodando um Otserv aqui 8.60 e quando dá a hora do evento FireStorm começar o tp não abre e na distro aparece esse erro: error - creatureScript Interface data/creaturescripts/scripts/idle.lua:14 in function <data/creaturescripts/scripts/idle.lua:6> Se alguém ajudar dou REP++
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...