Ir para conteúdo
Entre para seguir isso  
lucasxdlol2

Box 4 100% Igual PO

Recommended Posts

lucasxdlol2    0
lucasxdlol2

Créditos: Dedeu400

 

Primeiro va em data/actions/scripts e crie um novo script chamado box 4.lua

 

Coloque Isso dentro do box 4.lua

function onUse(cid, item, frompos, item2, topos)

local box = {
[1] ={msg = "Vc Abriu Sua BOX 4",np = 'venusaur Pokeball'},
[2] ={msg = "Vc Abriu Sua BOX 4",np = 'charizard Pokeball'},
[3] ={msg = "Vc Abriu Sua BOX 4",np = 'blastoise Pokeball'},
[4] ={msg = "Vc Abriu Sua BOX 4",np = 'pidgeot Pokeball'},
[5] ={msg = "Vc Abriu Sua BOX 4",np = 'nidoqueen Pokeball'},
[6] ={msg = "Vc Abriu Sua BOX 4",np = 'nidoking Pokeball'},
[7] ={msg = "Vc Abriu Sua BOX 4",np = 'ninetales Pokeball'},
[8] ={msg = "Vc Abriu Sua BOX 4",np = 'arcanine Pokeball'},
[9] ={msg = "Vc Abriu Sua BOX 4",np = 'poliwrath Pokeball'},
[10] ={msg = "Vc Abriu Sua BOX 4",np = 'alakazam Pokeball'},
[11] ={msg = "Vc Abriu Sua BOX 4",np = 'machamp Pokeball'},
[12] ={msg = "Vc Abriu Sua BOX 4",np = 'tentacruel Pokeball'},
[13] ={msg = "Vc Abriu Sua BOX 4",np = 'golem Pokeball'},
[14] ={msg = "Vc Abriu Sua BOX 4",np = 'dewgong Pokeball'},
[15] ={msg = "Vc Abriu Sua BOX 4",np = 'gengar Pokeball'},
[16] ={msg = "Vc Abriu Sua BOX 4",np = 'rhydon Pokeball'},
[17] ={msg = "Vc Abriu Sua BOX 4",np = 'scyther Pokeball'},
[18] ={msg = "Vc Abriu Sua BOX 4",np = 'jynx Pokeball'},
[19] ={msg = "Vc Abriu Sua BOX 4",np = 'electabuzz Pokeball'},
[20] ={msg = "Vc Abriu Sua BOX 4",np = 'magmar Pokeball'},
[21] ={msg = "Vc Abriu Sua BOX 4",np = 'gyarados Pokeball'},
[22] ={msg = "Vc Abriu Sua BOX 4",np = 'lapras Pokeball'},
[23] ={msg = "Vc Abriu Sua BOX 4",np = 'omastar Pokeball'},
[24] ={msg = "Vc Abriu Sua BOX 4",np = 'kabutops Pokeball'},
[25] ={msg = "Vc Abriu Sua BOX 4",np = 'aerodactyl Pokeball'},
[26] ={msg = "Vc Abriu Sua BOX 4",np = 'snorlax Pokeball'},
[27] ={msg = "Vc Abriu Sua BOX 4",np = 'dragonair Pokeball'},
[28] ={msg = "Vc Abriu Sua BOX 4",np = 'dragonite Pokeball'}
}
local level = 60 -- level para usar
local e = box[math.random(1,28)]
local boxid = 2531 -- id da box que vai ser dada ao jogador

if getPlayerLevel(cid) >= level then
doPlayerSendTextMessage(cid,22,e.msg)
b = doPlayerAddItem(cid, boxid, 1)
doItemSetAttribute(b, "name", e.np)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid, "You must be at least level "..level.." to use this box.")
end
return TRUE
end

 

agora feche e salve....

va em data/actions/actions.xml

e adicione esta TAG:

<action itemid="7891" event="script" value="box 4.lua"/>

 

Estou Trazendo Esse Escript de Outro Forum :)

Editado por Lwkass

Compartilhar este post


Link para o post
Lwkass    1
Lwkass

Essa vai ser a ultima vez que eu coloco padrão de postagem nos seus tópicos,

 

Aprovado

Editado por Lwkass

Compartilhar este post


Link para o post
valentim16    0
valentim16

Cara uma PERGUNTA Quando VOC Abre o Actions.XML , Tipo tem Varios negocio..

 

Exemplo , Tem q PARTES de STONES , e Outras Ond eu Tenho q Coloca a TAG !?

 

Vlws !

Compartilhar este post


Link para o post
zaksz    144
zaksz

Uhum... esse script não e do Aksz??

Compartilhar este post


Link para o post
Killua    11
Killua
Cara uma PERGUNTA Quando VOC Abre o Actions.XML , Tipo tem Varios negocio..

 

Exemplo , Tem q PARTES de STONES , e Outras Ond eu Tenho q Coloca a TAG !?

 

Vlws !

 

lol, em qualquer lugar. O lugar não mudada nada desde que fique antes do </actions>

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×