Ir para conteúdo

CirocReturn

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    CirocReturn recebeu reputação de Polguilo em [GM ISLAND]   
    Pegae ta na coordenada (1107,1039,7) mas não é a coordenada correta do global é (32316,31942,7). Se ajudei REP+.
     
     
  2. Gostei
    CirocReturn recebeu reputação de Dornellas em [ERRO] Shop Globalevents   
    tenta assim 
    local SHOP_MSG_TYPE = MESSAGE_EVENT_ORANGE local SQL_interval = 30 function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do local id = tonumber(result_plr:getDataInt("id")) local action = tostring(result_plr:getDataString("action")) local delete = tonumber(result_plr:getDataInt("delete_it")) local cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) doItemSetAttribute(new_item, "description", "This item can only be used by the player ".. getPlayerName(cid) .."!") doItemSetAttribute(new_item, "aid", getPlayerGUID(cid)+10000) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'Voce recebeu >> '.. add_item_name ..' << do Dramonio Shop.Obrigado pela compra, volte sempre!') db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return true end  
  3. Gostei
    CirocReturn recebeu reputação de marciomrb em Qual escolher? Gesior, Modern.. etc   
    Gesior é o melhor ou Znote outro nem rola..
  4. Gostei
    ATENÇÃO: Boas novas, em breve nas próximas semanas sairá a V2 do Absolute e Ciroc Global, com todas as features 10.92~~10.96 e também desta vez sairá em open source pois caso eu tome ban eu continuarei atualizando la, espero que não tome ban dessa vez até porque ainda não sei o motivo de ter tomando ban da primeira vez, então fortalece de rep ai que breve vo trazer esse pack para o melhor novamente,várias correções e novidades incluindo New Events,New Depot,New Potions,Heart Of Destruction Quest (Sparkion),Otherworld,PvE Arena, New sistemas 10.94 e também o sistema de Store Shop e Equipe Hotkey já em modules e também liberarei um gesior top junto compatível. :D

  5. Gostei
    CirocReturn recebeu reputação de Luiz Mdc em Capture The Frag   
    tem vários aqui no TK, o melhor que vi foi esse:

     
  6. Gostei
    CirocReturn recebeu reputação de kauan13 em [Website]   
  7. Gostei
    CirocReturn recebeu reputação de Wakon em DotA Event (TFS 1.x)   
    Bom dia queridos amigos do Tibia King, estou voltando ao fórum e desta vez irei trazer bastante conteúdo novo e ajudar bastante, para começar trarei o DotA Event para TFS 1.x, ele funciona exatamente igual o antigo do TFS 0.4. Segue download de scripts + mapa, o script globalevents está todo comentado para você conseguir configura-lo corretamente caso queira mudar a posição do mapa.
     
    Imagens:
     
     
     
     
     
    Download em anexo no tópico.
     
     
     
    Gostou? deixe seu rep+ para que eu traga mais conteúdo.
     
    DotA Event.zip
  8. Gostei
    CirocReturn recebeu reputação de kauan13 em [GM ISLAND]   
    Pegae ta na coordenada (1107,1039,7) mas não é a coordenada correta do global é (32316,31942,7). Se ajudei REP+.
     
     
  9. Gostei
    CirocReturn recebeu reputação de Leo Zanin em [SUPORTE] NPC Cassino TFS 1.2   
    O Script que eu uso é diferente e não me lembro de acontecer esse erro, se quiser testar:
    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local function delayMoneyRemoval(item, pos) doRemoveItem(getTileItemById(pos, item).uid) return true end local function placeMoney(amount, table_middle_pos) local remain = amount local crystal_coins = 0 local platinum_coins = 0 if (math.floor(amount / 10000) >= 1) then crystal_coins = math.floor(amount / 10000) remain = remain - crystal_coins * 10000 end if ((remain / 100) >= 1) then platinum_coins = remain / 100 end addEvent(doCreateItem, 550, 2152, platinum_coins, table_middle_pos) addEvent(doCreateItem, 600, 2160, crystal_coins, table_middle_pos) end local function rollDice(roll, cc_count, pc_count, table_left_pos, table_middle_pos, npc) local dice_ids = {5792, 5793, 5794, 5795, 5796, 5797} local random_rollval = math.random(1,6) local total_g = (10000 * cc_count) + (100 * pc_count) local prize_percent = 0.8 -- 80% if ((total_g) <= 300000 and (total_g) >= 5000) then doSendMagicEffect(table_left_pos, CONST_ME_CRAPS) for _, itemId in pairs(dice_ids) do if(getTileItemById(table_left_pos, itemId).uid > 0) then doTransformItem(getTileItemById(table_left_pos, itemId).uid, dice_ids[random_rollval]) end end if (roll == 1 and random_rollval <= 3) then placeMoney(total_g + (total_g * prize_percent), table_middle_pos) addEvent(doSendMagicEffect, 400, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doSendMagicEffect, 700, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doCreatureSay, 500, npc, "You win!", TALKTYPE_SAY, false, 0) elseif (roll == 2 and random_rollval >= 4) then placeMoney(total_g + (total_g * prize_percent), table_middle_pos) addEvent(doSendMagicEffect, 400, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doSendMagicEffect, 700, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doCreatureSay, 500, npc, "You win!", TALKTYPE_SAY, false, 0) else addEvent(doSendMagicEffect, 400, table_left_pos, CONST_ME_BLOCKHIT) addEvent(doSendMagicEffect, 700, table_left_pos, CONST_ME_BLOCKHIT) addEvent(doCreatureSay, 500, npc, "Better luck next time.", TALKTYPE_SAY, false, 0) end doCreatureSay(npc, string.format("%s rolled a %d.", getCreatureName(npc), random_rollval), TALKTYPE_ORANGE_1, false, 0, table_left_pos) else addEvent(doCreateItem, 100, 2160, cc_count, table_middle_pos) addEvent(doCreateItem, 150, 2152, pc_count, table_middle_pos) doCreatureSay(npc, "The minimum wager is 5K and the maximum wager is 300K.", TALKTYPE_SAY, false, 0) end return true end function creatureSayCallback(cid, type, msg) -- NPC userdata instance local npc = getNpcCid() -- Game table position userdata instances local table_left_pos = {x = 32260, y = 32274, z = 12} -- Pos da frente do Npc onde gira o dado local table_middle_pos = {x = 32261, y = 32274, z = 12} -- Pos do meio onde vai o dinheiro -- Search for coins on the left and middle tables and create item userdata instances local table_middle_cc = getTileItemById(table_middle_pos, 2160) local table_middle_pc = getTileItemById(table_middle_pos, 2152) -- Other variables local cc_count = 0 local pc_count = 0 local ROLL, LOW, HIGH = 0, 1, 2 posplayer = {x=32262, y=32275, z=12} -- Pos onde o player precisa estar local ppos = getPlayerPosition(cid) if ppos.x == posplayer.x and ppos.y == posplayer.y then if isInArray({"H", "HIGH", "high", "h"}, msg) then ROLL = HIGH elseif isInArray({"L", "LOW", "l", "low"}, msg) then ROLL = LOW else return false end if (table_middle_cc.uid ~= 0) then cc_count = table_middle_cc.type doTeleportThing(table_middle_cc.uid, table_left_pos) addEvent(delayMoneyRemoval, 300, 2160, table_left_pos) end if (table_middle_pc.uid ~= 0) then pc_count = table_middle_pc.type doTeleportThing(table_middle_pc.uid, table_left_pos) addEvent(delayMoneyRemoval, 300, 2152, table_left_pos) end addEvent(rollDice, 500, ROLL, cc_count, pc_count, table_left_pos, table_middle_pos, npc) else return false end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())  
  10. Gostei
    CirocReturn recebeu reputação de matheus36000 em LAg   
    Sim travadinhas é freeze, você tem certeza que com o ot aberto seu uso de memoria e cpu ficam baixos e não tem nenhum bug aparecendo na distro? isso não é uplink, com certeza é algum bug causando alto uso de cpu ou memoria ou seu vps é fraco pro tamanho do seu servidor, você usa TFS ou OTX? 
     
    PS: Passa ip para eu ver.
  11. Gostei
    ATENÇÃO: Boas novas, em breve nas próximas semanas sairá a V2 do Absolute e Ciroc Global, com todas as features 10.92~~10.96 e também desta vez sairá em open source pois caso eu tome ban eu continuarei atualizando la, espero que não tome ban dessa vez até porque ainda não sei o motivo de ter tomando ban da primeira vez, então fortalece de rep ai que breve vo trazer esse pack para o melhor novamente,várias correções e novidades incluindo New Events,New Depot,New Potions,Heart Of Destruction Quest (Sparkion),Otherworld,PvE Arena, New sistemas 10.94 e também o sistema de Store Shop e Equipe Hotkey já em modules e também liberarei um gesior top junto compatível. :D

  12. Gostei
    ATENÇÃO: Boas novas, em breve nas próximas semanas sairá a V2 do Absolute e Ciroc Global, com todas as features 10.92~~10.96 e também desta vez sairá em open source pois caso eu tome ban eu continuarei atualizando la, espero que não tome ban dessa vez até porque ainda não sei o motivo de ter tomando ban da primeira vez, então fortalece de rep ai que breve vo trazer esse pack para o melhor novamente,várias correções e novidades incluindo New Events,New Depot,New Potions,Heart Of Destruction Quest (Sparkion),Otherworld,PvE Arena, New sistemas 10.94 e também o sistema de Store Shop e Equipe Hotkey já em modules e também liberarei um gesior top junto compatível. :D

Informação Importante

Confirmação de Termo