Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmdprops = {
- permission = 1,
- parameters = "is",
- }
- local areas = {
- [0] = "San d'Oria",
- [1] = "Bastok",
- [2] = "Windurst",
- [3] = "Rise of the Zilart",
- [4] = "Treasures of Aht Urgan",
- [5] = "Wings of the Goddess",
- [6] = "Chains of Promathia",
- [7] = "Assault",
- [8] = "Campaign",
- [9] = "Crystalline Prophecy",
- [10] = "moogle Kupo d'Etat",
- [11] = "Shantotto Ascension",
- [12] = "Seekers of Adoulin",
- }
- function onTrigger(player, logId, target)
- if not logId then
- player:PrintToPlayer( "You must enter a valid LogID!" )
- player:PrintToPlayer( "@checkmission <Log ID> <Player>" )
- return
- end
- local person = player
- if target then
- person = GetPlayerByName(target)
- if not person then
- player:PrintToPlayer("Player '"..target.."' not found.")
- return
- end
- end
- local name = areas[logId]
- if not name then
- player:PrintToPlayer("Invalid or unsupported LogID. The LogID must be 0-12.")
- return
- end
- local current = person:getCurrentMission(logId)
- -- In the original code, the following check was only performed for the first 5 areas.
- -- This is presumably because the author gave up.
- if current == 255 then
- player:PrintToPlayer("No current "..name.." mission.")
- else
- player:PrintToPlayer("Current "..name.." mission ID is: '"..current.."' !")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement