Ir para conteúdo
  • Cadastre-se

Erro Addon System Ajuda e ajuda o tibia king todo


Posts Recomendados

A Script e essa galera 

 

 

 

function onUse(cid, item, fromPosition, itemEx, toPosition)
local addons = {
-- Shiny Alakazam
[13089] = {pokemon= "Shiny Alakazam", looktype = 2013, nome = "Adventurer addon", fly =  0, ride = 0, surf = 0},
[13091] = {pokemon= "Shiny Alakazam", looktype = 2014, nome = "Grey hat addon", fly =  0, ride = 0, surf = 0},
[13092] = {pokemon= "Shiny Alakazam", looktype = 2016, nome = "Red hat addon", fly =  0, ride = 0, surf = 0},
[13090] = {pokemon= "Shiny Alakazam", looktype = 2015, nome = "Purple hat addon", fly =  0, ride = 0, surf = 0},
-- Alakazam
[13093] = {pokemon= "Alakazam", looktype = 2009, nome = "Adventurer addon", fly =  0, ride = 0, surf = 0},
[13095] = {pokemon= "Alakazam", looktype = 2010, nome = "Grey hat addon", fly =  0, ride = 0, surf = 0},
[13096] = {pokemon= "Alakazam", looktype = 2012, nome = "Red hat addon", fly =  0, ride = 0, surf = 0},
[13094] = {pokemon= "Alakazam", looktype = 2011, nome = "Purple hat addon", fly =  0, ride = 0, surf = 0},
-- Shiny Tropius
[13101] = {pokemon= "Shiny Tropius", looktype = 2019, nome = "Sorcerer addon", fly =  2065, ride = 0, surf = 0},
[13106] = {pokemon= "Shiny Tropius", looktype = 2069, nome = "Desert flower addon", fly =  2070, ride = 0, surf = 0},
-- Shiny Metagross
[13098] = {pokemon= "Shiny Metagross", looktype = 2021, nome = "King's crown addon", fly =  0, ride = 2064, surf = 0},
[13099] = {pokemon= "Shiny Metagross", looktype = 2020, nome = "Queen's crown addon", fly =  0, ride = 2067, surf = 0},
-- Shiny Clefable
[13097] = {pokemon= "Shiny Clefable", looktype = 2068, nome = "Angel addon", fly =  0, ride = 0, surf = 0},
-- Clefable
[13102] = {pokemon= "Clefable", looktype = 2025, nome = "Angel addon", fly =  0, ride = 0, surf = 0},
-- Togekiss
[13394] = {pokemon= "Togekiss", looktype = 2508, nome = "Champion addon", fly =  2507, ride = 0, surf = 0},
-- Shiny Jynx
[13100] = {pokemon= "Shiny Jynx", looktype = 2023, nome = "Witch addon", fly =  0, ride = 0, surf = 0},
-- Charmander
[2207] = {pokemon= "Charmander", looktype = 2198, nome = "Ninja mask addon", fly =  0, ride = 0, surf = 0},
-- Charizard
[2208] = {pokemon= "Charizard", looktype = 2451, nome = "Traveler bag addon", fly =  2452, ride = 0, surf = 0},
-- Metagross
[17142] = {pokemon= "Metagross", looktype = 2222, nome = "King's crown addon", fly =  0, ride = 356, surf = 0},
[13104] = {pokemon= "Metagross", looktype = 2017, nome = "Queen's crown addon", fly =  0, ride = 2066, surf = 0},
-- Halloween
[13105] = {pokemon= "Elder Charizard", looktype = 2074, nome = "Halloween addon", fly =  2072, ride = 0, surf = 0},
[13107] = {pokemon= "Charizard", looktype = 2073, nome = "Halloween addon", fly =  2071, ride = 0, surf = 0},
-- Novos addons
[2456] = {pokemon= "Abra", looktype = 2190, nome = "Magic kit addon", fly =  0, ride = 0, surf = 0},
[2421] = {pokemon= "Shiny Dragonite", looktype = 2402, nome = "Gray postman bag addon", fly =  2396, ride = 0, surf = 0},
[2422] = {pokemon= "Shiny Dragonite", looktype = 2406, nome = "Blue postman bag addon", fly =  2399, ride = 0, surf = 0},
[2423] = {pokemon= "Shiny Dragonite", looktype = 2407, nome = "Red postman bag addon", fly =  2401, ride = 0, surf = 0},
[2428] = {pokemon= "Electabuzz", looktype = 2424, nome = "Bandit mask addon", fly =  0, ride = 0, surf = 0},
[2429] = {pokemon= "Electabuzz", looktype = 2425, nome = "Metal pack addon", fly =  0, ride = 0, surf = 0},
[2430] = {pokemon= "Electabuzz", looktype = 2426, nome = "Raiden hat addon", fly =  0, ride = 0, surf = 0},
[2431] = {pokemon= "Scyther", looktype = 2340, nome = "Monk cape addon", fly =  0, ride = 0, surf = 0},
[2432] = {pokemon= "Scyther", looktype = 2341, nome = "Black cape addon", fly =  0, ride = 0, surf = 0},
[2433] = {pokemon= "Scyther", looktype = 2342, nome = "Namekian cape addon", fly =  0, ride = 0, surf = 0},
[2434] = {pokemon= "Tyranitar", looktype = 2369, nome = "Gentleman hat addon", fly =  0, ride = 0, surf = 0},
[2435] = {pokemon= "Tangela", looktype = 2330, nome = "Ghost costume addon", fly =  0, ride = 0, surf = 0},
[2436] = {pokemon= "Tangela", looktype = 2331, nome = "Jester hat addon", fly =  0, ride = 0, surf = 0},
[2437] = {pokemon= "Tangela", looktype = 2332, nome = "Fake fork addon", fly =  0, ride = 0, surf = 0},
[2438] = {pokemon= "Shiny Tangela", looktype = 2333, nome = "Ghost costume addon", fly =  0, ride = 0, surf = 0},
[2439] = {pokemon= "Shiny Tangela", looktype = 2334, nome = "Jester hat addon", fly =  0, ride = 0, surf = 0},
[2440] = {pokemon= "Shiny Tangela", looktype = 2335, nome = "Fake fork addon", fly =  0, ride = 0, surf = 0},
[2441] = {pokemon= "Shiny Tangrowth", looktype = 2336, nome = "Jester hat addon", fly =  0, ride = 0, surf = 0},
[2442] = {pokemon= "Shiny Tangrowth", looktype = 2337, nome = "Fake fork addon", fly =  0, ride = 0, surf = 0},
[2445] = {pokemon= "Marowak", looktype = 2203, nome = "Reaper costume addon", fly =  0, ride = 0, surf = 0},
[2446] = {pokemon= "Muk", looktype = 2350, nome = "Dj cap addon", fly =  0, ride = 0, surf = 0},
[2447] = {pokemon= "Ponyta", looktype = 2201, nome = "Pony saddle addon", fly =  0, ride = 2202, surf = 0},
[2448] = {pokemon= "Golem", looktype = 2351, nome = "Steel helmet addon", fly =  0, ride = 0, surf = 0},
[2449] = {pokemon= "Golem", looktype = 2352, nome = "Suicide costume addon", fly =  0, ride = 0, surf = 0},
[2450] = {pokemon= "Geodude", looktype = 2349, nome = "Kid cap addon", fly =  0, ride =  0, surf = 0},
[2451] = {pokemon= "Tentacruel", looktype = 2343, nome = "Water brain cap addon", fly =  0, ride = 0, surf = 0},
[2452] = {pokemon= "Tentacruel", looktype = 2344, nome = "Bloody brain cap addon", fly =  0, ride = 0, surf = 0},
[2453] = {pokemon= "Tentacruel", looktype = 2345, nome = "Slime brain cap addon", fly =  0, ride = 0, surf = 0},
[2455] = {pokemon= "Machamp", looktype = 2456, nome = "Dragon tattoo addon", fly =  0, ride = 0, surf = 0},
[2458] = {pokemon= "Dugtrio", looktype = 2356, nome = "Squad costume addon", fly =  0, ride = 0, surf = 0},
[2459] = {pokemon= "Diglett", looktype = 2355, nome = "Viking helmet addon", fly =  0, ride = 0, surf = 0},
[2460] = {pokemon= "Diglett", looktype = 2353, nome = "Ninja mask addon", fly =  0, ride = 0, surf = 0},
[2461] = {pokemon= "Diglett", looktype = 2354, nome = "Cowboy hat addon", fly =  0, ride = 0, surf = 0},
[2487] = {pokemon= "Huntail", looktype = 2378, nome = "Angel halo addon", fly =  0, ride = 0, surf = 2379},
[2481] = {pokemon= "Venusaur", looktype = 2453, nome = "Beautiful flower addon", fly =  0, ride = 2454, surf = 0},
[2482] = {pokemon= "Charizard", looktype = 2449, nome = "Beautiful flower addon", fly =  2450, ride = 0, surf = 0},
[2485] = {pokemon= "Sceptile", looktype = 2373, nome = "Beautiful flower addon", fly =  0, ride = 0, surf = 0},
[2486] = {pokemon= "Charmander", looktype = 2199, nome = "Mummy pack addon", fly =  0, ride = 0, surf = 0},
[2498] = {pokemon= "Salamance", looktype = 2374, nome = "Traveler bag addon", fly =  2375, ride = 0, surf = 0},
[2502] = {pokemon= "Meowth", looktype = 2329, nome = "Cowboy hat addon", fly =  0, ride =  0, surf = 0},
[2477] = {pokemon= "Squirtle", looktype = 2445, nome = "Purple ninja pack addon", fly =  0, ride = 0, surf = 2446},
[2478] = {pokemon= "Squirtle", looktype = 2448, nome = "Orange ninja pack addon", fly =  0, ride = 0, surf = 2447},
[2479] = {pokemon= "Squirtle", looktype = 2443, nome = "Red ninja pack addon", fly =  0, ride = 0, surf = 2444},
[2480] = {pokemon= "Squirtle", looktype = 2441, nome = "Blue ninja pack addon", fly =  0, ride = 0, surf = 2442},
[2472] = {pokemon= "Pidgeotto", looktype = 2200, nome = "Flying glasses addon", fly =  0, ride = 0, surf = 0},
[2473] = {pokemon= "Pidgey", looktype = 2362, nome = "Zombie cap addon", fly =  0, ride = 0, surf = 0},
[2474] = {pokemon= "Pidgey", looktype = 2360, nome = "Bone cap addon", fly =  0, ride = 0, surf = 0},
[2476] = {pokemon= "Butterfree", looktype = 2360, nome = "Captain hat addon", fly =  0, ride = 0, surf = 0},
-- Shiny Blastoise
[13108] = {pokemon= "Shiny Blastoise", looktype = 2078, nome = "Purple ninja pack addon", fly =  0, ride = 0, surf = 2083},
[13109] = {pokemon= "Shiny Blastoise", looktype = 2076, nome = "Orange ninja pack addon", fly =  0, ride = 0, surf = 2088},
[13110] = {pokemon= "Shiny Blastoise", looktype = 2075, nome = "Red ninja pack addon", fly =  0, ride = 0, surf = 2090},
[13111] = {pokemon= "Shiny Blastoise", looktype = 2077, nome = "Blue ninja pack addon", fly =  0, ride = 0, surf = 2086},
-- Blastoise
[13112] = {pokemon= "Blastoise", looktype = 2082, nome = "Purple ninja pack addon", fly =  0, ride = 0, surf = 2083},
[13113] = {pokemon= "Blastoise", looktype = 2080, nome = "Orange ninja pack addon", fly =  0, ride = 0, surf = 2087},
[13114] = {pokemon= "Blastoise", looktype = 2079, nome = "Red ninja pack addon", fly =  0, ride = 0, surf = 2089},
[13115] = {pokemon= "Blastoise", looktype = 2081, nome = "Blue ninja pack addon", fly =  0, ride = 0, surf = 2085},
}
 
if #getCreatureSummons(cid) > 0 then
if getPlayerLanguage(cid) == 0 then
doPlayerSendCancel(cid, "Por favor volte seu pokémon.")
end
if getPlayerLanguage(cid) == 1 then
doPlayerSendCancel(cid ,"Por favor, vuelve su pokémon.")
end
    
if getPlayerLanguage(cid) == 2 then
doPlayerSendCancel(cid, "Please back your pokémon.")
end
return false
end     
local addon = addons[item.itemid].looktype
local fly = addons[item.itemid].fly
local ride = addons[item.itemid].ride
local surf = addons[item.itemid].surf
local addonlook = addons[item.itemid].nome
 
local pb = getPlayerSlotItem(cid, 8).uid
local pk = addons[item.itemid].pokemon
 
if getItemAttribute(pb,"poke") ~= pk then
if getPlayerLanguage(cid) == 0 then
doPlayerSendCancel(cid, "Desculpa, você não pode usar esse addon nesse pokémon.")
end
if getPlayerLanguage(cid) == 1 then
doPlayerSendCancel(cid ,"Lo sentimos, no se puede utilizar este addon en esse pokémon.")
end
    
if getPlayerLanguage(cid) == 2 then
doPlayerSendCancel(cid, "Sorry, you can't use this addon on this pokémon.")
end
return false
end
 
