Ir para conteúdo
  • Cadastre-se

Crypter

Membro
  • Total de itens

    343
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Crypter postou

  1. local config = { effect = 35, storage = 14875 } function onCastSpell(cid, var) if getPlayerStorageValue(cid, config.storage) == -1 and getPlayerLookDir(cid) == 0 then doSendMagicEffect(getPlayerPosition(cid),35) doTeleportThing(cid, {x= getCreaturePosition.x, y= getCreaturePosition.y, z= getCreaturePosition.z-1}) -- está com posição específica queria deixar igual como citado acima! end return true end
  2. Você coloca assim no items.xml <item id="id no items.otb do item" article="a" name="Nome do item"></item> nao esqueçe de arrumar
  3. local blocked_items = {x,y,z} -- id dos items a ser movido if isInArray(item.itemid, blocked_items) then local item_toPos = getThingByPos(toPos) local blocked_tiles = {e,r,t}-- id dos pisos que não podem jogar os items da tabela blocked_items if isInArray(item_toPos.itemid, blocked_tiles) then return false and doPlayerSendCancel(cid, 'You can not put this object in this place.') and false end end Como essa função tem várias versões eu não sei a sua, então insira isso no seu código e veja se ele usar toPos ou toPosition e então arrume a 1° linha
  4. Esse sistema é algo muito complexo ninguém vai fazer pra ti de graça, se quiser mesmo o sistema vai atrás de um programador
  5. A conta deve ter alguma house vinculada a ela, você vai ter que dar um jeito de tirar a house
  6. Gosto da minha script ne safado, dei uma melhorada nela pra ti, bom uso
  7. function doSendFlamingSphere(cid, target) local effectType = 3 -- effect local posTarget = getCreaturePosition(cid) local posEffect = { {x=posTarget.x, y=(posTarget.y)-1, z=posTarget.z}, {x=(posTarget.x)+1, y=posTarget.y, z=posTarget.z}, {x=posTarget.x, y=(posTarget.y)+1, z=posTarget.z}, {x=(posTarget.x)-1, y=posTarget.y, z=posTarget.z}, {x=posTarget.x, y=(posTarget.y)-1, z=posTarget.z} } for i=1, 4, 1 do if isCreature(cid) and isCreature(target) then addEvent(doSendDistanceShoot, 625*i, {x=posEffect[i].x, y=posEffect[i].y, z=posEffect[i].z}, {x=posEffect[i+1].x, y=posEffe
  8. function doSendFlamingSphere(cid, target) local effectType = 3 -- effect local posTarget = getCreaturePosition(cid) local posEffect = { {x=posTarget.x, y=(posTarget.y)-1, z=posTarget.z}, {x=(posTarget.x)+1, y=posTarget.y, z=posTarget.z}, {x=posTarget.x, y=(posTarget.y)+1, z=posTarget.z}, {x=(posTarget.x)-1, y=posTarget.y, z=posTarget.z}, {x=posTarget.x, y=(posTarget.y)-1, z=posTarget.z} } for i=1, 4, 1 do if isCreature(cid) and isCreature(target) then addEvent(doSendDistanceShoot, 625*i, {x=posEffect[i].x, y=posEffect[i].y, z=posEffect[i].z}, {x=posEffect[i+1].x, y=posEffe
  9. 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(player, words, param) if param == '' then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local t = param:split(",") if t[1] == "add" then if not t[2] or not t[3] or not t[4] then
  10. Quando você for usar uma função dentro de uma spell coloca local antes fuction ficando assim: local function x(y,z) Assim a função só ira funciona nesse seu arquivo
  11. local skulls = {SKULL_WHITE, SKULL_YELLOW, SKULL_RED, SKULL_BLACK} function addPlayerFrag(cid) db.query("UPDATE `players` SET `frags_all` = `frags_all` + 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";") return true end function onKill(cid, target) if isPlayer(cid) and isPlayer(target) then for i= 1, #skulls do if getPlayerSkullType(cid) == skulls[i] then addPlayerFrag(cid) break end end end return true end function onLogin(cid) registerCreatureEvent(cid, "TopFrags") return true end
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo