I want to share with you the True Holy Rosary for OTS
in data/actions/actions.xml
and create "Holy" folder and file rosary.lua.
Quis ut Deus!
in data/actions/actions.xml
<action itemid="26053" script="Holy/rosary.lua" />
<action itemid="26054" script="Holy/rosary.lua" />
and create "Holy" folder and file rosary.lua.
Lua:
local rosaries = {
[26053] = {effect = CONST_ME_HEARTS,
Cross = "In the name of the Father, and of the Son, and of the Holy Spirit. Amen.",
I_believe_in_God = "I believe in God, the Father almighty, Creator of heaven and earth,",
I_believe_in_God_2 = "and in Jesus Christ, His only Son, our Lord, who was conceived by the Holy Spirit,",
I_believe_in_God_3 = "born of the Virgin Mary, suffered under Pontius Pilate, was crucified, died and was buried;",
I_believe_in_God_4 = "He descended into hell; on the third day He rose again from the dead; He ascended into heaven,",
I_believe_in_God_5 = "and is seated at the right hand of God the Father almighty;",
I_believe_in_God_6 = "from there He will come to judge the living and the dead.",
I_believe_in_God_7 = "I believe in the Holy Spirit, the holy catholic Church," ,
I_believe_in_God_8 = "the communion of saints, the forgiveness of sins,",
I_believe_in_God_9 = "the resurrection of the body, and life everlasting. Amen.",
Glory_to_be_Father = "Glory be to the Father, the Son, and the Holy Spirit;",
Glory_to_be_Father_1 = "as it was in the beginning, is now, and ever shall be, world without end. Amen.",
O_my_Jesus = "O my Jesus, forgive us our sins, save us from the fires of hell;",
O_my_Jesus_2 = "lead all souls to Heaven, especially those who have most need of your mercy. Amen",
Hail_Mary = "Hail Mary, Full of Grace, The Lord is with thee.",
Hail_Mary_2 = "Blessed art thou among women, and blessed is the fruit of thy womb, Jesus.",
Hail_Mary_3 = "Holy Mary, Mother of God, pray for us sinners now, and at the hour of death. Amen.",
Our_Father = "Our Father, Who art in heaven, Hallowed be Thy Name.",
Our_Father_2 = "Thy Kingdom come, Thy Will be done, On earth as it is in Heaven.",
Our_Father_3 = "Give us this day, our daily bread, And forgive us our trespasses, as we forgive those who trespass against us.",
Our_Father_4 = "And lead us not into temptation, but deliver us from evil. Amen.",
We_fly_to_your_protection = "We fly to your patronage, O holy Mother of God; despise not our petitions in our necessities,",
We_fly_to_your_protection_2 = "but deliver us always from all dangers, O glorious and blessed Virgin.",
We_fly_to_your_protection_3 = "Our Lady, our Patroness, our Mediatrix, our Joy! Reconcile us to your Son, commend us to your Son, present us to your Son.",
Joyful1 = "Joyful Mysteries: 1 - The Annunciation.",
Joyful2 = "Joyful Mysteries: 2 - The Visitation.",
Joyful3 = "Joyful Mysteries: 3 - The Nativity.",
Joyful4 = "Joyful Mysteries: 4 - The Presentation in the Temple.",
Joyful5 = "Joyful Mysteries: 5 - The Finding in the Temple.",
Sorrowful1 = "Sorrowful Mysteries: 1 - The Agony in the Garden.",
Sorrowful2 = "Sorrowful Mysteries: 2 - The Scourging at the Pillar.",
Sorrowful3 = "Sorrowful Mysteries: 3 - The Crowning with Thorns.",
Sorrowful4 = "Sorrowful Mysteries: 4 - The Carrying of the Cross.",
Sorrowful5 = "Sorrowful Mysteries: 5 - The Crucifixion and Death.",
Glorious1 = "Glorious Mysteries: 1 - The Resurrection.",
Glorious2 = "Glorious Mysteries: 2 - The Ascension.",
Glorious3 = "Glorious Mysteries: 3 - The Descent of the Holy Spirit.",
Glorious4 = "Glorious Mysteries: 4 - The Assumption.",
Glorious5 = "Glorious Mysteries: 5 - The Coronation of Mary.",
Luminous1 = "Luminous Mysteries: 1 - The Baptism of Christ in the Jordan.",
Luminous2 = "Luminous Mysteries: 2 - The Wedding Feast at Cana.",
Luminous3 = "Luminous Mysteries: 3 - Jesus' Proclamation of the Coming of the Kingdom of God.",
Luminous4 = "Luminous Mysteries: 4 - The Transfiguration.",
Luminous5 = "Luminous Mysteries: 5 - The Institution of the Eucharist."
},
[26054] = {effect = CONST_ME_HEARTS,
Cross = "W imie Ojca i Syna i Ducha Swietego. Amen.",
I_believe_in_God = "Wierze w Boga, Ojca wszechmogacego, Stworzyciela nieba i ziemi,",
I_believe_in_God_2 = "i w Jezusa Chrystusa, Syna Jego jedynego, Pana naszego, ktory sie poczal z Ducha Swietego,",
I_believe_in_God_3 = "narodzil sie z Maryi Panny, umeczon pod Ponckim Pilatem, ukrzyzowan, umarl i pogrzebion.",
I_believe_in_God_4 = "Zstapil do piekiel, trzeciego dnia zmartwychwstal. Wstapil na niebiosa,",
I_believe_in_God_5 = "siedzi po prawicy Boga Ojca wszechmogacego.",
I_believe_in_God_6 = "Stamtad przyjdzie sadzic zywych i umarlych.",
I_believe_in_God_7 = "Wierze w Ducha Swietego, swiety Kosciol powszechny," ,
I_believe_in_God_8 = "swietych obcowanie, grzechow odpuszczenie,",
I_believe_in_God_9 = "ciala zmartwychwstanie, zywot wieczny. Amen.",
Glory_to_be_Father = "Chwala Ojcu i Synowi i Duchowi Swietemu,",
Glory_to_be_Father_1 = " jak byla na poczatku, teraz i zawsze i na wieki wiekow. Amen.",
O_my_Jesus = "O moj Jezu, przebacz nam nasze grzechy, zachowaj nas od ognia piekielnego,",
O_my_Jesus_2 = "zaprowadz wszystkie dusze do nieba i dopomoz szczegolnie tym, ktorzy najbardziej potrzebuja Twojego Milosierdzia. Amen",
Hail_Mary = "Zdrowas Maryjo, laski pelna, Pan z Toba,",
Hail_Mary_2 = "blogoslawionas Ty miedzy niewiastami i blogoslawiony owoc zywota Twojego, Jezus.",
Hail_Mary_3 = "Swieta Maryjo, Matko Boza, modl sie za nami grzesznymi teraz i w godzine smierci naszej. Amen.",
Our_Father = "Ojcze nasz, ktorys jest w niebie: Swiec sie imie Twoje,",
Our_Father_2 = "przyjdz Krolestwo Twoje, badz wola Twoja, jako w niebie tak i na ziemi.",
Our_Father_3 = "Chleba naszego powszedniego daj nam dzisiaj i odpusc nam nasze winy, jako i my odpuszczamy naszym winowajcom.",
Our_Father_4 = "I nie wodz nas na pokuszenie, ale nas zbaw ode zlego. Amen.",
We_fly_to_your_protection = "Pod Twoja obrone uciekamy sie, Swieta Boza Rodzicielko, naszymi prosbami racz nie gardzic w potrzebach naszych,",
We_fly_to_your_protection_2 = "ale od wszelakich zlych przygod racz nas zawsze wybawiac, Panno chwalebna i Blogoslawiona.",
We_fly_to_your_protection_3 = "O Pani nasza, Oredowniczko nasza, Posredniczko nasza, Pocieszycielko nasza z Synem swoim nas pojednaj, Synowi swojemu nas polecaj, swojemu Synowi nas oddawaj. Amen.",
Joyful1 = "Tajemnica Radosna: 1 - Zwiastowanie Najswietszej Maryi Pannie",
Joyful2 = "Tajemnica Radosna: 2 - Nawiedzenie swietej Elzbiety.",
Joyful3 = "Tajemnica Radosna: 3 - Narodzenie Pana Jezusa.",
Joyful4 = "Tajemnica Radosna: 4 - Ofiarowanie Jezusa w Swiatyni.",
Joyful5 = "Tajemnica Radosna: 5 - Odnalezienie Jezusa w Swiatyni.",
Sorrowful1 = "Tajemnica Bolesna: 1 - Modlitwa Pana Jezusa w Ogrojcu.",
Sorrowful2 = "Tajemnica Bolesna: 2 - Biczowanie Pana Jezusa.",
Sorrowful3 = "Tajemnica Bolesna: 3 - Cierniem ukoronowanie Pana Jezusa.",
Sorrowful4 = "Tajemnica Bolesna: 4 - Droga krzyzowa Pana Jezusa.",
Sorrowful5 = "Tajemnica Bolesna: 5 - Ukrzyzowanie i smierc Pana Jezusa.",
Glorious1 = "Tajemnica Chwalebna: 1 - Zmartwychwstanie Pana Jezusa.",
Glorious2 = "Tajemnica Chwalebna: 2 - Wniebowstapienie Pana Jezusa.",
Glorious3 = "Tajemnica Chwalebna: 3 - Zeslanie Ducha Swietego.",
Glorious4 = "Tajemnica Chwalebna: 4 - Wniebowziecie Najswietszej Maryi Panny.",
Glorious5 = "Tajemnica Chwalebna: 5 - Ukoronowanie Maryi na Krolowa Nieba i Ziemi.",
Luminous1 = "Tajemnica Swiatla: 1 - Chrzest Pana Jezusa w Jordanie.",
Luminous2 = "Tajemnica Swiatla: 2 - Objawienie sie Pana Jezusa w Kanie Galilejskiej.",
Luminous3 = "Tajemnica Swiatla: 3 - Gloszenie krolestwa Bozego i wzywanie do nawrocenia.",
Luminous4 = "Tajemnica Swiatla: 4 - Przemienienie Panskie na gorze Tabor.",
Luminous5 = "Tajemnica Swiatla: 5 - Ustanowienie Eucharystii."
} -- rosary
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local storage = 3000
local cooldownInSeconds = 10
local rosaryCounter = 0
local Mysteries = 100
local rosary, chance = rosaries[item:getId()]
if player:getStorageValue(storage) > os.time() then
player:sendCancelMessage("You are praying.")
return false
end
player:setStorageValue(rosaryCounter, player:getStorageValue(rosaryCounter) + 1)
if player:getStorageValue(Mysteries) == -1 then
player:setStorageValue(Mysteries, 100)
end
player:addExperience(100, true)
-- player:say("Modlitwa: " .. player:getStorageValue(rosaryCounter), TALKTYPE_SAY, false, nil, item:getPosition())
-- player:say("Mysteries: " .. player:getStorageValue(Mysteries), TALKTYPE_SAY, false, nil, item:getPosition())
function startRosary()
player:setStorageValue(rosaryCounter, 0)
end
function Hail_Mary_2func()
player:say(rosary.Hail_Mary_2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Hail_Mary_3func, 5 * 1000)
end
function Hail_Mary_3func()
player:say(rosary.Hail_Mary_3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
end
function Our_Father2func()
player:say(rosary.Our_Father_2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father3func, 5 * 1000)
end
function Our_Father3func()
player:say(rosary.Our_Father_3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father4func, 7 * 1000)
end
function Our_Father4func()
player:say(rosary.Our_Father_4, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
end
function Glory_to_be_Father2func()
player:say(rosary.Glory_to_be_Father_1, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
end
function O_my_Jesus2func()
player:say(rosary.O_my_Jesus_2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
end
function We_fly_to_your_protection2func()
player:say(rosary.We_fly_to_your_protection_2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(We_fly_to_your_protection3func, 6 * 1000)
end
function We_fly_to_your_protection3func()
player:say(rosary.We_fly_to_your_protection_3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
end
function I_believe_in_God_2func()
player:say(rosary.I_believe_in_God_2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_3func, 5 * 1000)
end
function I_believe_in_God_3func()
player:say(rosary.I_believe_in_God_3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_4func, 6 * 1000)
end
function I_believe_in_God_4func()
player:say(rosary.I_believe_in_God_4, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_5func, 6 * 1000)
end
function I_believe_in_God_5func()
player:say(rosary.I_believe_in_God_5, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_6func, 4 * 1000)
end
function I_believe_in_God_6func()
player:say(rosary.I_believe_in_God_6, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_7func, 4 * 1000)
end
function I_believe_in_God_7func()
player:say(rosary.I_believe_in_God_7, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_8func, 4 * 1000)
end
function I_believe_in_God_8func()
player:say(rosary.I_believe_in_God_8, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_9func, 4 * 1000)
end
function I_believe_in_God_9func()
player:say(rosary.I_believe_in_God_9, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
end
-- rosary <>
if player:getStorageValue(rosaryCounter) == 1 then
player:say(rosary.Cross, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 3)
end
if player:getStorageValue(rosaryCounter) == 2 then
player:say(rosary.I_believe_in_God, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(I_believe_in_God_2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 40)
end
if player:getStorageValue(rosaryCounter) == 3 then
player:say(rosary.Our_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 20)
end
if player:getStorageValue(rosaryCounter) > 3 and player:getStorageValue(rosaryCounter) <= 6 then
player:say(rosary.Hail_Mary, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Hail_Mary_2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 15)
end
if player:getStorageValue(rosaryCounter) == 7 then
player:say(rosary.Glory_to_be_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Glory_to_be_Father2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 8 then
player:say(rosary.O_my_Jesus, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(O_my_Jesus2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 9 then
if player:getStorageValue(Mysteries) == 100 then
player:say(rosary.Joyful1, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 101 then
player:say(rosary.Sorrowful1, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 102 then
player:say(rosary.Glorious1, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 103 then
player:say(rosary.Luminous1, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
end
end
if player:getStorageValue(rosaryCounter) == 10 then
player:say(rosary.Our_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 20)
end
if player:getStorageValue(rosaryCounter) >= 11 and player:getStorageValue(rosaryCounter) <= 21 then
player:say(rosary.Hail_Mary, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Hail_Mary_2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 15)
end
if player:getStorageValue(rosaryCounter) == 22 then
player:say(rosary.Glory_to_be_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Glory_to_be_Father2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 23 then
player:say(rosary.O_my_Jesus, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(O_my_Jesus2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 24 then
if player:getStorageValue(Mysteries) == 100 then
player:say(rosary.Joyful2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 101 then
player:say(rosary.Sorrowful2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 102 then
player:say(rosary.Glorious2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 103 then
player:say(rosary.Luminous2, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
end
end
if player:getStorageValue(rosaryCounter) == 25 then
player:say(rosary.Our_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 20)
end
if player:getStorageValue(rosaryCounter) >= 26 and player:getStorageValue(rosaryCounter) <= 36 then
player:say(rosary.Hail_Mary, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Hail_Mary_2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 15)
end
if player:getStorageValue(rosaryCounter) == 37 then
player:say(rosary.Glory_to_be_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Glory_to_be_Father2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 38 then
player:say(rosary.O_my_Jesus, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(O_my_Jesus2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 39 then
if player:getStorageValue(Mysteries) == 100 then
player:say(rosary.Joyful3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 101 then
player:say(rosary.Sorrowful3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 102 then
player:say(rosary.Glorious3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 103 then
player:say(rosary.Luminous3, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
end
end
if player:getStorageValue(rosaryCounter) == 40 then
player:say(rosary.Our_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 20)
end
if player:getStorageValue(rosaryCounter) >= 41 and player:getStorageValue(rosaryCounter) <= 51 then
player:say(rosary.Hail_Mary, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Hail_Mary_2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 15)
end
if player:getStorageValue(rosaryCounter) == 52 then
player:say(rosary.Glory_to_be_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Glory_to_be_Father2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 53 then
player:say(rosary.O_my_Jesus, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(O_my_Jesus2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 54 then
if player:getStorageValue(Mysteries) == 100 then
player:say(rosary.Joyful4, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 101 then
player:say(rosary.Sorrowful4, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 102 then
player:say(rosary.Glorious4, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
elseif player:getStorageValue(Mysteries) == 103 then
player:say(rosary.Luminous4, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
end
end
if player:getStorageValue(rosaryCounter) == 55 then
player:say(rosary.Our_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 20)
end
if player:getStorageValue(rosaryCounter) >= 56 and player:getStorageValue(rosaryCounter) <= 66 then
player:say(rosary.Hail_Mary, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Hail_Mary_2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 15)
end
if player:getStorageValue(rosaryCounter) == 67 then
player:say(rosary.Glory_to_be_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Glory_to_be_Father2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 68 then
player:say(rosary.O_my_Jesus, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(O_my_Jesus2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 69 then
if player:getStorageValue(Mysteries) == 100 then
player:say(rosary.Joyful5, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
player:setStorageValue(Mysteries, player:getStorageValue(Mysteries) + 1)
elseif player:getStorageValue(Mysteries) == 101 then
player:say(rosary.Sorrowful5, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
player:setStorageValue(Mysteries, player:getStorageValue(Mysteries) + 1)
elseif player:getStorageValue(Mysteries) == 102 then
player:say(rosary.Glorious5, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
player:setStorageValue(Mysteries, player:getStorageValue(Mysteries) + 1)
elseif player:getStorageValue(Mysteries) == 103 then
player:say(rosary.Luminous5, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
player:setStorageValue(storage, os.time() + 15)
player:setStorageValue(Mysteries, 100)
player:addAchievementProgress("Prayer", 10000)
end
end
if player:getStorageValue(rosaryCounter) == 70 then
player:say(rosary.Our_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Our_Father2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 20)
end
if player:getStorageValue(rosaryCounter) >= 71 and player:getStorageValue(rosaryCounter) <= 81 then
player:say(rosary.Hail_Mary, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Hail_Mary_2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 15)
end
if player:getStorageValue(rosaryCounter) == 82 then
player:say(rosary.Glory_to_be_Father, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(Glory_to_be_Father2func, 4 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 83 then
player:say(rosary.O_my_Jesus, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(O_my_Jesus2func, 5 * 1000)
player:setStorageValue(storage, os.time() + 10)
end
if player:getStorageValue(rosaryCounter) == 84 then
player:say(rosary.We_fly_to_your_protection, TALKTYPE_MONSTER_SAY, false, nil, item:getPosition())
addEvent(We_fly_to_your_protection2func, 6 * 1000)
player:setStorageValue(storage, os.time() + 15)
startRosary()
end
return true
end
Quis ut Deus!