if getItemAttribute(pb, "pokeballusada") == 0 then
doRemoveItem(item.uid, 1)
doSendMagicEffect(fromPosition, 180)
doSetItemAttribute(pb,"addon",addon)
doSetItemAttribute(pb,"addonfly",fly)
doSetItemAttribute(pb,"addonride",ride)
doSetItemAttribute(pb,"addonsurf",surf)
doSetItemAttribute(pb,"addonlook",addonlook)
return true
end
end

 

 

 

 

erro que esta acontecendo

image.png.854561f9f3ff8ac128a3710927fe229c.png

Se alguem conseguir aruma nao vai ajuda so eu mais todo mundo que quer esse system

Link para o post
Compartilhar em outros sites

Este tópico foi movido para a área correta. Esta é uma mensagem automática!
Pedimos que leia as regras do fórum!

Spoiler

This topic has been moved to the correct area. This is an automated message!
Please read the forum rules.

 

Compre seus Scripts Agora totalmente seguro e de forma rápida, aceitamos também encomendas.

discord.gg/phJZeHa2k4

 

Projeto ATS (Naruto)

Informações Abaixo

Facebook

Youtube
Discord

 

Tutoriais / Conteúdos

Clique Aqui

Link para o post
Compartilhar em outros sites

@Luis077 

Poderia me informr de onde pegou esse addon system ?

@Luis077 

function onUse(cid, item, fromPosition, itemEx, toPosition)
local addons = {
    [13089] = {pokemon= "Shiny Alakazam", looktype = 2013, nome = "Adventurer addon", fly =  0, ride = 0, surf = 0},
    [13091] = {pokemon= "Shiny Alakazam", looktype = 2014, nome = "Grey hat addon", fly =  0, ride = 0, surf = 0},
    [13092] = {pokemon= "Shiny Alakazam", looktype = 2016, nome = "Red hat addon", fly =  0, ride = 0, surf = 0},
    [13090] = {pokemon= "Shiny Alakazam", looktype = 2015, nome = "Purple hat addon", fly =  0, ride = 0, surf = 0},
    [13093] = {pokemon= "Alakazam", looktype = 2009, nome = "Adventurer addon", fly =  0, ride = 0, surf = 0},
    [13095] = {pokemon= "Alakazam", looktype = 2010, nome = "Grey hat addon", fly =  0, ride = 0, surf = 0},
    [13096] = {pokemon= "Alakazam", looktype = 2012, nome = "Red hat addon", fly =  0, ride = 0, surf = 0},
    [13094] = {pokemon= "Alakazam", looktype = 2011, nome = "Purple hat addon", fly =  0, ride = 0, surf = 0},
    [13101] = {pokemon= "Shiny Tropius", looktype = 2019, nome = "Sorcerer addon", fly =  2065, ride = 0, surf = 0},
    [13106] = {pokemon= "Shiny Tropius", looktype = 2069, nome = "Desert flower addon", fly =  2070, ride = 0, surf = 0},
    [13098] = {pokemon= "Shiny Metagross", looktype = 2021, nome = "King's crown addon", fly =  0, ride = 2064, surf = 0},
    [13099] = {pokemon= "Shiny Metagross", looktype = 2020, nome = "Queen's crown addon", fly =  0, ride = 2067, surf = 0},
    [13097] = {pokemon= "Shiny Clefable", looktype = 2068, nome = "Angel addon", fly =  0, ride = 0, surf = 0},
    [13102] = {pokemon= "Clefable", looktype = 2025, nome = "Angel addon", fly =  0, ride = 0, surf = 0},
    [13394] = {pokemon= "Togekiss", looktype = 2508, nome = "Champion addon", fly =  2507, ride = 0, surf = 0},
    [13100] = {pokemon= "Shiny Jynx", looktype = 2023, nome = "Witch addon", fly =  0, ride = 0, surf = 0},
    [2207] = {pokemon= "Charmander", looktype = 2198, nome = "Ninja mask addon", fly =  0, ride = 0, surf = 0},
    [2208] = {pokemon= "Charizard", looktype = 2451, nome = "Traveler bag addon", fly =  2452, ride = 0, surf = 0},
    [17142] = {pokemon= "Metagross", looktype = 2222, nome = "King's crown addon", fly =  0, ride = 356, surf = 0},
    [13104] = {pokemon= "Metagross", looktype = 2017, nome = "Queen's crown addon", fly =  0, ride = 2066, surf = 0},
    [13105] = {pokemon= "Elder Charizard", looktype = 2074, nome = "Halloween addon", fly =  2072, ride = 0, surf = 0},
    [13107] = {pokemon= "Charizard", looktype = 2073, nome = "Halloween addon", fly =  2071, ride = 0, surf = 0},
    [2456] = {pokemon= "Abra", looktype = 2190, nome = "Magic kit addon", fly =  0, ride = 0, surf = 0},
    [2421] = {pokemon= "Shiny Dragonite", looktype = 2402, nome = "Gray postman bag addon", fly =  2396, ride = 0, surf = 0},
    [2422] = {pokemon= "Shiny Dragonite", looktype = 2406, nome = "Blue postman bag addon", fly =  2399, ride = 0, surf = 0},
    [2423] = {pokemon= "Shiny Dragonite", looktype = 2407, nome = "Red postman bag addon", fly =  2401, ride = 0, surf = 0},
    [2428] = {pokemon= "Electabuzz", looktype = 2424, nome = "Bandit mask addon", fly =  0, ride = 0, surf = 0},
    [2429] = {pokemon= "Electabuzz", looktype = 2425, nome = "Metal pack addon", fly =  0, ride = 0, surf = 0},
    [2430] = {pokemon= "Electabuzz", looktype = 2426, nome = "Raiden hat addon", fly =  0, ride = 0, surf = 0},
    [2431] = {pokemon= "Scyther", looktype = 2340, nome = "Monk cape addon", fly =  0, ride = 0, surf = 0},
    [2432] = {pokemon= "Scyther", looktype = 2341, nome = "Black cape addon", fly =  0, ride = 0, surf = 0},
    [2433] = {pokemon= "Scyther", looktype = 2342, nome = "Namekian cape addon", fly =  0, ride = 0, surf = 0},
    [2434] = {pokemon= "Tyranitar", looktype = 2369, nome = "Gentleman hat addon", fly =  0, ride = 0, surf = 0},
    [2435] = {pokemon= "Tangela", looktype = 2330, nome = "Ghost costume addon", fly =  0, ride = 0, surf = 0},
    [2436] = {pokemon= "Tangela", looktype = 2331, nome = "Jester hat addon", fly =  0, ride = 0, surf = 0},
    [2437] = {pokemon= "Tangela", looktype = 2332, nome = "Fake fork addon", fly =  0, ride = 0, surf = 0},
    [2438] = {pokemon= "Shiny Tangela", looktype = 2333, nome = "Ghost costume addon", fly =  0, ride = 0, surf = 0},
    [2439] = {pokemon= "Shiny Tangela", looktype = 2334, nome = "Jester hat addon", fly =  0, ride = 0, surf = 0},
    [2440] = {pokemon= "Shiny Tangela", looktype = 2335, nome = "Fake fork addon", fly =  0, ride = 0, surf = 0},
    [2441] = {pokemon= "Shiny Tangrowth", looktype = 2336, nome = "Jester hat addon", fly =  0, ride = 0, surf = 0},
    [2442] = {pokemon= "Shiny Tangrowth", looktype = 2337, nome = "Fake fork addon", fly =  0, ride = 0, surf = 0},
    [2445] = {pokemon= "Marowak", looktype = 2203, nome = "Reaper costume addon", fly =  0, ride = 0, surf = 0},
    [2446] = {pokemon= "Muk", looktype = 2350, nome = "Dj cap addon", fly =  0, ride = 0, surf = 0},
    [2447] = {pokemon= "Ponyta", looktype = 2201, nome = "Pony saddle addon", fly =  0, ride = 2202, surf = 0},
    [2448] = {pokemon= "Golem", looktype = 2351, nome = "Steel helmet addon", fly =  0, ride = 0, surf = 0},
    [2449] = {pokemon= "Golem", looktype = 2352, nome = "Suicide costume addon", fly =  0, ride = 0, surf = 0},
    [2450] = {pokemon= "Geodude", looktype = 2349, nome = "Kid cap addon", fly =  0, ride =  0, surf = 0},
    [2451] = {pokemon= "Tentacruel", looktype = 2343, nome = "Water brain cap addon", fly =  0, ride = 0, surf = 0},
    [2452] = {pokemon= "Tentacruel", looktype = 2344, nome = "Bloody brain cap addon", fly =  0, ride = 0, surf = 0},
    [2453] = {pokemon= "Tentacruel", looktype = 2345, nome = "Slime brain cap addon", fly =  0, ride = 0, surf = 0},
    [2455] = {pokemon= "Machamp", looktype = 2456, nome = "Dragon tattoo addon", fly =  0, ride = 0, surf = 0},
    [2458] = {pokemon= "Dugtrio", looktype = 2356, nome = "Squad costume addon", fly =  0, ride = 0, surf = 0},
    [2459] = {pokemon= "Diglett", looktype = 2355, nome = "Viking helmet addon", fly =  0, ride = 0, surf = 0},
    [2460] = {pokemon= "Diglett", looktype = 2353, nome = "Ninja mask addon", fly =  0, ride = 0, surf = 0},
    [2461] = {pokemon= "Diglett", looktype = 2354, nome = "Cowboy hat addon", fly =  0, ride = 0, surf = 0},
    [2487] = {pokemon= "Huntail", looktype = 2378, nome = "Angel halo addon", fly =  0, ride = 0, surf = 2379},
    [2481] = {pokemon= "Venusaur", looktype = 2453, nome = "Beautiful flower addon", fly =  0, ride = 2454, surf = 0},
    [2482] = {pokemon= "Charizard", looktype = 2449, nome = "Beautiful flower addon", fly =  2450, ride = 0, surf = 0},
    [2485] = {pokemon= "Sceptile", looktype = 2373, nome = "Beautiful flower addon", fly =  0, ride = 0, surf = 0},
    [2486] = {pokemon= "Charmander", looktype = 2199, nome = "Mummy pack addon", fly =  0, ride = 0, surf = 0},
    [2498] = {pokemon= "Salamance", looktype = 2374, nome = "Traveler bag addon", fly =  2375, ride = 0, surf = 0},
    [2502] = {pokemon= "Meowth", looktype = 2329, nome = "Cowboy hat addon", fly =  0, ride =  0, surf = 0},
    [2477] = {pokemon= "Squirtle", looktype = 2445, nome = "Purple ninja pack addon", fly =  0, ride = 0, surf = 2446},
    [2478] = {pokemon= "Squirtle", looktype = 2448, nome = "Orange ninja pack addon", fly =  0, ride = 0, surf = 2447},
    [2479] = {pokemon= "Squirtle", looktype = 2443, nome = "Red ninja pack addon", fly =  0, ride = 0, surf = 2444},
    [2480] = {pokemon= "Squirtle", looktype = 2441, nome = "Blue ninja pack addon", fly =  0, ride = 0, surf = 2442},
    [2472] = {pokemon= "Pidgeotto", looktype = 2200, nome = "Flying glasses addon", fly =  0, ride = 0, surf = 0},
    [2473] = {pokemon= "Pidgey", looktype = 2362, nome = "Zombie cap addon", fly =  0, ride = 0, surf = 0},
    [2474] = {pokemon= "Pidgey", looktype = 2360, nome = "Bone cap addon", fly =  0, ride = 0, surf = 0},
    [2476] = {pokemon= "Butterfree", looktype = 2360, nome = "Captain hat addon", fly =  0, ride = 0, surf = 0},
    [13108] = {pokemon= "Shiny Blastoise", looktype = 2078, nome = "Purple ninja pack addon", fly =  0, ride = 0, surf = 2083},
    [13109] = {pokemon= "Shiny Blastoise", looktype = 2076, nome = "Orange ninja pack addon", fly =  0, ride = 0, surf = 2088},
    [13110] = {pokemon= "Shiny Blastoise", looktype = 2075, nome = "Red ninja pack addon", fly =  0, ride = 0, surf = 2090},
    [13111] = {pokemon= "Shiny Blastoise", looktype = 2077, nome = "Blue ninja pack addon", fly =  0, ride = 0, surf = 2086},
    [13112] = {pokemon= "Blastoise", looktype = 2082, nome = "Purple ninja pack addon", fly =  0, ride = 0, surf = 2083},
    [13113] = {pokemon= "Blastoise", looktype = 2080, nome = "Orange ninja pack addon", fly =  0, ride = 0, surf = 2087},
    [13114] = {pokemon= "Blastoise", looktype = 2079, nome = "Red ninja pack addon", fly =  0, ride = 0, surf = 2089},
    [13115] = {pokemon= "Blastoise", looktype = 2081, nome = "Blue ninja pack addon", fly =  0, ride = 0, surf = 2085},
}
 
