
-
-
FAÇA SUA LOGO!
NOME DO SERVIDOR: Kingslave PREFIXO:Baiak FIRULAS/ENFEITES: Dragão
-
FAÇA SUA LOGO!
NOME DO SERVIDOR: Really PREFIXO: Baiak ou World FIRULAS/ENFEITES: Como sua criatividade mandar kk
-
-
[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
-
PAGO PRA RESOLVER.
add skype rike.sexy
-
-
Anti-Lags/Kicks TFS 1.2
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.
-
Qual escolher? Gesior, Modern.. etc
Gesior é o melhor ou Znote outro nem rola..
-
Anti-Lags/Kicks TFS 1.2
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.
-
-
-
O que ta acontecendo? - Dota Evento [AJUDA]
qual o id do piso? pode ter algum script no id desse piso, tenta trocar o piso. hahah
-
Mudar versao do server pra 8.60
creio que não vai da muitos erros não, mas você precisa testar, depois resolvemos os erros, uma coisa de cada vez HAHAH
-
Mudar versao do server pra 8.60
só colocar uma distro 8.6 ou atualizar a sua se você tiver as sources.
-
Fui Abri O Site Olha No Que Deu
não está carregando o template tem algo errado, coloca o config ai pra eu ver.
-
O que ta acontecendo? - Dota Evento [AJUDA]
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.
-
-
O que ta acontecendo? - Dota Evento [AJUDA]
sim o script do movements
-
O que ta acontecendo? - Dota Evento [AJUDA]
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
-
[PEDIDO] script effeito em personagem tfs 0.4
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