Tudo que maury123 postou
-
(Resolvido)Parede que se move
muito obrigado mano voçê tem skype pois nao entendi muito bem e deu erro aq na script deu erro
-
(Resolvido)Parede que se move
tranquilo mano to aq naa espera vlw mesmo
-
Double de xp premium account
preciso de uma script que libere double xp para premium account, poketibia a base é pokecyan
-
(Resolvido)Parede que se move
ta certo eu nao sabia
-
(Resolvido)Parede que se move
então eu quero que ela se mova para o lado, ela se abre ao meio metade vai para um lado e a outra metade vai para o outro, pra mim fazer com a porta da cp como a pxg
-
(Resolvido)Parede que se move
Boa noite gente, estou precisando de uma script que, a parede de mova quando um player pisa em determinado sqm, sera que alguem me ajuda? fico muito agradecido :D
- AJUDA COM O XAMPP
- AJUDA COM O XAMPP
-
AJUDA COM O XAMPP
Não sei se estou na area correta se não tiver movam, voltando ao que importa eu estou com um probliminha com o xampp a versão mais nova, quando eu crio a database do meu serv mysql eu não posso editar as account não tem a parradinha de editar nome, account, id nada, só nessa versão mais nova que vem assim se alguem puder me ajudar agradeço.
- Como criar house donates
- Como criar house donates
- Como criar house donates
-
Problema COm script "Reborn" DBKO 8.0
Bom dia Gente, Então vomos lá, minha script de reborn tá funcionando normal, mais ela tá com um bug, porq eu coloquei MAX level reborn level 1000 com isso os players teriam que no maximo coloca level 1000 se colocar mais não consegue dar reborn, mas como player é foda acharam um modo de dar reborn com level acima de 1000, ELE COLOCAM LEVEL 1000 FALA "HI" "REBORN" NA HORA DE FALAR "YES" ELES NÃO FALAM E USAM O COMANDO DE DESBUGAR XP PRA GANHAR LEVEL DAII COLOCAM LEVEL 2000 E FALA YES, queria resolver esse problema, espero que entendam, esperando resposta. SCRIPT local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('?????.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello. If you ready I can "Reborn" you.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! Hey!.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then selfSay('Sorry, but you are after reborn.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 250 and getPlayerStorageValue(cid,30023) ~= 4 then selfSay('Hehe, I say If you READY. You do not have 250 lvl.') elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) > 1000 and getPlayerStorageValue(cid,30023) ~= 4 then selfSay('Hehe, I say If you READY. You have 1000 lvl+, you cant reborn.') elseif msgcontains(msg, 'swamper city') then if pay(cid,100) then travel(cid, 266, 106, 12) selfSay('Let\'s go!') focus = 0 talk_start = 0 else selfSay('Sorry, you don\'t have enough money.') end elseif msgcontains(msg, 'reborn') then selfSay('Are you sure?') talk_state = 2 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 20 then doReborn(cid,201,137) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 25 or getPlayerVocation(cid) == 26 or getPlayerVocation(cid) == 37) then doReborn(cid,214,152) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 103 and getPlayerVocation(cid) <= 104 then doReborn(cid,286,60) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 58 then doReborn(cid,247,34) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 71 then doReborn(cid,258,15) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 75 then doReborn(cid,263,15) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 274 then doReborn(cid,275,118) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 77) then doReborn(cid,227,144) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 388 or getPlayerVocation(cid) == 390) then doReborn(cid,391,422) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 80 and getPlayerVocation(cid) <= 86 then selfSay('You cannot reborn in fusion.') elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 79) then doReborn(cid,232,150) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 280 then doReborn(cid,281,190) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 112 then doReborn(cid,298,221) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 50 then doReborn(cid,253,101) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then doReborn(cid,208,148) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 44 then doReborn(cid,237,173) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then doReborn(cid,208,148) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 292 then doReborn(cid,293,281) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 34 or getPlayerVocation(cid) == 35 or getPlayerVocation(cid) == 36) then doReborn(cid,221,162) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 96 then doReborn(cid,242,178) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then doReborn(cid,268,184) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 307 then doReborn(cid,308,102) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 318 then doReborn(cid,319,326) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 327 then doReborn(cid,328,328) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 337 then doReborn(cid,338,334) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 347 then doReborn(cid,348,327) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 357 then doReborn(cid,358,357) setPlayerStorageValue(cid,30023,4) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! You must revert or transform.') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye.') focus = 0 talk_start = 0 end end end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 45 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end
- Tem como um lvl 500 matar um lvl 50 dbko 8.0
- Tem como um lvl 500 matar um lvl 50 dbko 8.0
-
CLient buga quando reinicio o pc
Não sei oque tá acontecendo pois toda vez que reinicio o pc o client para de funcionar e eu to usando ip fixo do no-ip, mas não sei oque tá acontecendo, e na casa dos players tbm fica assim não entra de jeito nenhum, mas quando eu uso ip charger com o msm ip fixo que tinha parado de funcionar, ele funciona normal é como se quando reinicia o pc o client apaga o ip fixo. Estou desesperado com isso me ajudem por favor.
-
Tem como um lvl 500 matar um lvl 50 dbko 8.0
Bom dia Gostaria de saber se tem como um level 500 poder matar um level 50 no dbko 8.0 by jacolos? E tenho outra duvida tambem, gostaria de saber se tem alguma forma de evitar clones, pois quando o sv sai se alguem der tarde e aceitar quando o sv volta o cara clona item, se alguem puder me ajudar agradeceria muito.
- COMO COLOCAR MAPA 8.0 no serv 8.54?
- (Resolvido)"ROLETA" NÃO CONSIGO COLOCAR PRA FUNCIONAR 2 ACTION COM A MESMA SCRIPT
- (Resolvido)"ROLETA" NÃO CONSIGO COLOCAR PRA FUNCIONAR 2 ACTION COM A MESMA SCRIPT
- (Resolvido)"ROLETA" NÃO CONSIGO COLOCAR PRA FUNCIONAR 2 ACTION COM A MESMA SCRIPT
-
Erro Na Script Roleta, Socorro
Eu to usando uma script "roleta" eu não consigo colocar pra ela funcionar com mais de uma actionid, e eu tenho 3 roletas, fiz 3 copias da script com 3 actions diferente só que quando eu clico nos 3 icones, fica como se fosse a msm script sendo que são 3 script com actions diferente, com itens diferente pra sortear. Vou deixar a script aquii. Sorteador1 PR = {13980, 13945, 13952, 13973, 13966, 13959, 13987, 13994} --- Coloque o id que sera sorteado money = {2145, 'small diamond'} -- ID do diamond count = 3 -- Quantidade dos diamonds cast = "[sORTEADOR DE ITEM]" function onUse(cid, item, fromPosition, itemEx, toPosition) local roleta = math.random(1, #PR) local CB = { doSendAnimatedText, doSendMagicEffect, doPlayerAddItem, doPlayerRemoveItem } if not CB[4](cid, money[1], count) then doPlayerSendCancel(cid, "Você precisa de "..count.." "..money[2].." pra usar o sorteador de items.") CB[2](getThingPos(cid), CONST_ME_POFF) else CB[2](getThingPos(cid), 14) if(roleta == 1) then CB[3](cid, PR[1], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[1])..".", 22) elseif(roleta == 2) then CB[3](cid, PR[2], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[2])..".", 22) elseif(roleta == 3) then CB[3](cid, PR[3], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[3])..".", 22) elseif(roleta == 4) then CB[3](cid, PR[4], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[4])..".", 22) elseif(roleta == 5) then CB[3](cid, PR[5], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[5])..".", 22) elseif(roleta == 6) then CB[3](cid, PR[6], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[6])..".", 22) elseif(roleta == 7) then CB[3](cid, PR[7], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[7])..".", 22) elseif(roleta == 8) then CB[3](cid, PR[8], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[8])..".", 22) end end return TRUE end ------------------------------------------------------------------------------------------------ Sorteador 2 PR = {13946, 13953, 13974, 13967, 13960, 13988, 13981, 13995} --- Coloque o id que sera sorteado money = {2145, 'small diamond'} -- ID do diamond count = 5 -- Quantidade dos diamonds cast = "[sORTEADOR DE ITEM2]" function onUse(cid, item, fromPosition, itemEx, toPosition) local roleta = math.random(1, #PR) local CB = { doSendAnimatedText, doSendMagicEffect, doPlayerAddItem, doPlayerRemoveItem } if not CB[4](cid, money[1], count) then doPlayerSendCancel(cid, "Você precisa de "..count.." "..money[2].." pra usar o sorteador de items.") CB[2](getThingPos(cid), CONST_ME_POFF) else CB[2](getThingPos(cid), 14) if(roleta == 1) then CB[3](cid, PR[1], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[1])..".", 22) elseif(roleta == 2) then CB[3](cid, PR[2], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[2])..".", 22) elseif(roleta == 3) then CB[3](cid, PR[3], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[3])..".", 22) elseif(roleta == 4) then CB[3](cid, PR[4], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[4])..".", 22) elseif(roleta == 5) then CB[3](cid, PR[5], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[5])..".", 22) elseif(roleta == 6) then CB[3](cid, PR[6], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[6])..".", 22) elseif(roleta == 7) then CB[3](cid, PR[7], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[7])..".", 22) elseif(roleta == 8) then CB[3](cid, PR[8], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[8])..".", 22) end end return TRUE end ---------------------------------------------------------------------------------------------------- Sorteador 3 PR = {13982, 13947, 13954, 13975, 13968, 13961, 13989, 13996} --- Coloque o id que sera sorteado money = {2145, 'small diamond'} -- ID do diamond count = 7 -- Quantidade dos diamonds cast = "[sORTEADOR DE ITEM3]" function onUse(cid, item, fromPosition, itemEx, toPosition) local roleta = math.random(1, #PR) local CB = { doSendAnimatedText, doSendMagicEffect, doPlayerAddItem, doPlayerRemoveItem } if not CB[4](cid, money[1], count) then doPlayerSendCancel(cid, "Você precisa de "..count.." "..money[2].." pra usar o sorteador de items.") CB[2](getThingPos(cid), CONST_ME_POFF) else CB[2](getThingPos(cid), 14) if(roleta == 1) then CB[3](cid, PR[1], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[1])..".", 22) elseif(roleta == 2) then CB[3](cid, PR[2], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[2])..".", 22) elseif(roleta == 3) then CB[3](cid, PR[3], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[3])..".", 22) elseif(roleta == 4) then CB[3](cid, PR[4], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[4])..".", 22) elseif(roleta == 5) then CB[3](cid, PR[5], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[5])..".", 22) elseif(roleta == 6) then CB[3](cid, PR[6], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[6])..".", 22) elseif(roleta == 7) then CB[3](cid, PR[7], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[7])..".", 22) elseif(roleta == 8) then CB[3](cid, PR[8], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[8])..".", 22) end end return TRUE end Obrigado, esperando
- (Resolvido)"ROLETA" NÃO CONSIGO COLOCAR PRA FUNCIONAR 2 ACTION COM A MESMA SCRIPT
-
Erro Na Script Roleta, Socorro
Vlw, foi o Espaço entre os nomes msm Voltando aqui, eu estou com outro problema, eu fiz 3 copias dessa script com actions diferente, e com id de itens diferente tbm, pq eu preciso de 3 roletas diferente, só que msm com ids de itens diferentes, tá dando os msm item da primeira script, não sei porq
-
(Resolvido)"ROLETA" NÃO CONSIGO COLOCAR PRA FUNCIONAR 2 ACTION COM A MESMA SCRIPT
Boa Noite! Eu to usando uma script "roleta" eu não consigo colocar pra ela funcionar com mais de uma actionid, e eu tenho 3 roletas, fiz 3 copias da script com 3 actions diferente só que quando eu clico nos 3 icones, fica como se fosse a msm script sendo que são 3 script com actions diferente, com itens diferente pra sortear. Vou deixar a script aquii. Sorteador1 PR = {13980, 13945, 13952, 13973, 13966, 13959, 13987, 13994} --- Coloque o id que sera sorteado money = {2145, 'small diamond'} -- ID do diamond count = 3 -- Quantidade dos diamonds cast = "[sORTEADOR DE ITEM]" function onUse(cid, item, fromPosition, itemEx, toPosition) local roleta = math.random(1, #PR) local CB = { doSendAnimatedText, doSendMagicEffect, doPlayerAddItem, doPlayerRemoveItem } if not CB[4](cid, money[1], count) then doPlayerSendCancel(cid, "Você precisa de "..count.." "..money[2].." pra usar o sorteador de items.") CB[2](getThingPos(cid), CONST_ME_POFF) else CB[2](getThingPos(cid), 14) if(roleta == 1) then CB[3](cid, PR[1], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[1])..".", 22) elseif(roleta == 2) then CB[3](cid, PR[2], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[2])..".", 22) elseif(roleta == 3) then CB[3](cid, PR[3], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[3])..".", 22) elseif(roleta == 4) then CB[3](cid, PR[4], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[4])..".", 22) elseif(roleta == 5) then CB[3](cid, PR[5], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[5])..".", 22) elseif(roleta == 6) then CB[3](cid, PR[6], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[6])..".", 22) elseif(roleta == 7) then CB[3](cid, PR[7], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[7])..".", 22) elseif(roleta == 8) then CB[3](cid, PR[8], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[8])..".", 22) end end return TRUE end ------------------------------------------------------------------------------------------------ Sorteador 2 PR = {13946, 13953, 13974, 13967, 13960, 13988, 13981, 13995} --- Coloque o id que sera sorteado money = {2145, 'small diamond'} -- ID do diamond count = 5 -- Quantidade dos diamonds cast = "[sORTEADOR DE ITEM2]" function onUse(cid, item, fromPosition, itemEx, toPosition) local roleta = math.random(1, #PR) local CB = { doSendAnimatedText, doSendMagicEffect, doPlayerAddItem, doPlayerRemoveItem } if not CB[4](cid, money[1], count) then doPlayerSendCancel(cid, "Você precisa de "..count.." "..money[2].." pra usar o sorteador de items.") CB[2](getThingPos(cid), CONST_ME_POFF) else CB[2](getThingPos(cid), 14) if(roleta == 1) then CB[3](cid, PR[1], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[1])..".", 22) elseif(roleta == 2) then CB[3](cid, PR[2], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[2])..".", 22) elseif(roleta == 3) then CB[3](cid, PR[3], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[3])..".", 22) elseif(roleta == 4) then CB[3](cid, PR[4], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[4])..".", 22) elseif(roleta == 5) then CB[3](cid, PR[5], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[5])..".", 22) elseif(roleta == 6) then CB[3](cid, PR[6], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[6])..".", 22) elseif(roleta == 7) then CB[3](cid, PR[7], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[7])..".", 22) elseif(roleta == 8) then CB[3](cid, PR[8], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[8])..".", 22) end end return TRUE end ---------------------------------------------------------------------------------------------------- Sorteador 3 PR = {13982, 13947, 13954, 13975, 13968, 13961, 13989, 13996} --- Coloque o id que sera sorteado money = {2145, 'small diamond'} -- ID do diamond count = 7 -- Quantidade dos diamonds cast = "[sORTEADOR DE ITEM3]" function onUse(cid, item, fromPosition, itemEx, toPosition) local roleta = math.random(1, #PR) local CB = { doSendAnimatedText, doSendMagicEffect, doPlayerAddItem, doPlayerRemoveItem } if not CB[4](cid, money[1], count) then doPlayerSendCancel(cid, "Você precisa de "..count.." "..money[2].." pra usar o sorteador de items.") CB[2](getThingPos(cid), CONST_ME_POFF) else CB[2](getThingPos(cid), 14) if(roleta == 1) then CB[3](cid, PR[1], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[1])..".", 22) elseif(roleta == 2) then CB[3](cid, PR[2], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[2])..".", 22) elseif(roleta == 3) then CB[3](cid, PR[3], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[3])..".", 22) elseif(roleta == 4) then CB[3](cid, PR[4], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[4])..".", 22) elseif(roleta == 5) then CB[3](cid, PR[5], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[5])..".", 22) elseif(roleta == 6) then CB[3](cid, PR[6], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[6])..".", 22) elseif(roleta == 7) then CB[3](cid, PR[7], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[7])..".", 22) elseif(roleta == 8) then CB[3](cid, PR[8], 1) doBroadcastMessage(""..cast.." "..getCreatureName(cid).." usou o sorteador de items e ganhou 1 "..getItemNameById(PR[8])..".", 22) end end return TRUE end Obrigado, esperando