if #getCreatureSummons(cid) > 0 then
doPlayerSendCancel(cid, "Por favor volte seu pokémon.")
return false
end
local addon = addons[item.itemid].looktype
local fly = addons[item.itemid].fly
local ride = addons[item.itemid].ride
local surf = addons[item.itemid].surf
local addonlook = addons[item.itemid].nome
 
local pb = getPlayerSlotItem(cid, 8).uid
local pk = addons[item.itemid].pokemon
 
if getItemAttribute(pb,"poke") ~= pk then
doPlayerSendCancel(cid, "Desculpa, você não pode usar esse addon nesse pokémon.")
return false
end
 
if getItemAttribute(pb, "pokeballusada") == 0 then
doRemoveItem(item.uid, 1)
doSendMagicEffect(fromPosition, 180)
doSetItemAttribute(pb,"addon",addon)
doSetItemAttribute(pb,"addonfly",fly)
doSetItemAttribute(pb,"addonride",ride)
doSetItemAttribute(pb,"addonsurf",surf)
doSetItemAttribute(pb,"addonlook",addonlook)
return true
end
end

Ajudei? REP+

 

Meus Servers:

PokeUnwind Em Breve

Rust Tibia Fechado

 

Tópicos: 

[Tutorial] Adicionando Pokemons com icon system

