Ir para conteúdo
  • Cadastre-se

BennyDz

Membro
  • Total de itens

    120
  • Registro em

  • Última visita

Tudo que BennyDz postou

  1. precisam desses items.otb items.zip
  2. i try this: function getAllItemsById(self, id) local containers = {} local items = {} for i = CONST_SLOT_HEAD, CONST_SLOT_AMMO do local item = self:getSlotItem(i) if item then if item:isContainer() then table.insert(containers, item:getUniqueId()) elseif not id or id == item:getId() then table.insert(items, item:getUniqueId()) end end end while #containers > 0 do for k = (Container(containers[1]):getSize() - 1), 0, -1 do local tmp = Container(contain
  3. do you think you can help me convert this function to tfs 1.2? function getAllItemsById(cid, id) local containers = {} local items = {} for i = CONST_SLOT_FIRST, CONST_SLOT_LAST do local sitem = getPlayerSlotItem(cid, i) if sitem.uid > 0 then if isContainer(sitem.uid) then table.insert(containers, sitem.uid) elseif not(id) or id == sitem.itemid then table.insert(items, sitem) end end end while #containers > 0 do for k = (getContainerSize(containers[1])
  4. Are you going to use this script? onLogin? I think if this is it, the player will be offline on verification. R= I had thought to use it in a globalevent. I think the best option would be to use it in OnStartUp, and create another onlogin script, that verifies items on players online, with addEvent (checkitems, 2000) to check the slots and the items inside the backpack
  5. Can not load script: lua:9 ')' expected near 'timerOnExp' try to execute the following command directly in the database with the online player: DELETE FROM `player_items` WHERE `player_id`=196 AND `sid` = 107 and it is not eliminated. I think the same thing happens as when you try to change a player's value, if it is online there is no effect. Can you think of an idea?
  6. now dont have error in console but dont delete items He should have eliminated those 3 items, but they are not deleted
  7. oi galera estou tentando SELECT `player_id`,`pid`,`sid`,CONVERT(`attributes` USING latin1 ) FROM `player_items` WHERE CONVERT(`attributes` USING latin1 ) LIKE '%timerOnExp%' Recebo os seguintes resultados a idéia é usá-lo em um globalvent if timerOnExp < os.time() then delete items end
  8. tente instalar este sistema: database execute ALTER TABLE `players` ADD `auction_balance` INT( 11 ) NOT NULL DEFAULT '0'; CREATE TABLE `auction_system` ( `id` int(11) NOT NULL auto_increment, `player` int(11), `item_id` int(11), `item_name` varchar(255), `count` int(11), `cost` int(11), `date` int(11), PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; auctionsystem.php <?PHP $auctions = $SQL->query('SELECT `auction_system`.`player`, `auction_system`.`id`, `auction_system`.`item_name`, `auction_system`.`item_id`, `aucti
  9. try this local config = { levelRequiredToAdd = 20, maxOffersPerPlayer = 5, SendOffersOnlyInPZ = true, blocked_items = {2165, 2152, 2148, 2160, 2166, 2167, 2168, 2169, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2343, 2433, 2640, 6132, 6300, 6301, 9932, 9933} } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local t = string.explode(param, "
  10. :7: bad argument #1 to 'len' <string expected, got boolean) Line 7: local attrnumber = tonumber(string.sub(attrstring, -12, string.len(attrstring)-2)) -- here I try to get only the number (I'm not sure if it will work) Can not this be adapted to do what I'm looking for? Anti-Dupe - Delete all items with duplicated serial from your database. tablesToCheck = {"player_items", "player_depotitems", "tile_items", {"player_items", {"player_depotitems", "tile_items"}}, {"player_depotitems", "tile_items"}} function onStartup() local text, final = "",
  11. my results: I would appreciate your' help, since I do not know how to finish it
  12. I do not have much experience with MySQL. How could I use it in global event, to find atribute item:setSpecialAttribute("timerOnExp", os.time()+60*60) how declare delete items, if os.time() > getSpecialAttribute("timerOnExp") ? I plan to implement it in a globalevent.xml
  13. if I know those functions, the problem that the decay stops when the character logout, or when they put it in the depot, then I'm trying to make a system where certain items expire in a certain time. as in tibia rl 11:53 You see a temple teleport scroll that will expire in 7 days. It weighs 1.20 oz. If you do not use the item in 7 days, it disappears.
  14. functions: setSpecialAttribute and getSpecialAttribute() Example: i put SpecialAttrubute with: local new_item = player:addItem(itemId, 1) new_item:setSpecialAttribute("timerOnExp", os.time()+60*60) ---------------------------------------------------------------------------------- and call with: item:getSpecialAttribute("timerOnExp") this return valor "os.time()+60*60" ---------------------------------------------------------------------------------- need call all items in globalevents: If Allitems:getSpecialAttribute("tim
  15. HiIs it possible to consult the special attributes in all the items?Depot, Players, Houses, Tiles Etc.I USE TFS 1.2I want to transform items with a certain attribute.Example:If Allitems(itemid):getSpecialAttribute <= 12345 thentransformto()endto place it in a globalevent
  16. FEYRIST (SUMMER UPDATE TIBIA) includes monsters MONSTERS INCLUDES: SCREENSHOTS: https://www.virustotal.com/es/url/0ea71ec1452a8f525d4aa9d45e97187346f33054e5c23fb830632510ea092430/analysis/1510271568/ Map Feyrist.rar https://www.virustotal.com/#/url/2f47c27fcc19799620a4f23f6a3f0651d6aa5cd6808d0c9f4b9688347a0d5632/detection Monsters Feyrist.rar
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo