-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3679 from Xaver-DaRed/escha/npcs
[Escha] Add Ethereal droplet npcs and logic
- Loading branch information
Showing
5 changed files
with
75 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
----------------------------------- | ||
-- Area: Reisenjima (291) | ||
-- NPC: ??? | ||
-- Notes: Grants "Ethereal droplet" temporary item. | ||
----------------------------------- | ||
local ID = require("scripts/zones/Reisenjima/IDs") | ||
require("scripts/globals/items") | ||
require("scripts/globals/status") | ||
----------------------------------- | ||
|
||
local entity = {} | ||
|
||
entity.onTrade = function(player, npc, trade) | ||
end | ||
|
||
entity.onTrigger = function(player, npc) | ||
if player:hasItem(xi.items.ETHEREAL_DROPLET, xi.inv.TEMPITEMS) then | ||
player:messageSpecial(ID.text.NOTHING_OUT_OF_ORDINARY) | ||
else | ||
player:addTempItem(xi.items.ETHEREAL_DROPLET, 1) | ||
player:messageSpecial(ID.text.ITEM_OBTAINED, xi.items.ETHEREAL_DROPLET) | ||
end | ||
end | ||
|
||
entity.onEventUpdate = function(player, csid, option) | ||
end | ||
|
||
entity.onEventFinish = function(player, csid, option, npc) | ||
end | ||
|
||
return entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters