Ir para conteúdo

Featured Replies

Postado
  • Em actions criei um arquivo chamado guardian.lua, dentro dele coloque : 
     
local lendas = { -- id dos item / nome do guardian
    [3000] = {"Mew"},
    [3001] = {"Mewtwo"},
    [3002] = {"Articuno"},
    [3003] = {"Zapdos"},
    [3004] = {"Moltres"},
    [3005] = {"Entei"},
    [3006] = {"Suicune"},
    [3007] = {"Raikou"},
    [3008] = {"Ho-oh"},
    [30010] = {"Lugia"},
}
function onUse(player, item, fromPosition, target, toPosition, ishotkey)
slot = player:getSlotItem(CONST_SLOT_AMMO)
if not slot then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "" .. player:getName() .. " Put the Guardian in the right slot" .." ")
return true
end
local lenda = lendas[item.itemid]
if not lenda then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "" .. player:getName() .. " Sorry, ask adm to set up the guardian string!" .." ")
return true
elseif(player:getStorageValue(28723) == 1)then 
player:sendTextMessage(MESSAGE_STATUS_SMALL, "Have you ever used this guardian")
return true
else
local postion = player:getPosition()
local monster = Game.createMonster(lenda[1], postion)
if not monster then 
player:sendTextMessage(MESSAGE_STATUS_SMALL,"" ..player:getName() .." Sorry you can't summon, contact a member of staff!.")
return true 
end
local message = {"" .. player:getName() .. " Go Guardian : " .. lenda[1] .. ""}
player:sendTextMessage(MESSAGE_INFO_DESCR, "Have you ever used this guardian")
player:setStorageValue(28723, 1)
player:say(message[1], TALKTYPE_MONSTER_SAY)
item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION,"[Name] : " .. lenda[1] .. 
"\n" .. "[Owner] : " .. player:getName() .. 
"\n" .. "[Last use] :" .. os.date() .. "")
local guardians = MonsterType(lenda[1])
if not guardian then return false end
guardians:nameDescription("Guardian " .. lenda[1] .. "")
guardians:name("Guardian " .. lenda[1] .. "")
monster:setMaster(player)
monster:setMaxHealth(70000000)
monster:setSkull(SKULL_GREEN)
monster:getPosition():sendMagicEffect(6)
monster:changeSpeed(600000)
speed = monster:getSpeed()
healt = monster:getHealth()
monster:say("GUARDIAN!" .. lenda[1] .. "", TALKTYPE_MONSTER_SAY)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"You used the Guardian ( " .. lenda[1] .. " ).")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Your Guardian is alive: " .. healt .. " / " .. monster:getMaxHealth() .. " wait for his life to fully load.")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Guardian Speed " .. speed .. ".")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Guardian owner " .. player:getName() .. ".")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Last time the Guardian was used [" .. os.date() .. "].")
return true
end
end

 

  • Depois abra o action.xml, e registra :

 

<action itemid="o id" script="guardian.lua" />



 

Editado por najatheus
Atualização no sistema! (veja o histórico de edições)

  • Respostas 10
  • Visualizações 3k
  • Created
  • Última resposta

Top Posters In This Topic

Posted Images

Postado

Obrigado pela contribuição !

function onLove()
if getPlayerTrueLove(girlfriend) then
doPlayerBeHappy(cid, true)
doRemoveVirginity(cid, true)
else
doSendCancel(cid,"you do not know how good it feels to be loved")
end end

;)

 

  • najatheus mudou o título para System de guardian - Tfs 1.3 ( Sem ataque automatico )
Postado
Em 25/04/2021 em 02:19, najatheus disse:
  • Em actions criei um arquivo chamado guardian.lua, dentro dele coloque : 
     

local summons = {"demon"} -- aqui vc podera fazer summons aleatorios
function onUse(player, item, fromPosition, target, toPosition, ishotkey)
if(#player:getSummons() >= 1)then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You are already using 1 summon (guardian)" )
return true
end
local postion = player:getPosition()
local monster = Game.createMonster(summons[math.random(1, #summons)], postion)
local message = {"" .. player:getName() .. " Go Guardian : " .. monster:getName() .. ""}
player:say(message[1], TALKTYPE_MONSTER_SAY)
player:addSummon(monster)
item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION,"Name " .. monster:getName() .. " ")
item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION,"Dono : " .. player:getName() .. " ")
monster:setMaxHealth(7000)
monster:setSkull(SKULL_GREEN)
monster:getPosition():sendMagicEffect(6)
monster:changeSpeed(6000)
monster:say("GUARDIAN!" .. monster:getName() .. "", TALKTYPE_MONSTER_SAY)
monster:getPosition():sendMagicEffect(13)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You used the Guardian ( " .. monster:getName() .. " )")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Your Guardian is alive: " .. monster:getHealth() .. " / " .. monster:getMaxHealth() .. " wait for his life to fully load")
return true
end

 

  • Depois abra o action.xml, e registra :

 


<action itemid="o id" script="guardian.lua" />



 

muito obg ate hj niguem tinha postado <3

 

  • 3 months later...
Postado
Em 25/04/2021 em 02:19, najatheus disse:
  • Em actions criei um arquivo chamado guardian.lua, dentro dele coloque : 
     

local lendas = { -- id dos item / nome do guardian
    [3000] = {"Mew"},
    [3001] = {"Mewtwo"},
    [3002] = {"Articuno"},
    [3003] = {"Zapdos"},
    [3004] = {"Moltres"},
    [3005] = {"Entei"},
    [3006] = {"Suicune"},
    [3007] = {"Raikou"},
    [3008] = {"Ho-oh"},
    [30010] = {"Lugia"},
}
function onUse(player, item, fromPosition, target, toPosition, ishotkey)
slot = player:getSlotItem(CONST_SLOT_AMMO)
if not slot then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "" .. player:getName() .. " Put the Guardian in the right slot" .." ")
return true
end
local lenda = lendas[item.itemid]
if not lenda then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "" .. player:getName() .. " Sorry, ask adm to set up the guardian string!" .." ")
return true
elseif(player:getStorageValue(28723) == 1)then 
player:sendTextMessage(MESSAGE_STATUS_SMALL, "Have you ever used this guardian")
return true
else
local postion = player:getPosition()
local monster = Game.createMonster(lenda[1], postion)
if not monster then 
player:sendTextMessage(MESSAGE_STATUS_SMALL,"" ..player:getName() .." Sorry you can't summon, contact a member of staff!.")
return true 
end
local message = {"" .. player:getName() .. " Go Guardian : " .. lenda[1] .. ""}
player:sendTextMessage(MESSAGE_INFO_DESCR, "Have you ever used this guardian")
player:setStorageValue(28723, 1)
player:say(message[1], TALKTYPE_MONSTER_SAY)
item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION,"[Name] : " .. lenda[1] .. 
"\n" .. "[Owner] : " .. player:getName() .. 
"\n" .. "[Last use] :" .. os.date() .. "")
local guardians = MonsterType(lenda[1])
if not guardian then return false end
guardians:nameDescription("Guardian " .. lenda[1] .. "")
guardians:name("Guardian " .. lenda[1] .. "")
monster:setMaster(player)
monster:setMaxHealth(70000000)
monster:setSkull(SKULL_GREEN)
monster:getPosition():sendMagicEffect(6)
monster:changeSpeed(600000)
speed = monster:getSpeed()
healt = monster:getHealth()
monster:say("GUARDIAN!" .. lenda[1] .. "", TALKTYPE_MONSTER_SAY)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"You used the Guardian ( " .. lenda[1] .. " ).")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Your Guardian is alive: " .. healt .. " / " .. monster:getMaxHealth() .. " wait for his life to fully load.")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Guardian Speed " .. speed .. ".")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Guardian owner " .. player:getName() .. ".")
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,"Last time the Guardian was used [" .. os.date() .. "].")
return true
end
end

 

  • Depois abra o action.xml, e registra :

 


<action itemid="o id" script="guardian.lua" />



 

Trás esses módulos de shop para tfs 1.2 1098 

Screenshot_20211030-134925_Chrome.jpg

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo