mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Added the skeletons of the rest of the item commands.
This commit is contained in:
23
data/scripts/commands/BazaarDealCommand.lua
Normal file
23
data/scripts/commands/BazaarDealCommand.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
|
||||
BazaarDealCommand Script
|
||||
|
||||
Handles various bazaar transfer options
|
||||
|
||||
All bazaar args have a Reward (The item the person who fufills the request gets) and a Seek (The item the player wants, either gil or an item).
|
||||
|
||||
--]]
|
||||
|
||||
function onEventStarted(player, actor, triggerName, rewardItem, seekItem, bazaarMode, arg1, bazaarActor, rewardAmount, seekAmount, arg2, arg3, type9ItemIds)
|
||||
|
||||
--Get reward reference or itemId
|
||||
|
||||
--Get seek reference or itemid
|
||||
|
||||
--Tell worldmaster to add bazaar entry with reward, seek, rewardAmount, seekAmount, and bazaarMode
|
||||
|
||||
--Remove reward items from inventory
|
||||
|
||||
player:EndEvent();
|
||||
|
||||
end
|
Reference in New Issue
Block a user