Mariuskens
Sword Art Online 2D-MMORPG
Awesome nice!!!!
Great work!!
about the map...
Unsupported client version! (8)
can you please save in version 10.41 or 10.77?
you can create a new blank map with your prefered version then import my map on it.
file->import-> import map
eu vesti a carapuça agorasure that we have but most of them dont use to share their good works ..
Error:
haha isnt to make my life easier hahahaha by doing that will help everyone who doesnt pay attention to post edit date (like me) hahahahayea i updated XD i should say which files were edited in the changelog to make your life a bit easier
if someone get a DEBUG in client when comes the broadcast that start the game, need to change the lines with broadcastMessage to Game.broadcastMessage(MESSAGE_EVENT_ADVANCE, 'text from the script')
If you have any bugs, optimizations, possible features, please let me know.
Known Bugs:
Code:- previous items held in will not be returned to the player after the event, even tho they are loaded into the map and script, they do work if the player have visited said depot box atleast once in his session/server session.
function Player:getBackItems() -- function to clear the player's inventory
local depotpos = Tile(Position(depotbox.x, depotbox.y, depotbox.z)):getItemByType(ITEM_TYPE_DEPOT)
local depotid = getDepotId(depotpos:getUniqueId())
local depot = self:getDepotChest(depotid,true)
local box = depot:getItem(0)
for i= box:getSize()-1, 0, -1 do
local item = box:getItem(i)
if item then
item:clone():moveTo(self)
end
end
box:remove() --unqued this function to clean the depot after duplicating it to player.
end
@Karain you were really close to fix that bug! It's solved now. I just added a clone function Now it works 100% with or without opening depot Thank you for sharing the event i love it
Code:function Player:getBackItems() -- function to clear the player's inventory local depotpos = Tile(Position(depotbox.x, depotbox.y, depotbox.z)):getItemByType(ITEM_TYPE_DEPOT) local depotid = getDepotId(depotpos:getUniqueId()) local depot = self:getDepotChest(depotid,true) local box = depot:getItem(0) for i= box:getSize()-1, 0, -1 do local item = box:getItem(i) if item then item:clone():moveTo(self) end end box:remove() --unqued this function to clean the depot after duplicating it to player. end