mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Fixed issue where spawn packets were sent on zone out. Added all npcs to Camp Bearded Rock. Rewrote how mapobjs get loaded in, no more hardcodes. Added tons mapobjs to the DB. Added ferry npcs.
This commit is contained in:
parent
52cacb1ded
commit
d96d5b29a5
63 changed files with 883 additions and 284 deletions
3
data/scripts/base/chara/npc/mapobj/MapObjStandard.lua
Normal file
3
data/scripts/base/chara/npc/mapobj/MapObjStandard.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0, 303, 10405;
|
||||
end
|
5
data/scripts/base/chara/npc/monster/Ifrit/IfritDummy.lua
Normal file
5
data/scripts/base/chara/npc/monster/Ifrit/IfritDummy.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return true, true, 10, 0, 1, true, false, false, false, false, true, true, false, 0;
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return true, true, 10, 3, 1, true, false, false, false, false, true, true, false, 0;
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return true, true, 10, 3, 1, false, false, false, false, false, true, true, false, 0;
|
||||
end
|
19
data/scripts/base/chara/npc/object/RaidDungeonBarrier.lua
Normal file
19
data/scripts/base/chara/npc/object/RaidDungeonBarrier.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
isActive = true;
|
||||
|
||||
if (isActive) then
|
||||
choice = callClientFunction(player, "askYesNo");
|
||||
else
|
||||
callClientFunction(player, "eventTalkRead");
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
|
||||
end
|
26
data/scripts/base/chara/npc/populace/PopulaceCampMaster.lua
Normal file
26
data/scripts/base/chara/npc/populace/PopulaceCampMaster.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
--[[
|
||||
|
||||
PopulaceCampMaster Script
|
||||
|
||||
Functions:
|
||||
|
||||
defTalk(player, favAetheryte1, favAetheryte2, favAetheryte3, playerLevel, ?) - The main and only function for this npc. If favAetheryte1 == 0, will not ask to remove others.
|
||||
|
||||
--]]
|
||||
|
||||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
favLocation = callClientFunction(player, "defTalk", player, 0, 1280004, 1280005);
|
||||
|
||||
--if (hasThree) then
|
||||
--Remove chosen
|
||||
--end
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,31 @@
|
|||
--[[
|
||||
|
||||
PopulaceCampSubMaster Script
|
||||
|
||||
Functions:
|
||||
|
||||
talkWelcome(player, level, ?) - Main npc function.
|
||||
confirmUseFacility(player, gilAmount) - Confirm dialog if player uses facility.
|
||||
finishTalkTurn() - Call to stop the npc staring at player.
|
||||
|
||||
--]]
|
||||
|
||||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
choice = callClientFunction(player, "talkWelcome", player, 1, false);
|
||||
|
||||
if (choice == 1) then
|
||||
confirmed = callClientFunction(player, "confirmUseFacility", player, 1);
|
||||
end
|
||||
|
||||
callClientFunction(player, "finishTalkTurn");
|
||||
|
||||
player:EndEvent();
|
||||
|
||||
end
|
|
@ -0,0 +1,28 @@
|
|||
--[[
|
||||
|
||||
PopulaceItemRepairer Script
|
||||
|
||||
Functions:
|
||||
|
||||
INIT: speechType, townType
|
||||
|
||||
talkWelcome(player, bool, number, bool) - Opens the main menu
|
||||
selectItem(nil, pageNumber, ?, condition1, condition2, condition3, condition4, condition5) - "Ain't running a charity here", message said when you have insufficent funds
|
||||
confirmRepairItem(player, price, itemId, hq grade) - Shows the confirm box for item repair.
|
||||
confirmUseFacility(player, price) - Shows confirm box for using facility. Default price is 11k?
|
||||
finishTalkTurn() - Call at end to stop npc from staring at the player (eeeek)
|
||||
|
||||
--]]
|
||||
|
||||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
result = callClientFunction(player, "eventTalkStep14");
|
||||
|
||||
player:EndEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue