mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Added the skeletons of the rest of the item commands.
This commit is contained in:
parent
fe4b9cb2bf
commit
2a489953db
5 changed files with 157 additions and 0 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue