Ir para conteúdo

CirocReturn

Membro
  • Registro em

  • Última visita

  1. Polguilo reagiu a uma resposta no tópico: [GM ISLAND]
  2. NOME DO SERVIDOR: Kingslave PREFIXO:Baiak FIRULAS/ENFEITES: Dragão
  3. NOME DO SERVIDOR: Really PREFIXO: Baiak ou World FIRULAS/ENFEITES: Como sua criatividade mandar kk
  4. Dornellas reagiu a uma resposta no tópico: [ERRO] Shop Globalevents
  5. 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
  6. add skype rike.sexy
  7. marciomrb reagiu a uma resposta no tópico: Qual escolher? Gesior, Modern.. etc
  8. seu servidor o global? vai nas storages na pasta lib e ve se existe a storage combatProtectionStorage, eu não investiguei se é direto na source ou por script esse sistema mas não achei script dele, teste e veja se funciona assim e se caso não funcione eu procuro onde o sistema funciona e te passo.
  9. Gesior é o melhor ou Znote outro nem rola..
  10. Procura no seu login.lua se tem essas linhas: local function onMovementRemoveProtection(cid, oldPosition, time) local player = Player(cid) if not player then return true end local playerPosition = player:getPosition() if (playerPosition.x ~= oldPosition.x or playerPosition.y ~= oldPosition.y or playerPosition.z ~= oldPosition.z) or player:getTarget() then player:setStorageValue(Storage.combatProtectionStorage, 0) return true end addEvent(onMovementRemoveProtection, 1000, cid, oldPosition, time - 1) end e essas: if player:getStorageValue(Storage.combatProtectionStorage) <= os.time() then player:setStorageValue(Storage.combatProtectionStorage, os.time() + 10) onMovementRemoveProtection(playerId, player:getPosition(), 10) end caso tenha essas linhas então já existe o sistema no seu servidor, muitas vezes a gente não percebe eu mesmo demorei pra ver que já tinha, se já tiver as linhas teste da seguinte maneira, de exit em char nos treiners e fique com outro do lado de mc pra ver se os monstros param de atacar e em seguida o player toma kick, se isso ocorrer o sistema já está ativo.
  11. Luiz Mdc reagiu a uma resposta no tópico: Capture The Frag
  12. qual o id do piso? pode ter algum script no id desse piso, tenta trocar o piso. hahah
  13. creio que não vai da muitos erros não, mas você precisa testar, depois resolvemos os erros, uma coisa de cada vez HAHAH
  14. só colocar uma distro 8.6 ou atualizar a sua se você tiver as sources.
  15. não está carregando o template tem algo errado, coloca o config ai pra eu ver.
  16. eu creio que o numero da action que você está usando para o evento,seja o mesmo de outro script de movement, confere e troca, se funcionar me avise.
  17. kauan13 reagiu a uma resposta no tópico: [Website]
  18. sim o script do movements
  19. manda o script, não da erro no distro? qual tfs? essa msg é igual do script das portas pode tar tendo confusão de action, mande script
  20. Fiz esse script pra um Baiak de um amigo, porem ele é cor fica e para player vip,vou colocar a base e você edita como quiser, se você procurar tem um que usa sistema de lib por vocações aqui no TK mesmo, só tem que achar. Em creaturescripts.xml adicione: <event type="login" name="vipeffect" event="script" value="vipeffect.lua"/> <event type="logout" name="vipeffect2" event="script" value="vipeffect.lua"/> Crie um arquivo chamado vipeffect.lua na pasta scripts: function effectvip(cid) if isPlayer(cid) then doSendAnimatedText(getThingPos(cid), "´ .´ ", 204) eventCheck = addEvent(effectvip, 2000, cid) end end function onLogin(cid) if isPlayer(cid) then if vip.hasVip(cid) == true then doSendAnimatedText(getThingPos(cid), "´ .´ ", 204) doPlayerSendTextMessage(cid, 27, "A cada 1 minuto treinando voce ganhara 5 minutos de stamina.") eventCheck = addEvent(effectvip, 2000, cid) end end return true end function onLogout(cid) if vip.hasVip(cid) == true then stopEvent(effectvip) end return true end

Informação Importante

Confirmação de Termo