Ir para conteúdo

Featured Replies

Postado
  • Solução
local maxChance2 = 400 - fishSkill
local maxChance = 200 - fishSkill

a maxchance é 200 - o skill. Se o skill for 200 então dá 0 e vai bugar o math.random.

Coloca uns numeros maiores tipo 300 e 500 que deve resolver.. mas qnd uparem 300 de fishing vai precisar aumentar dnv
  • Respostas 8
  • Visualizações 2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Teste ae amigo, acredito que funcione...  

  • local maxChance2 = 400 - fishSkill local maxChance = 200 - fishSkill a maxchance é 200 - o skill. Se o skill for 200 então dá 0 e vai bugar o math.random. Coloca uns numeros maiores tipo 300 e 500

  • Use de base esse sistema... Só configure a seu gosto...  

Posted Images

Postado
  • Autor

Amigo obrigado , meu fishing script está 100% agora (ainda tenho que pensar oq fazer quando o player chegar skills 300, mas esta ok) e gostaria de uma ajuda em relação ao meu sistema de shopping por event tokens.

Postado

Use de base esse sistema... Só configure a seu gosto...

 

Mostrar conteúdo oculto

local chests = {


[6001] = {cost = 8000, item = 7900, amount = 1}, -- magma monocle
[6002] = {cost = 8000, item = 2496, amount = 1}, -- horned helmet
[6003] = {cost = 8000, item = 2474, amount = 1}, -- winged helmet
[6004] = {cost = 8001, item = 7899, amount = 1}, -- magma coat
[6005] = {cost = 8001, item = 8883, amount = 1}, -- windborn colossus armor
[6006] = {cost = 8001, item = 8877, amount = 1}, -- lavos armor
[6007] = {cost = 8002, item = 7894, amount = 1}, -- magma legs
[6008] = {cost = 8002, item = 2477, amount = 1}, -- knight legs
[6009] = {cost = 8002, item = 8923, amount = 1}, -- ranger legs
[6010] = {cost = 8003, item = 2218, amount = 1}, -- paw amulet
[6011] = {cost = 8004, item = 2527, amount = 1}, -- rose shield
[6012] = {cost = 8005, item = 6574, amount = 1}, -- bar of chocolate
[6013] = {cost = 8006, item = 5907, amount = 1}, -- slingshot
[6014] = {cost = 8007, item = 2179, amount = 1}, -- gold ring
[6015] = {cost = 8007, item = 2123, amount = 1}, -- ring of the sky
[6016] = {cost = 8007, item = 2121, amount = 1}, -- wedding ring
[6017] = {cost = 8008, item = 7958, amount = 1}, -- vip rod
[6018] = {cost = 8008, item = 7414, amount = 1}, -- vip wand
[6019] = {cost = 8008, item = 8932, amount = 1}, -- vip sword
[6020] = {cost = 8008, item = 8293, amount = 1}, -- vip axe
[6021] = {cost = 8008, item = 8929, amount = 1}, -- vip club
[6022] = {cost = 8008, item = 8857, amount = 1}, -- vip bow
[6023] = {cost = 8009, item = 8930, amount = 1}, -- emerald sword
[6024] = {cost = 8009, item = 8918, amount = 1}, -- spellbook of dark mysteries
[6025] = {cost = 8009, item = 8888, amount = 1}, -- master archer's armor
[6026] = {cost = 8009, item = 8890, amount = 1}, -- robe of the underworld
[6027] = {cost = 8009, item = 8881, amount = 1}, -- fireborn giant armor
[6028] = {cost = 8009, item = 8928, amount = 1}, -- obsidian truncheon
[6029] = {cost = 8009, item = 8851, amount = 1}, -- royal crossbow
[6030] = {cost = 8009, item = 8856, amount = 1}, -- yol's bow
[6031] = {cost = 8009, item = 8924, amount = 1}, -- hellforged axe
[6032] = {cost = 8010, item = 10310, amount = 1}, -- claw of the noxious spawn
[6033] = {cost = 8011, item = 9931, amount = 1}, -- coconut shoes
[6034] = {cost = 8012, item = 7957, amount = 1}, -- jester hat
[6035] = {cost = 8013, item = 8892, amount = 1}, -- ethno coat
[6036] = {cost = 8014, item = 2471, amount = 1}, -- golden helmet
[6037] = {cost = 8015, item = 2523, amount = 1}, -- blessed shield
[6038] = {cost = 8016, item = 7424, amount = 1}, -- barao staff
[6039] = {cost = 8016, item = 8854, amount = 1}, -- barao bow
[6040] = {cost = 8016, item = 7417, amount = 1}, -- barao sword
[6041] = {cost = 8016, item = 7450, amount = 1}, -- barao club
[6042] = {cost = 8016, item = 8926, amount = 1}, -- barao axe
[6043] = {cost = 8017, item = 3972, amount = 1}, -- vip helmet
[6044] = {cost = 8017, item = 3983, amount = 1}, -- bast skirt
[6045] = {cost = 8017, item = 8903, amount = 1}, -- spellbook of lost souls
[6046] = {cost = 8018, item = 2517, amount = 1}, -- shield of honour
[6047] = {cost = 8019, item = 2407, amount = 1}, -- bright sword
[6048] = {cost = 8020, item = 2466, amount = 1}, -- golden armor
[6049] = {cost = 8021, item = 2392, amount = 1}, -- fire sword
[6050] = {cost = 8022, item = 2430, amount = 1}, -- knight axe
[6051] = {cost = 8023, item = 2432, amount = 1}, -- fire axe
[6052] = {cost = 8024, item = 2472, amount = 1}, -- magic plate armor
[6053] = {cost = 8025, item = 2466, amount = 1}, -- golden armor
[6054] = {cost = 8026, item = 2427, amount = 1}, -- guardian halberd
[6055] = {cost = 8027, item = 4852, amount = 1}, -- vip stone
[6056] = {cost = 8028, item = 7890, amount = 1}, -- red skull amulet
[6057] = {cost = 8029, item = 2393, amount = 1}, -- giant sword
[6059] = {cost = 8030, item = 2400, amount = 1}, -- sword of valor
[6060] = {cost = 8030, item = 2431, amount = 1}, -- stonecutter axe
[6061] = {cost = 8030, item = 2421, amount = 1}, -- thunder hammer
[6062] = {cost = 8030, item = 2494, amount = 1}, -- demon armor
[6063] = {cost = 8031, item = 2453, amount = 1}, -- arcane staff
[6064] = {cost = 8031, item = 6528, amount = 1}, -- the avenger
[6065] = {cost = 8031, item = 5803, amount = 1}, -- arbalest
[6066] = {cost = 8032, item = 2365, amount = 1}, -- backpack of holding
[6067] = {cost = 8033, item = 6529, amount = 100}, -- infernal bolts
[6068] = {cost = 8034, item = 6132, amount = 1}, -- soft boots
[6069] = {cost = 8035, item = 5791, amount = 1}, -- stuffed dragon
[6070] = {cost = 8036, item = 2361, amount = 1}, -- frozen starlight
[6071] = {cost = 8037, item = 6132, amount = 1}, -- soft boots
[6072] = {cost = 8038, item = 2493, amount = 1}, -- demon helmet
[6073] = {cost = 8039, item = 2520, amount = 1}, -- demon shield
[6074] = {cost = 8040, item = 2645, amount = 1}, -- steel boots
[6075] = {cost = 8041, item = 2495, amount = 1}, -- demon legs
[6076] = {cost = 8041, item = 8905, amount = 1}, -- rainbow shield
[6077] = {cost = 8041, item = 8918, amount = 1}, -- spellbook of dark mysteries
[6078] = {cost = 8041, item = 8851, amount = 1}, -- royal crossbow
[6079] = {cost = 8042, item = 9933, amount = 1}, -- firewalker boots
[6080] = {cost = 8043, item = 2469, amount = 1}, -- dragon scale legs
[6081] = {cost = 8044, item = 8905, amount = 1}, -- rainbow shield
[6082] = {cost = 8045, item = 2476, amount = 1}, -- knight armor
[6083] = {cost = 8046, item = 2414, amount = 1}, -- dragon lance
[6084] = {cost = 8046, item = 2391, amount = 1}, -- war hammer
[6085] = {cost = 8046, item = 2393, amount = 1}, -- giant sword
[6086] = {cost = 8047, item = 2656, amount = 1}, -- blue robe
[6087] = {cost = 8048, item = 2187, amount = 1}, -- wand of inferno
}
function onUse(cid,item,fromPosition,itemEx,toPosition)
local v = chests[item.uid]
if getPlayerFreeCap(cid) < (getItemWeightById(v.item)*v.amount) then
return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You need " .. (getItemWeightById(v.item)*v.amount) .. " capacity in order to get the item")
end
if getPlayerItemCount(cid, 9020) >= v.cost then
Added = doPlayerAddItem(cid,v.item,v.amount)
doChangeTypeItem(Added, v.amount)
doPlayerRemoveItem(cid,9020,v.cost)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You bought '..getItemArticleById(v.item)..' '..getItemNameById(v.item)..' for '..v.cost..' tokens.')
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry you do not have enough tokens.")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need "..v.cost.." tokens for "..getItemArticleById(v.item).." "..getItemNameById(v.item)..".")
end
return TRUE
end

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo