Ir para conteúdo

raicont

Membro
  • Registro em

  • Última visita

Tudo que raicont postou

  1. Olá, eu abro este tópico para ver se eles poderiam me ajudar ou me guiar para criar um novo cliente tipo pxg (com pokeBar, bordas laterais transparentes, etc.) Já que o cliente que tenho não lhe serve a janela hotkey, nem o retrato do pokemon. Obrigado!
  2. .Hello people! I have a problem with this script, the console throws me this message, and I have no idea how to solve it. Since when throwing a ball in the game it says that this object cannot be used... Script: local ballcatch = { --id normal, id da ball shiy [2394] = {cr = 5, on = 193, off = 192, ball = {11826, 11737}, send = 47, typeee = "normal", boost = "0"}, --alterado v1.9 \/ [2391] = {cr = 5, on = 198, off = 197, ball = {11832, 11740}, send = 48, typeee = "great", boost = "0"}, [2393] = {cr = 10, on = 202, off = 201, ball = {11835, 11743}, send = 46, typeee = "moon", boost = "0"}, [2392] = {cr = 20, on = 200, off = 199, ball = {11829, 11746}, send = 49, typeee = "ultra", boost = "0"}, [12617] = {cr = 30, on = 204, off = 203, ball = {10975, 12621}, send = 35, typeee = "saffari", boost = "0"}, [12832] = {cr = 1000000, on = 23, off = 24, ball = {12826, 12829}, send = 181, typeee = "dark", boost = "10"}, } function onUse(cid, item, frompos, item3, topos) local item2 = getTopCorpse(topos) if item2 == null then return true end if getItemAttribute(item2.uid, "catching") == 1 then return true end if getItemAttribute(item2.uid, "golden") and getItemAttribute(item2.uid, "golden") == 1 then return doPlayerSendCancel(cid, "You can't try to catch a pokemon in the Golden Arena!") end local name = string.lower(getItemNameById(item2.itemid)) name = string.gsub(name, "fainted ", "") name = string.gsub(name, "defeated ", "") name = doCorrectPokemonName(name) local x = pokecatches[name] if not x then return true end local shinys = {"Infernape", "Latios", "Latias","Rayquaza","Articuno","Darkai","Zapdos","Giratina","Dialga","Palkia","Lugia","Jirachi","Zorua","Regice","Registeel","Regirock","Entei","Suicune", "Raikou","Reshiram","Zekrom","Groudon","Celebi","Kyogre","Shiny Electivire", "Ditto", "Zoroark", "Moltres", "Mega Steelix", "Mega Blaziken", "Mega Lucario", "Mega Wobbuffet", "Slaking", "Gardevoir", "Shiny Magmortar"} if item.itemid == 12832 and isInArray(shinys, name) then doPlayerSendCancel(cid, "No Esta Permitido Capturar ningun legendario con esta ball. DISCULPE!") return true end local storage = newpokedex[name].stoCatch if getPlayerStorageValue(cid, storage) == -1 or not string.find(getPlayerStorageValue(cid, storage), ";") then --alterado v1.9 setPlayerStorageValue(cid, storage, "normal = 0, great = 0, moon = 0, ultra = 0, saffari = 0, dark = 0;") --alterado v1.9 end local owner = getItemAttribute(item2.uid, "corpseowner") if owner and isCreature(owner) and isPlayer(owner) and cid ~= owner then doPlayerSendCancel(cid, "Tu No Puedes Capturar Este Pokemon Disculpa.") return true end local newidd = isShinyName(name) and ballcatch[item.itemid].ball[2] or ballcatch[item.itemid].ball[1] --alterado v1.9 local typeee = ballcatch[item.itemid].typeee local boost = ballcatch[item.itemid].boost local catchinfo = {} catchinfo.rate = ballcatch[item.itemid].cr catchinfo.catch = ballcatch[item.itemid].on catchinfo.fail = ballcatch[item.itemid].off catchinfo.newid = newidd catchinfo.name = doCorrectPokemonName(name) catchinfo.topos = topos catchinfo.chance = x.chance doSendDistanceShoot(getThingPos(cid), topos, ballcatch[item.itemid].send) doRemoveItem(item.uid, 1) local d = getDistanceBetween(getThingPos(cid), topos) if getPlayerStorageValue(cid, 98796) >= 1 and getPlayerItemCount(cid, 12617) <= 0 then --alterado v1.9 setPlayerStorageValue(cid, 98796, -1) setPlayerStorageValue(cid, 98797, -1) doTeleportThing(cid, SafariOut, false) doSendMagicEffect(getThingPos(cid), 21) doPlayerSendTextMessage(cid, 27, "A Usted Se Le Acabo Sus Saffari Balls, Suerte A la Proxima") end addEvent(doSendPokeBall, d * 70 + 100 - (d * 14) , cid, catchinfo, false, false, typeee) addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3) return true end Thank's! >,<'
  3. Thank you very much. It served me perfectly. Just tweak the messages a bit and i separated them. What do you think? ... Thank you! function onUse(cid, item, fromPosition, itemEx, toPosition) local daysvalue = 1 * 24 * 60 * 60 local daily = getPlayerStorageValue(cid, 13541) local rewards = { { item = 12832, count = 1 }, { item = 2160, count = 100 }, { item = 12227, count = 1 }, { item = 12331, count = 1 }, { item = 12618, count = 5 }, { item = 12242, count = 1 }, { item = 2145, count = 1 } } if (daily == -1) then daily = 0 end if getPlayerStorageValue(cid, 13540) - os.time() <= 0 and getPlayerLevel(cid) >= 300 then local random = math.random(1, #rewards) doPlayerAddItem(cid, rewards[random].item, rewards[random].count) time = os.time() + daysvalue setPlayerStorageValue(cid, 13540, time) setPlayerStorageValue(cid, 13541, daily+1) local daily = getPlayerStorageValue(cid, 13541) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You done your " .. daily .. " Daily Chest.") elseif getPlayerLevel(cid) < 300 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must be at least level 300.") elseif getPlayerLevel(cid) < 300 or not isPremium(cid) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to have premium account to do this chest.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must wait 24 Hours to get your daily chest. Next avaiable will be at: " .. os.date("%H:%M:%S", getPlayerStorageValue(cid, 13540)) .. ".") end return true end
  4. This is the Item: <item id="12230" article="a" name="Tibia Coins(3 days premium)"> <attribute key="description" value="Item donation 3 days premium" /> </item> And this is the script: local days_gain = 3 function onUse (cid,item,frompos,item2,topos) if not doRemoveItem(item.uid) then return true end doPlayerAddPremiumDays(cid, days_gain) doSendMagicEffect(getCreaturePosition(cid), 14) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are 3 days premium!") return true end
  5. Thanks a lot. I'm sorry, I don't know much about the vip(premium) section, where is this? In the end, I'm interested in both.
  6. . Hello people! I need help with this script, I want to add that only vip players can take the content, or that it needs to be at least level 300+(Without removing the 24-hrs period to take the content again)... Thank you!

Informação Importante

Confirmação de Termo