Easter Event

nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

Easter Event

FFXI was all about having many different things to do, and their events were legendary. I've made sure to do every event in one way or another, that SE has done over the years, and it's been extremely popular by the players.

First is distributing the eggs. You can do it as you please, I had the suspicious npc's next to the obyssean passages move about the city, and each time you find them they hand out an egg. This has been pretty effective as it limits the rate that eggs enter the world, and it's random so you gotta keep running around looking for them, and it encourages players to trade with each other to get the eggs they need.

Here's a script for port bastok:

Code: Select all

function onTrigger(player,npc)
local npc = GetNPCByID(17744177);
random = math.random(1,26);
local prize = 1487 + random

player:messageSpecial(ITEM_OBTAINED,prize);

local randpos = math.random(1,11);

switch (randpos): caseof
{
 = function (x) npc:setPos(82,8,-229); end,
 = function (x) npc:setPos(40,7,-193); end,
 = function (x) npc:setPos(81,7,-188); end,
 = function (x) npc:setPos(103,8,-44); end,
 = function (x) npc:setPos(70,-2,-25); end,
 = function (x) npc:setPos(46,-2,-25); end,
 = function (x) npc:setPos(9,-2,14); end,
 = function (x) npc:setPos(-22,4,41); end,
 = function (x) npc:setPos(-79,-2,13); end,
 = function (x) npc:setPos(-142,0,-37); end,
 = function (x) npc:setPos(-198,2,-53); end,
}

end;
Next, you need the code that assigns letters to names and hand out a reward if they're traded. Here's the code for the first 3, it's easy enough to modify so that you can make any word you want though:

Code: Select all

a = {}
local letters = 'abcdefghijklmnopqrstuvwxyz'
local input =  string.lower(string.sub(player:getName(),1,3))
for i=1, 3 do
local char = string.sub(input,i,i)
local num = string.find(letters, char)
a[i] = (num + 1487)
end
if (player:hasItem(16109) == false) then