mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Commited changed scripts.
This commit is contained in:
parent
7e2246e8d8
commit
5fd48fad6b
4 changed files with 21 additions and 4 deletions
|
@ -22,8 +22,14 @@ function doItemTrade(player, retainer)
|
|||
callClientFunction(player, "eventTalkRetainerItemTrade", 1);
|
||||
|
||||
while (true) do
|
||||
resultCode, type7Param, un1, quantity, itemId, quality = callClientFunction(player, "eventTalkRetainerItemTrade", 2);
|
||||
resultCode, type7Param, un1, quantity, itemId, quality = callClientFunction(player, "eventTalkRetainerItemTrade", 2);
|
||||
|
||||
player:SendMessage(0x20, "", "" .. tostring(resultCode));
|
||||
player:SendMessage(0x20, "", "" .. tostring(un1));
|
||||
player:SendMessage(0x20, "", "" .. tostring(quantity));
|
||||
player:SendMessage(0x20, "", "" .. tostring(itemId));
|
||||
player:SendMessage(0x20, "", "" .. tostring(quality));
|
||||
|
||||
--Retreieve
|
||||
if (resultCode == 31) then
|
||||
retainer:GetInventory(type7Param.inventoryType):RemoveItemAtSlot(type7Param.slot, quantity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue