diff --git a/scripts/commands/ActivateCommand.lua b/scripts/commands/ActivateCommand.lua new file mode 100644 index 00000000..347ce39d --- /dev/null +++ b/scripts/commands/ActivateCommand.lua @@ -0,0 +1,22 @@ +--[[ + +ActivateCommand Script + +Switches between active and passive mode states + +--]] + +function onEventStarted(player, actor) + + if (player:getState() == 0) then + player:changeState(2); + elseif (player:getState() == 2) then + player:changeState(0); + end + + player:endEvent(); + +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/commands/AttackWeaponSkill.lua b/scripts/commands/AttackWeaponSkill.lua new file mode 100644 index 00000000..83af12dc --- /dev/null +++ b/scripts/commands/AttackWeaponSkill.lua @@ -0,0 +1,24 @@ +--[[ + +AttackWeaponSkill Script + +Finds the correct weaponskill subscript to fire when a weaponskill actor is activated. + +--]] + + + +function onEventStarted(player, actor) + + worldMaster = getWorldMaster(); + + if (player:getState() != 2) then + player:sendGameMessage(worldMaster, 32503, 0x20); + end + + player:endEvent(); + +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/commands/BonusPointCommand.lua b/scripts/commands/BonusPointCommand.lua new file mode 100644 index 00000000..b73477b0 --- /dev/null +++ b/scripts/commands/BonusPointCommand.lua @@ -0,0 +1,23 @@ +--[[ + +BonusPointCommand Script + +Functions: + +operateUI(pointsAvailable, pointsLimit, str, vit, dex, int, min, pie) + +--]] + +function onEventStarted(player, actor) + --local points = player:getAttributePoints(); + --player:runEventFunction("delegateCommand", actor, "operateUI", points.available, points.limit, points.inSTR, points.inVIT, points.inDEX, points.inINT, points.inMIN, points.inPIT); + player:runEventFunction("delegateCommand", actor, "operateUI", 10, 10, 10, 10, 10, 10, 10, 10); +end + +function onEventUpdate(player, actor, step, arg1) + + --Submit + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/commands/CheckCommand.lua b/scripts/commands/CheckCommand.lua new file mode 100644 index 00000000..f5c20c0a --- /dev/null +++ b/scripts/commands/CheckCommand.lua @@ -0,0 +1,19 @@ +--[[ + +CheckCommand Script + +Handles player examining someone + +--]] + +function onEventStarted(player, commandactor, arg1, arg2, arg3, arg4, checkedActorId) + + actor = player:getActorInInstance(checkedActorId); + + if (actor ~= nil) then + player:examinePlayer(actor); + end + + player:endEvent(); + +end diff --git a/scripts/commands/ChocoboRideCommand.lua b/scripts/commands/ChocoboRideCommand.lua new file mode 100644 index 00000000..5d3814d5 --- /dev/null +++ b/scripts/commands/ChocoboRideCommand.lua @@ -0,0 +1,50 @@ +--[[ + +ChocoboRideCommand Script + +Handles mounting and dismounting the Chocobo and Goobbue + +--]] + +function onEventStarted(player, actor, isGoobbue) + + if (player:getState() == 0) then + + worldMaster = getWorldMaster(); + + if (isGoobbue ~= true) then + player:changeMusic(83); + player:sendChocoboAppearance(); + player:sendGameMessage(player, worldMaster, 26001, 0x20); + player:setMountState(1); + else + player:changeMusic(98); + player:sendGoobbueAppearance(); + player:sendGameMessage(player, worldMaster, 26019, 0x20); + player:setMountState(2); + end + + player:changeSpeed(0.0, 5.0, 10.0); + player:changeState(15); + else + player:changeMusic(player:getZone().bgmDay); + + worldMaster = getWorldMaster(); + + if (player:getMountState() == 1) then + player:sendGameMessage(player, worldMaster, 26003, 0x20); + else + player:sendGameMessage(player, worldMaster, 26021, 0x20); + end + + player:setMountState(0); + player:changeSpeed(0.0, 2.0, 5.0) + player:changeState(0); + end + + player:endEvent(); + +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/commands/DiceCommand.lua b/scripts/commands/DiceCommand.lua new file mode 100644 index 00000000..00dfdce8 --- /dev/null +++ b/scripts/commands/DiceCommand.lua @@ -0,0 +1,23 @@ +--[[ + +DiceCommand Script + +--]] + +function onEventStarted(player, actor, maxNumber) + + if (maxNumber == nil) then + maxNumber = 999; + end + + result = math.random(0, maxNumber); + + worldMaster = getWorldMaster(); + player:sendGameMessage(player, worldMaster, 25342, 0x20, result, maxNumber); + + player:endEvent(); + +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/commands/EmoteSitCommand.lua b/scripts/commands/EmoteSitCommand.lua new file mode 100644 index 00000000..19296a12 --- /dev/null +++ b/scripts/commands/EmoteSitCommand.lua @@ -0,0 +1,24 @@ +--[[ + +EmoteSitCommand Script + +--]] + +function onEventStarted(player, actor, emoteId) + + if (player:getState() == 0) then + if (emoteId == 0x2712) then + player:changeState(11); + else + player:changeState(13); + end + else + player:changeState(0); + end + + player:endEvent(); + +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/commands/EmoteStandardCommand.lua b/scripts/commands/EmoteStandardCommand.lua new file mode 100644 index 00000000..b481b027 --- /dev/null +++ b/scripts/commands/EmoteStandardCommand.lua @@ -0,0 +1,23 @@ +--[[ + +EmoteStandardCommand Script + +--]] + +emoteTable = { +{}, +}; + + +function onEventStarted(player, actor, emoteId) + + if (player:getState() == 0) then + player:doEmote(emoteId); + end + + player:endEvent(); + +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/commands/EquipCommand.lua b/scripts/commands/EquipCommand.lua new file mode 100644 index 00000000..f20f512a --- /dev/null +++ b/scripts/commands/EquipCommand.lua @@ -0,0 +1,205 @@ +--[[ + +EquipCommand Script + +Notes: + +Gearset activating could be optimized a bit more by doing the item packets in one go. + +The param "invActionInfo" has the vars: actorId, unknown, slot, and inventoryType. +The param "itemDBIds" has the vars: item1 and item2. + +--]] + +EQUIPSLOT_MAINHAND = 0; +EQUIPSLOT_OFFHAND = 1; +EQUIPSLOT_THROWINGWEAPON = 4; +EQUIPSLOT_PACK = 5; +EQUIPSLOT_POUCH = 6; +EQUIPSLOT_HEAD = 8; +EQUIPSLOT_UNDERSHIRT = 9; +EQUIPSLOT_BODY = 10; +EQUIPSLOT_UNDERGARMENT = 11; +EQUIPSLOT_LEGS = 12; +EQUIPSLOT_HANDS = 13; +EQUIPSLOT_FEET = 14; +EQUIPSLOT_WAIST = 15; +EQUIPSLOT_NECK = 16; +EQUIPSLOT_EARS = 17; +EQUIPSLOT_WRIST = 19; +EQUIPSLOT_RFINGER = 21; +EQUIPSLOT_LFINGER = 22; + +GRAPHICSLOT_MAINHAND = 5; +GRAPHICSLOT_OFFHAND = 6; +GRAPHICSLOT_SPMAINHAND = 7; +GRAPHICSLOT_SPOFFHAND = 8; +GRAPHICSLOT_THROWING = 9; +GRAPHICSLOT_PACK = 10; +GRAPHICSLOT_POUCH = 11; +GRAPHICSLOT_HEAD = 12; +GRAPHICSLOT_BODY = 13; +GRAPHICSLOT_LEGS = 14; +GRAPHICSLOT_HANDS = 15; +GRAPHICSLOT_FEET = 16; +GRAPHICSLOT_WAIST = 17; +GRAPHICSLOT_NECK = 18; +GRAPHICSLOT_R_EAR = 19; +GRAPHICSLOT_L_EAR = 20; +GRAPHICSLOT_R_WRIST = 21; +GRAPHICSLOT_L_WRIST = 22; +GRAPHICSLOT_R_RINGFINGER = 23; +GRAPHICSLOT_L_RINGFINGER = 24; +GRAPHICSLOT_R_INDEXFINGER = 25; +GRAPHICSLOT_L_INDEXFINGER = 26; + +function onEventStarted(player, actor, invActionInfo, param1, param2, param3, param4, param5, param6, param7, equipSlot, itemDBIds) + equipSlot = equipSlot-1; + + --Equip Item + if (invActionInfo ~= nil) then + item = player:getInventory(0):getItemBySlot(invActionInfo.slot); + equipItem(player, equipSlot, item); + player:sendAppearance(); + --Unequip Item + else + item = player:getEquipment():GetItemAtSlot(equipSlot); + if (unequipItem(player, equipSlot, item) == true) then --Returns true only if something changed (didn't error out) + player:sendAppearance(); + end + end + + player:endEvent(); +end + +function loadGearset(player, classId) + player:getEquipment():ToggleDBWrite(false); + gearset = player:getGearset(classId); + + if gearset == nil then + return; + end + + for slot = 0, 34 do + + if (slot ~= EQUIPSLOT_MAINHAND and slot ~= EQUIPSLOT_UNDERSHIRT and slot ~= EQUIPSLOT_UNDERGARMENT) then + itemAtSlot = player:getEquipment():GetItemAtSlot(slot); + itemAtGearsetSlot = gearset[slot]; + + if (itemAtSlot ~= nil or itemAtGearsetSlot ~= nil) then + if (itemAtSlot ~= nil and itemAtGearsetSlot == nil) then + unequipItem(player, slot, itemAtSlot); + elseif (itemAtSlot == nil and itemAtGearsetSlot ~= nil) then + equipItem(player, slot, itemAtGearsetSlot); + elseif (itemAtGearsetSlot.uniqueId ~= itemAtSlot.uniqueId) then + unequipItem(player, slot, itemAtSlot); + equipItem(player, slot, itemAtGearsetSlot) + end + end + end + + end + + player:getEquipment():ToggleDBWrite(true); + + player:doClassChange(classId); +end + +function equipItem(player, equipSlot, item) + if (item ~= nil) then + worldMaster = getWorldMaster(); + + --Item Equipped message + player:sendGameMessage(player, worldMaster, 30601, 0x20, equipSlot+1, item.itemId, item.quality, 0, 0, 1); + + player:getEquipment():Equip(equipSlot, item); + + gItem = getItemGamedata(item.itemId); + + if (equipSlot == EQUIPSLOT_MAINHAND and gItem:IsNailWeapon() == false and gItem:IsBowWeapon() == false) then graphicSlot = GRAPHICSLOT_MAINHAND; + elseif (equipSlot == EQUIPSLOT_OFFHAND) then graphicSlot = GRAPHICSLOT_OFFHAND; + elseif (equipSlot == EQUIPSLOT_HEAD) then graphicSlot = GRAPHICSLOT_HEAD; + elseif (equipSlot == EQUIPSLOT_BODY) then graphicSlot = GRAPHICSLOT_BODY; + elseif (equipSlot == EQUIPSLOT_LEGS) then graphicSlot = GRAPHICSLOT_LEGS; + elseif (equipSlot == EQUIPSLOT_HANDS) then graphicSlot = GRAPHICSLOT_HANDS; + elseif (equipSlot == EQUIPSLOT_FEET) then graphicSlot = GRAPHICSLOT_FEET; + elseif (equipSlot == EQUIPSLOT_WAIST) then graphicSlot = GRAPHICSLOT_WAIST; + elseif (equipSlot == EQUIPSLOT_RFINGER) then graphicSlot = GRAPHICSLOT_RFINGER; + elseif (equipSlot == EQUIPSLOT_LFINGER) then graphicSlot = GRAPHICSLOT_LFINGER; + end + + --Graphic Slot was set, otherwise it's a special case + if (graphicSlot ~= nil) then + player:graphicChange(graphicSlot, item); + if (graphicSlot == GRAPHICSLOT_MAINHAND) then player:graphicChange(GRAPHICSLOT_OFFHAND, nil); end + elseif (gItem:IsNailWeapon()) then + player:graphicChange(GRAPHICSLOT_MAINHAND, item); + player:graphicChange(GRAPHICSLOT_OFFHAND, item); + elseif (gItem:IsBowWeapon()) then + player:graphicChange(GRAPHICSLOT_MAINHAND, item); + --player:graphicChange(GRAPHICSLOT_OFFHAND, item); + elseif (equipSlot == EQUIPSLOT_EARS) then + player:graphicChange(GRAPHICSLOT_R_EAR, item); + player:graphicChange(GRAPHICSLOT_L_EAR, item); + end + + --If it's the mainhand, begin class change based on weapon + if (equipSlot == EQUIPSLOT_MAINHAND) then + if (gItem:IsNailWeapon()) then classId = 2; + elseif (gItem:IsSwordWeapon()) then classId = 3; + elseif (gItem:IsAxeWeapon()) then classId = 4; + elseif (gItem:IsBowWeapon()) then classId = 7; + elseif (gItem:IsLanceWeapon()) then classId = 8; + + elseif (gItem:IsThaumaturgeWeapon()) then classId = 22; + elseif (gItem:IsConjurerWeapon()) then classId = 23; + + elseif (gItem:IsCarpenterWeapon()) then classId = 29; + elseif (gItem:IsBlackSmithWeapon()) then classId = 30; + elseif (gItem:IsArmorerWeapon()) then classId = 31; + elseif (gItem:IsGoldSmithWeapon()) then classId = 32; + elseif (gItem:IsTannerWeapon()) then classId = 33; + elseif (gItem:IsWeaverWeapon()) then classId = 34; + elseif (gItem:IsAlchemistWeapon()) then classId = 35; + elseif (gItem:IsCulinarianWeapon()) then classId = 36; + + elseif (gItem:IsMinerWeapon()) then classId = 39; + elseif (gItem:IsBotanistWeapon()) then classId = 40; + elseif (gItem:IsFishingWeapon()) then classId = 41; + end + + loadGearset(player, classId); + end + end +end + +function unequipItem(player, equipSlot, item) + worldMaster = getWorldMaster(); + + if (item ~= nil and (equipSlot == EQUIPSLOT_MAINHAND or equipSlot == EQUIPSLOT_UNDERSHIRT or equipSlot == EQUIPSLOT_UNDERGARMENT)) then + player:sendGameMessage(player, worldMaster, 30730, 0x20, equipSlot+1, item.itemId, item.quality, 0, 0, 1); --Unable to unequip + elseif (item ~= nil) then + player:sendGameMessage(player, worldMaster, 30602, 0x20, equipSlot+1, item.itemId, item.quality, 0, 0, 1); --Item Removed + player:getEquipment():Unequip(equipSlot); + + if (equipSlot == EQUIPSLOT_BODY) then --Show Undershirt + item = player:getEquipment():GetItemAtSlot(EQUIPSLOT_UNDERSHIRT); + player:graphicChange(GRAPHICSLOT_BODY, item); + elseif (equipSlot == EQUIPSLOT_LEGS) then --Show Undergarment + item = player:getEquipment():GetItemAtSlot(EQUIPSLOT_UNDERGARMENT); + player:graphicChange(GRAPHICSLOT_LEGS, item); + elseif (equipSlot == EQUIPSLOT_HANDS) then player:graphicChange(15, 0, 1, 0, 0); + elseif (equipSlot == EQUIPSLOT_FEET) then player:graphicChange(16, 0, 1, 0, 0); + else + if (equipSlot == EQUIPSLOT_MAINHAND) then player:graphicChange(GRAPHICSLOT_MAINHAND, nil); + elseif (equipSlot == EQUIPSLOT_OFFHAND) then player:graphicChange(GRAPHICSLOT_OFFHAND, nil); + elseif (equipSlot == EQUIPSLOT_HEAD) then player:graphicChange(GRAPHICSLOT_HEAD, nil); + elseif (equipSlot == EQUIPSLOT_WAIST) then player:graphicChange(GRAPHICSLOT_WAIST, nil); + elseif (equipSlot == EQUIPSLOT_EARS) then player:graphicChange(GRAPHICSLOT_L_EAR, nil); player:graphicChange(GRAPHICSLOT_R_EAR, nil); + elseif (equipSlot == EQUIPSLOT_RFINGER) then player:graphicChange(GRAPHICSLOT_RFINGER, nil); + elseif (equipSlot == EQUIPSLOT_LFINGER) then player:graphicChange(GRAPHICSLOT_LFINGER, nil); + end + end + return true; + end +end diff --git a/scripts/commands/ItemWasteCommand.lua b/scripts/commands/ItemWasteCommand.lua new file mode 100644 index 00000000..d208124b --- /dev/null +++ b/scripts/commands/ItemWasteCommand.lua @@ -0,0 +1,15 @@ +--[[ + +ItemWasteCommand Script + +Notes: + +The param "invActionInfo" has the vars: actorId, unknown, slot, and inventoryType. +The param "itemDBIds" has the vars: item1 and item2. + +--]] + +function onEventStarted(player, actor, invActionInfo, param1, param2, param3, param4, param5, param6, param7, param8, itemDBIds) + player:getInventory(0x00):removeItem(invActionInfo.slot); + player:endEvent(); +end diff --git a/scripts/commands/LogoutCommand.lua b/scripts/commands/LogoutCommand.lua new file mode 100644 index 00000000..727e5a95 --- /dev/null +++ b/scripts/commands/LogoutCommand.lua @@ -0,0 +1,52 @@ +--[[ + +LogoutCommand Script + +Functions: + +eventConfirm() +eventCountDown() +eventLogoutFade() + +Menu Ids: + +Menu: 0 +Countdown: 1 + +--]] + +function onEventStarted(player, command) + player:setCurrentMenuId(0); + player:runEventFunction("delegateCommand", command, "eventConfirm"); +end + +function onEventUpdate(player, command, step, arg1, arg2) + + currentMenuId = player:getCurrentMenuId(); + + --Menu Dialog + if (currentMenuId == 0) then + if (arg1 == 1) then --Exit + player:quitGame(); + player:endEvent(); + elseif (arg1 == 2) then --Character Screen + player:logout(); + player:endEvent(); + --player:setCurrentMenuId(1); + --player:runEventFunction("delegateCommand", command, "eventCountDown"); + elseif (arg1 == 3) then --Cancel + player:endEvent(); + end + --Countdown Dialog + elseif (currentMenuId == 1) then + + if (arg2 == 1) then --Logout Complete + player:logout(); + player:endEvent(); + elseif (arg2 == 2) then --Cancel Pressed + player:endEvent(); + end + + end + +end \ No newline at end of file diff --git a/scripts/commands/TeleportCommand.lua b/scripts/commands/TeleportCommand.lua new file mode 100644 index 00000000..ddcdcb0c --- /dev/null +++ b/scripts/commands/TeleportCommand.lua @@ -0,0 +1,51 @@ +--[[ + +TeleportCommand Script + +Functions: + +eventRegion(numAnima) +eventAetheryte(region, animaCost1, animaCost2, animaCost3, animaCost4, animaCost5, animaCost6) +eventConfirm(isReturn, isInBattle, cityReturnNum, 138821, forceAskReturnOnly) + +Menu Ids: + +Region Menu: 0 +Aetheryte Menu: 1 +Confirm Menu: 2 + +--]] + +function onEventStarted(player, actor, isTeleport) + if (isTeleport == 0) then + player:setCurrentMenuId(0); + player:runEventFunction("delegateCommand", actor, "eventRegion", 100); + else + player:setCurrentMenuId(2); + player:runEventFunction("delegateCommand", actor, "eventConfirm", true, false, 1, 0x138824, false); + end +end + +function onEventUpdate(player, actor, step, arg1) + + menuId = player:getCurrentMenuId(); + + if (menuId == 0) then --Region + if (arg1 ~= nil and arg1 >= 1) then + player:setCurrentMenuId(1); + player:runEventFunction("delegateCommand", actor, "eventAetheryte", arg1, 2, 2, 2, 4, 4, 4); + else + player:endEvent(); + end + elseif (menuId == 1) then --Aetheryte + if (arg1 == nil) then + player:endEvent(); + return; + end + player:setCurrentMenuId(2); + player:runEventFunction("delegateCommand", actor, "eventConfirm", false, false, 1, 138824, false); + elseif (menuId == 2) then --Confirm + player:endEvent(); + end + +end \ No newline at end of file diff --git a/scripts/global.lua b/scripts/global.lua new file mode 100644 index 00000000..5b7d0984 --- /dev/null +++ b/scripts/global.lua @@ -0,0 +1,15 @@ +--[[ + +Globals referenced in all of the lua scripts + +--]] + +--ACTOR STATES + +ACTORSTATE_PASSIVE = 0; +ACTORSTATE_DEAD1 = 1; +ACTORSTATE_ACTIVE = 2; +ACTORSTATE_DEAD2 = 3; +ACTORSTATE_SITTING_ONOBJ = 11; +ACTORSTATE_SITTING_ONFLOOR = 13; +ACTORSTATE_MOUNTED = 15; \ No newline at end of file diff --git a/scripts/player.lua b/scripts/player.lua new file mode 100644 index 00000000..0f562f27 --- /dev/null +++ b/scripts/player.lua @@ -0,0 +1,113 @@ +local initClassItems, initRaceItems; + +function onLogin(player) + player:sendMessage(0x1D,"",">Callback \"onLogin\" for player script running."); + + if (player:getPlayTime(false) == 0) then + player:sendMessage(0x1D,"",">PlayTime == 0, new player!"); + + initClassItems(player); + initRaceItems(player); + end + +end + +function initClassItems(player) + + local slotTable; + local invSlotTable; + + --DoW + if (player.charaWork.parameterSave.state_mainSkill[0] == 2) then --PUG + player:getInventory(0):addItem({4020001, 8030701, 8050728, 8080601, 8090307}); + player:getEquipment():SetEquipment({0, 10, 12, 14, 15},{0, 1, 2, 3, 4}); + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 3) then --GLA + player:getInventory(0):addItem({4030010, 8031120, 8050245, 8080601, 8090307}); + player:getEquipment():SetEquipment({0, 10, 12, 14, 15},{0, 1, 2, 3, 4}); + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 4) then --MRD + player:getInventory(0):addItem({4040001, 8011001, 8050621, 8070346, 8090307}); + player:getEquipment():SetEquipment({0, 8, 12, 13, 15},{0, 1, 2, 3, 4}); + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 7) then --ARC + player:getInventory(0):addItem({4070001, 8030601, 8050622, 8080601, 8090307}); + player:getEquipment():SetEquipment({0, 10, 12, 14, 15},{0, 1, 2, 3, 4}); + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 8) then --LNC + player:getInventory(0):addItem({4080201, 8030801, 8051015, 8080501, 8090307}); + player:getEquipment():SetEquipment({0, 10, 12, 14, 15},{0, 1, 2, 3, 4}); + --DoM + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 22) then --THM + player:getInventory(0):addItem({5020001, 8030245, 8050346, 8080346, 8090208}); + player:getEquipment():SetEquipment({0, 10, 12, 14, 15},{0, 1, 2, 3, 4}); + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 23) then --CNJ + player:getInventory(0):addItem({5030101, 8030445, 8050031, 8080246, 8090208}); + player:getEquipment():SetEquipment({0, 10, 12, 14, 15},{0, 1, 2, 3, 4}); + + --DoH + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 29) then -- + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 30) then -- + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 31) then -- + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 32) then -- + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 33) then -- + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 34) then -- + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 35) then -- + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 36) then -- + + --DoL + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 39) then --MIN + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 40) then --BTN + elseif (player.charaWork.parameterSave.state_mainSkill[0] == 41) then --FSH + end + +end + +function initRaceItems(player) + + if (player.playerWork.tribe == 1) then --Hyur Midlander Male + player:getInventory(0):addItem(8040001); + player:getInventory(0):addItem(8060001); + elseif (player.playerWork.tribe == 2) then --Hyur Midlander Female + player:getInventory(0):addItem(8040002); + player:getInventory(0):addItem(8060002); + elseif (player.playerWork.tribe == 3) then --Hyur Highlander Male + player:getInventory(0):addItem(8040003); + player:getInventory(0):addItem(8060003); + elseif (player.playerWork.tribe == 4) then --Elezen Wildwood Male + player:getInventory(0):addItem(8040004); + player:getInventory(0):addItem(8060004); + elseif (player.playerWork.tribe == 5) then --Elezen Wildwood Female + player:getInventory(0):addItem(8040006); + player:getInventory(0):addItem(8060006); + elseif (player.playerWork.tribe == 6) then --Elezen Duskwight Male + player:getInventory(0):addItem(8040005); + player:getInventory(0):addItem(8060005); + elseif (player.playerWork.tribe == 7) then --Elezen Duskwight Female + player:getInventory(0):addItem(8040007); + player:getInventory(0):addItem(8060007); + elseif (player.playerWork.tribe == 8) then --Lalafell Plainsfolk Male + player:getInventory(0):addItem(8040008); + player:getInventory(0):addItem(8060008); + elseif (player.playerWork.tribe == 9) then --Lalafell Plainsfolk Female + player:getInventory(0):addItem(8040010); + player:getInventory(0):addItem(8060010); + elseif (player.playerWork.tribe == 10) then --Lalafell Dunesfolk Male + player:getInventory(0):addItem(8040009); + player:getInventory(0):addItem(8060009); + elseif (player.playerWork.tribe == 11) then --Lalafell Dunesfolk Female + player:getInventory(0):addItem(8040011); + player:getInventory(0):addItem(8060011); + elseif (player.playerWork.tribe == 12) then --Miqo'te Seekers of the Sun + player:getInventory(0):addItem(8040012); + player:getInventory(0):addItem(8060012); + elseif (player.playerWork.tribe == 13) then --Miqo'te Seekers of the Moon + player:getInventory(0):addItem(8040013); + player:getInventory(0):addItem(8060013); + elseif (player.playerWork.tribe == 14) then --Roegadyn Sea Wolf + player:getInventory(0):addItem(8040014); + player:getInventory(0):addItem(8060014); + elseif (player.playerWork.tribe == 15) then --Roegadyn Hellsguard + player:getInventory(0):addItem(8040015); + player:getInventory(0):addItem(8060015); + end + + player:getEquipment():SetEquipment({9, 11},{5,6}); + +end \ No newline at end of file diff --git a/scripts/zones/128/npcs/testNutEater.lua b/scripts/zones/128/npcs/testNutEater.lua new file mode 100644 index 00000000..91b02a61 --- /dev/null +++ b/scripts/zones/128/npcs/testNutEater.lua @@ -0,0 +1,3 @@ +function onInstantiate(npc) + return "/Chara/Npc/Monster/Lemming/NuteaterStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 10, 1, 4, false, false, false, false, false, false, false, false, 2; +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/aetheryteP_01@08500.lua b/scripts/zones/133/npcs/aetheryteP_01@08500.lua new file mode 100644 index 00000000..8f5b879e --- /dev/null +++ b/scripts/zones/133/npcs/aetheryteP_01@08500.lua @@ -0,0 +1,34 @@ +--[[ + +AetheryteParent Script + +Functions: + +eventAetheryteParentSelect(0x0, false, 0x60, 0x138807,0,0,0,0) +eventAetheryteParentDesion( +showAetheryteTips( +eventGLSelect(0) +eventSelectGLDetail(0x2a48, a, f4241, 136, 98b1d9, 1, 1, true, false) +eventGLDifficulty(0x2a48) +eventGLStart(0x2a48, 2, c8, 0, 0, 0, 0) +eventGLBoost() +eventGLPlay +eventGLReward() + + +Menu Ids: + +--]] + +function onInstantiate(npc) + return "/Chara/Npc/Object/Aetheryte/AetheryteParent", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("eventAetheryteParentSelect", 0x0, false, 0x61, 0x0,0,0,0,0); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + --player:runEventFunction("askOfferQuest", player, 1000); + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplGuildlev_01@08500.lua b/scripts/zones/133/npcs/pplGuildlev_01@08500.lua new file mode 100644 index 00000000..b28a12c1 --- /dev/null +++ b/scripts/zones/133/npcs/pplGuildlev_01@08500.lua @@ -0,0 +1,38 @@ +--[[ + +PopulaceGuildlevePublisher Script + +Functions: + +eventTalkType(level (changes factionLeves), sayIntro, brokenBladePoints, shieldsPoints, hornhandPoints, showTutorialLeves, doOmen (!=0), menuId (to Jump), leveAllowances, ?, ?, ?) +eventTalkPack(startGuildlevePack, endGuildlevePack) +eventTalkCard(card1,card2,card3,card4,card5,card6,card7,card8) +eventTalkDetail(guildLeveId, factionEvaluating, rewardType1, rewardQuantity1, rewardType2, rewardQuantity2, boostPoint, previouslyCompleted, completionBonus) +eventTalkAfterOffer() +eventHistoryleveExist(guildLeveId) +eventHistoryleveCannot() +eventGLChangeDetail(?, guildLeveId, boostPoint, rewardType1, rewardQuantity1, rewardType2, rewardQuantity2, factionEvaluating, previouslyCompleted) +eventTalkChangeOne(skipQuestion) +talkOfferMaxOver() +askRetryRegionalleve(guildLeveId, leveAllowances); + +Menu Ids: + +--]] + +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceGuildlevePublisher", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("eventTalkType", 0x30, true, 0x02CE, 0x356, 0x367, true, 0, nil, 0x29, 0,0,0); +end + +function onEventUpdate(player, npc, step, menuOptionSelected) + --player:runEventFunction("eventTalkType", 0x32, true, 0x02CE, 0x356, 0x367, false, 2, nil, 0x29, 0,0,0); + player:runEventFunction("eventTalkPack", 201, 207); + --player:runEventFunction("eventTalkCard", 0x30C3, 0x30C4, 0x30C1, 0x30C5, 0x30C6, 0x30C7, 0x30C8, 0x30C9); + --player:runEventFunction("eventTalkDetail", 0x30C4, 2, 0xF4242, 0xD, 0xF4242, 0, 0xFF, true, 11); + --player:runEventFunction("eventGLChangeDetail", 0xDEAD, 0x30C4, 0xFF, 0xF4242, 0xD, 0xF4242, 0, 2, true); + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplLinkshel_01@08500.lua b/scripts/zones/133/npcs/pplLinkshel_01@08500.lua new file mode 100644 index 00000000..0724c0b7 --- /dev/null +++ b/scripts/zones/133/npcs/pplLinkshel_01@08500.lua @@ -0,0 +1,28 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceLinkshellManager", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + isNew = false; + player:runEventFunction("eventTalkStep1", isNew); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + if (menuOptionSelected == nil) then + player:endEvent(); + return; + end + + isNew = false; + if (menuOptionSelected == 1) then + player:runEventFunction("eventTalkStep2", isNew); + elseif (menuOptionSelected == 10) then + player:endEvent(); + return; + elseif (menuOptionSelected == 3) then + --createLinkshell + player:runEventFunction("eventTalkStepMakeupDone", isNew); + end + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplPassiveG_01@08500.lua b/scripts/zones/133/npcs/pplPassiveG_01@08500.lua new file mode 100644 index 00000000..d074f797 --- /dev/null +++ b/scripts/zones/133/npcs/pplPassiveG_01@08500.lua @@ -0,0 +1,37 @@ +--[[ + +PopulacePassiveGLPublisher Script + +Functions: + +askOfferPack() - Show Classes +askOfferRank() - Show Ranks +askOfferQuest(player) +confirmOffer(nil, questId) +confirmMaxOffer() +talkOfferWelcome(actor, leveAllowances) +talkOfferDecide() +talkOfferMaxOver() +selectDiscardGuildleve(player) +confirmJournal() +askDiscardGuildleve() +confirmDiscardGuildleve(nil, questId) +askRetryRegionalleve(questId, leveAllowances) +finishTalkTurn() + +Menu Ids: + +--]] + +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulacePassiveGLPublisher", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("talkOfferWelcome", player, 1); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + --player:runEventFunction("askOfferQuest", player, 1000); + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_01@08500.lua b/scripts/zones/133/npcs/pplShopSal_01@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_01@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_02@08500.lua b/scripts/zones/133/npcs/pplShopSal_02@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_02@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_03@08500.lua b/scripts/zones/133/npcs/pplShopSal_03@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_03@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_04@08500.lua b/scripts/zones/133/npcs/pplShopSal_04@08500.lua new file mode 100644 index 00000000..6cfebcfd --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_04@08500.lua @@ -0,0 +1,52 @@ +--[[ + +PopulaceGuildlevePublisher Script + +Functions: + +welcomeTalk(say1, player, say2, say3) + +openShopBuy(player, shopId) +selectShopBuy(player) +closeShopBuy(player) + +openShopSell(player, shopId +selectShopSell(player) +closeShopSell(player) + +informSellPrice(num, num, num) + +finishTalkTurn(nil) + +selectMode(param): If >0, show class tutorial for id [param]. If <0, show gear affinity/condition instead, unless -7,-8,-9 then show normal. +selectModeOfClassVendor() +selectModeOfMultiWeaponVendor(param? is -1) +selectModeOfMultiArmorVendor(param? is -1) +confirmSellingItem() +informSellPrice(100, 100) +selectFacility +confirmUseFacility + + +Menu Ids: + +--]] + +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("selectModeOfMultiWeaponVendor", -1); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:runEventFunction("informSellPrice", 0x1, 0x1E, 0x46); + + --player:runEventFunction("openShopSell", player, 0x1389); + --player:runEventFunction("selectShopSell", player); + --player:runEventFunction("closeShopSell", player); + --player:endEvent(); + +end diff --git a/scripts/zones/133/npcs/pplShopSal_05@08500.lua b/scripts/zones/133/npcs/pplShopSal_05@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_05@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_06@08500.lua b/scripts/zones/133/npcs/pplShopSal_06@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_06@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_07@08500.lua b/scripts/zones/133/npcs/pplShopSal_07@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_07@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_08@08500.lua b/scripts/zones/133/npcs/pplShopSal_08@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_08@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_09@08500.lua b/scripts/zones/133/npcs/pplShopSal_09@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_09@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_0a@08500.lua b/scripts/zones/133/npcs/pplShopSal_0a@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_0a@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_0b@08500.lua b/scripts/zones/133/npcs/pplShopSal_0b@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_0b@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_0c@08500.lua b/scripts/zones/133/npcs/pplShopSal_0c@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_0c@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_0d@08500.lua b/scripts/zones/133/npcs/pplShopSal_0d@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_0d@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_0e@08500.lua b/scripts/zones/133/npcs/pplShopSal_0e@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_0e@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_0f@08500.lua b/scripts/zones/133/npcs/pplShopSal_0f@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_0f@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_10@08500.lua b/scripts/zones/133/npcs/pplShopSal_10@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_10@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplShopSal_11@08500.lua b/scripts/zones/133/npcs/pplShopSal_11@08500.lua new file mode 100644 index 00000000..26ead793 --- /dev/null +++ b/scripts/zones/133/npcs/pplShopSal_11@08500.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("welcomeTalk"); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_01@08500.lua b/scripts/zones/133/npcs/pplStd_01@08500.lua new file mode 100644 index 00000000..b5c9c135 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_01@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithKakamehi_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithKakamehi_002", nil, nil, nil); --IF ALC + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithKakamehi_003", nil, nil, nil); --IF ALC +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_02@08500.lua b/scripts/zones/133/npcs/pplStd_02@08500.lua new file mode 100644 index 00000000..16f3ccfd --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_02@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithEstrilda_001", nil, nil, nil); --DEFAULT + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithEstrilda_002", nil, nil, nil); --IF ARCHER + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithEstrilda_003", nil, nil, nil); --IF ARCHER +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_03@08500.lua b/scripts/zones/133/npcs/pplStd_03@08500.lua new file mode 100644 index 00000000..2c46d59d --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_03@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithIsleen_001", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_04@08500.lua b/scripts/zones/133/npcs/pplStd_04@08500.lua new file mode 100644 index 00000000..04081d45 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_04@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithZanthael_001", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_05@08500.lua b/scripts/zones/133/npcs/pplStd_05@08500.lua new file mode 100644 index 00000000..2887966b --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_05@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithNanaka_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithNanaka_002", nil, nil, nil); --GSM + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithNanaka_003", nil, nil, nil); --GSM NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_06@08500.lua b/scripts/zones/133/npcs/pplStd_06@08500.lua new file mode 100644 index 00000000..f46baa77 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_06@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGigirya_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGigirya_002", nil, nil, nil); --THM + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGigirya_003", nil, nil, nil); --THM NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_07@08500.lua b/scripts/zones/133/npcs/pplStd_07@08500.lua new file mode 100644 index 00000000..081188ed --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_07@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_08@08500.lua b/scripts/zones/133/npcs/pplStd_08@08500.lua new file mode 100644 index 00000000..68b2f8d8 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_08@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithBaderon_001", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_09@08500.lua b/scripts/zones/133/npcs/pplStd_09@08500.lua new file mode 100644 index 00000000..19dfc05f --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_09@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithZehrymm_001", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_0a@08500.lua b/scripts/zones/133/npcs/pplStd_0a@08500.lua new file mode 100644 index 00000000..a7090324 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_0a@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGnibnpha_001", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_0b@08500.lua b/scripts/zones/133/npcs/pplStd_0b@08500.lua new file mode 100644 index 00000000..8926d810 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_0b@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithJosias_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithJosias_002", nil, nil, nil); --CRP + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithJosias_003", nil, nil, nil); --CRP NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_0c@08500.lua b/scripts/zones/133/npcs/pplStd_0c@08500.lua new file mode 100644 index 00000000..51799dcb --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_0c@08500.lua @@ -0,0 +1,15 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_002", nil, nil, nil); --LNC + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_003", nil, nil, nil); --LNC NO GUILD + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_010", nil, nil, nil); --NOT DOW/DOM +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_0d@08500.lua b/scripts/zones/133/npcs/pplStd_0d@08500.lua new file mode 100644 index 00000000..f90827bd --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_0d@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithMaunie_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithMaunie_002", nil, nil, nil); --PUG + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithMaunie_003", nil, nil, nil); --PUG NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_0e@08500.lua b/scripts/zones/133/npcs/pplStd_0e@08500.lua new file mode 100644 index 00000000..009f5f2a --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_0e@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithStephannot_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithStephannot_002", nil, nil, nil); --MIN + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithStephannot_003", nil, nil, nil); --MIN NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_0f@08500.lua b/scripts/zones/133/npcs/pplStd_0f@08500.lua new file mode 100644 index 00000000..22b94d0a --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_0f@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGregory_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGregory_002", nil, nil, nil); --CNJ + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGregory_003", nil, nil, nil); --CNJ NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_10@08500.lua b/scripts/zones/133/npcs/pplStd_10@08500.lua new file mode 100644 index 00000000..716f20bd --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_10@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLauda_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLauda_002", nil, nil, nil); --BTN + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLauda_003", nil, nil, nil); --BTN NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_11@08500.lua b/scripts/zones/133/npcs/pplStd_11@08500.lua new file mode 100644 index 00000000..a88e6c7d --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_11@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLaniaitte_001", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_12@08500.lua b/scripts/zones/133/npcs/pplStd_12@08500.lua new file mode 100644 index 00000000..68b2f8d8 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_12@08500.lua @@ -0,0 +1,12 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithBaderon_001", nil, nil, nil); +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_13@08500.lua b/scripts/zones/133/npcs/pplStd_13@08500.lua new file mode 100644 index 00000000..e7e1bde1 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_13@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_002", nil, nil, nil); --LTW + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_003", nil, nil, nil); --LTW NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/pplStd_14@08500.lua b/scripts/zones/133/npcs/pplStd_14@08500.lua new file mode 100644 index 00000000..e7e1bde1 --- /dev/null +++ b/scripts/zones/133/npcs/pplStd_14@08500.lua @@ -0,0 +1,14 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + defaultSea = getStaticActor("DftSea"); + player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_001", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_002", nil, nil, nil); --LTW + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_003", nil, nil, nil); --LTW NO GUILD +end + +function onEventUpdate(player, npc) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/npcs/taskBoard_01@08500.lua b/scripts/zones/133/npcs/taskBoard_01@08500.lua new file mode 100644 index 00000000..2862b9e5 --- /dev/null +++ b/scripts/zones/133/npcs/taskBoard_01@08500.lua @@ -0,0 +1,11 @@ +function onInstantiate(npc) + return "/Chara/Npc/Object/TaskBoard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:endEvent(); +end + +function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) + player:endEvent(); +end \ No newline at end of file diff --git a/scripts/zones/133/zone.lua b/scripts/zones/133/zone.lua new file mode 100644 index 00000000..bf2f4cfe --- /dev/null +++ b/scripts/zones/133/zone.lua @@ -0,0 +1,9 @@ +function onZoneInit(zone) +end + +function onZoneIn(player) + player:sendMessage(0x1D,"",">Callback \"onZoneIn\" for zone 133 running."); +end + +function onZoneOut(zone, player) +end \ No newline at end of file diff --git a/scripts/zones/175/zone.lua b/scripts/zones/175/zone.lua new file mode 100644 index 00000000..703d61b9 --- /dev/null +++ b/scripts/zones/175/zone.lua @@ -0,0 +1,10 @@ + + +function onZoneInit(zone) +end + +function onZoneIn(zone, player) +end + +function onZoneOut(zone, player) +end \ No newline at end of file diff --git a/scripts/zones/193/npcs/pplStd_11@0C100.lua b/scripts/zones/193/npcs/pplStd_11@0C100.lua new file mode 100644 index 00000000..7448d456 --- /dev/null +++ b/scripts/zones/193/npcs/pplStd_11@0C100.lua @@ -0,0 +1,13 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceTutorial", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + man0l0Quest = getStaticActor("Man0l0"); + player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil); + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_002", nil, nil, nil); --LTW + --player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_003", nil, nil, nil); --LTW NO GUILD +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/zones/193/zone.lua b/scripts/zones/193/zone.lua new file mode 100644 index 00000000..703d61b9 --- /dev/null +++ b/scripts/zones/193/zone.lua @@ -0,0 +1,10 @@ + + +function onZoneInit(zone) +end + +function onZoneIn(zone, player) +end + +function onZoneOut(zone, player) +end \ No newline at end of file diff --git a/scripts/zones/244/npcs/objBed_01@0F400.lua b/scripts/zones/244/npcs/objBed_01@0F400.lua new file mode 100644 index 00000000..3f0cce38 --- /dev/null +++ b/scripts/zones/244/npcs/objBed_01@0F400.lua @@ -0,0 +1,24 @@ +function onInstantiate(npc) + return "/Chara/Npc/Object/ObjectBed", false, false, false, false, false, 0x1250FB, false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) + player:runEventFunction("askLogout", player); +end + +function onEventUpdate(player, npc, eventStep, menuOptionSelected) + + if (menuOptionSelected == 1) then + player:endEvent(); + return; + elseif (menuOptionSelected == 2) then + player:quitGame(); + elseif (menuOptionSelected == 3) then + player:logout(); + elseif (menuOptionSelected == 4) then + player:sendMessage(33, "", "Heck the bed"); + end + + player:endEvent(); + +end \ No newline at end of file diff --git a/scripts/zones/244/npcs/objInnDoor_01@0F400.lua b/scripts/zones/244/npcs/objInnDoor_01@0F400.lua new file mode 100644 index 00000000..59e9eb69 --- /dev/null +++ b/scripts/zones/244/npcs/objInnDoor_01@0F400.lua @@ -0,0 +1,9 @@ +function onInstantiate(npc) + return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/zones/244/npcs/objItemStore_01@0F400.lua b/scripts/zones/244/npcs/objItemStore_01@0F400.lua new file mode 100644 index 00000000..ab605060 --- /dev/null +++ b/scripts/zones/244/npcs/objItemStore_01@0F400.lua @@ -0,0 +1,9 @@ +function onInstantiate(npc) + return "/Chara/Npc/Object/ObjectItemStorage", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/zones/244/npcs/pplCutscene_01@0F400.lua b/scripts/zones/244/npcs/pplCutscene_01@0F400.lua new file mode 100644 index 00000000..ee33a00b --- /dev/null +++ b/scripts/zones/244/npcs/pplCutscene_01@0F400.lua @@ -0,0 +1,9 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceCutScenePlayer", false, false, false, false, false, 0x107B38, false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/zones/244/npcs/test1.lua b/scripts/zones/244/npcs/test1.lua new file mode 100644 index 00000000..8c67d57d --- /dev/null +++ b/scripts/zones/244/npcs/test1.lua @@ -0,0 +1,9 @@ +function onInstantiate(npc) + return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST"; +end + +function onEventStarted(player, npc) +end + +function onEventUpdate(player, npc) +end \ No newline at end of file diff --git a/scripts/zones/244/zone.lua b/scripts/zones/244/zone.lua new file mode 100644 index 00000000..703d61b9 --- /dev/null +++ b/scripts/zones/244/zone.lua @@ -0,0 +1,10 @@ + + +function onZoneInit(zone) +end + +function onZoneIn(zone, player) +end + +function onZoneOut(zone, player) +end \ No newline at end of file