• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Event dont add playerstorage

MxSoft

Leave Tibia, Live Life.
Joined
Dec 22, 2009
Messages
1,804
Solutions
1
Reaction score
43
Location
Mexico
Lua:
addEvent(function ()     area1a = {x=33239,y=31100,z=7}
                                    area1b = {x=33295,y=31132,z=7}
                                    local revoP = {}
                                    for x = area1a.x, area1b.x do
                                        for y = area1a.y, area1b.y do
                                            for z = area1a.z, area1b.z do
                                                if isCreature(getTopCreature({x = x, y = y, z = z}).uid) then
                                                    doRemoveCreature(getTopCreature({x = x, y = y, z = z}).uid)
                                                end
                                                if isPlayer(getTopCreature({x = x, y = y, z = z}).uid) then
                                                    table.insert(revoP, getTopCreature({x = x, y = y, z = z}).uid)
                                                end
                                            end
                                        end
                                    end
                                    for i = 1, #revoP do
                                        setPlayerStorageValue(revoP[i], 38000, 18)
                                        doTeleportThing(revoP[i], {x = 33352, y = 31410, z = 8})
                                        doSendMagicEffect({x = 33353, y = 31410, z = 8}, CONST_ME_TELEPORT)
                                  
                                    end
                                end, 5 * 30 * 1000)
Hi, im cant make my script work, this event teleport me but doesnt gaves me the storage:
 
Back
Top