[Solução] ElfBot não abre corpos

 

Projetos:

DigiTibia Fechado

Rust Tibia Fechado(temporariamente!)

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por LeoTK
      Salve galera neste tópico irei postar algumas prints do mapa do servidor para quem queira acompanhar e quem sabe até utilizar de inspiração para mapear o seu NTO.
       
      #Att 11/08/2022

       
       
       
       
      Konoha (Em Desenvolvimento)
       
       
       
       
    • Por DiigooMix
      Como o título já diz, será que alguém possui sprite do hitto e se possível as transformações dele?
    • Por OmegaZero
      Olá gostaria que alguém me ajudasse com uma "scripting" não sei se é pela mesma, seria o seguinte uma determinada arma teria a chance de dar double hit e não sei oque fazer alguem poderia ajudar?

      OBS:não sei se é o local correto se não for mova, desculpe
    • Por Madarasenju
      Olá galera do Tibia King, queria por uns npc's no meu server que não tem função de trade nem nada do tipo, queria que eles só andassem como enfeite, Rep+ Pra quem me ajudar... grato desde já.
    • Por SilenceRoot
      A magia é assim o você usa a a magia e ela ficará ativado por 10 segundos, até que o inimigo lance a primeira magia ou todos de uma vez, quando ele lançar a primeira magia, ele não lhe acertará ou seja esquivando dela, e logo em seguida será teletransportado aleatoriamente ao redor do inimigo que usou.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo