-
Total de itens
109 -
Registro em
-
Última visita
Tudo que 96736649 postou
-
MESMO ASSIM, ELE ATÉ MUDA MAIS NUNCA CHEGA NO NUMERO EXATO.
-
PRA CONTINUAR O PROJETO, TERIA QUE MUDAR O DISTRO, UTILIZAR ALGUM MAIS UTILIZADO COMO O TFS. BUGS SAO POUCOS NO MEU SERVIDOR TA 100% SÓ FALTA O DISTRO MESMO.
- 114 respostas
-
- eri baiack
- baiak 8.60
- (e 3 mais)
-
Venha para o Baiak Dead, o maior e melhor servidor Brasileiro da atualidade! • Servidor Dedicado USA. • Eventos Diários. • Eventos PvP. • Sem Ping / Latência. • Experiência por Estagios. • Grande Comunidade (muitos jogadores). • Mapa Único. • Armas Únicas. • Modelo de runas & magias moderno, completo e perfeito. • Vocações super equilibradas. • Server com recursos Únicos e Inéditos. • Website com recursos Únicos e Inéditos. • Equipe Expêriente e Dedicada. Site/acc: http://baiakdead.servegame.com/ Version: 8.60 XP: 900x Skills: 1000x Magic level: 200x
-
OLA, GOSTARIA DE SABER COMO MUDO O TEMPO DE ATNUALIZAÇÃO DOS PLAYERS ONLINE NO TOPO DO SITE. QUANDO CLICO NELE APARECE NA PAGINA A QUANTIDADE CERTA. MAIS NO TOPO APARECE APENAS 10.
-
GALERA, EXISTE ALGUM CÓDIGO QUE EU POSSA COLOCAR NAS SOURCESE PARA QUE QUANDO HOUVESSE ALGUMA ACTION, UNIQUE, ITEM ETC DUPLICADO NÃO APARECER NO DISTRO?
-
Não deu.
-
OLA A TODOS, A DIAS ESTOU TENTANDO COMPILAR UM DISTRO SEGUINDO TUTORIAIS DAQUI DO FÓRUM MAIS TODOS QUE UTILIZEI ESTÃO DANDO ERRO. GOSTARIA DE SABER COMO FAÇO PARA COMPILAR UM DISTRO COM OS DADOS DO MEU SERVER E NÃO DE OUTRO SERVIDOR QUE JÁ VEM NAS SOURCE'S.
-
[05/08/2012 20:39:46] [Error - Npc interface] [05/08/2012 20:39:46] data/npc/scripts/food.lua [05/08/2012 20:39:46] Description: [05/08/2012 20:39:46] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:46] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/food.lua [05/08/2012 20:39:46] [Error - Npc interface] [05/08/2012 20:39:46] data/npc/scripts/default.lua [05/08/2012 20:39:46] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/default.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/lib/function.lua:222: attempt to call global 'getItemDescriptionsById' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/default.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/loot.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/loot.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/runes.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/lib/function.lua:222: attempt to call global 'getItemDescriptionsById' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/runes.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/default.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/default.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/default.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/runes.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/lib/function.lua:222: attempt to call global 'getItemDescriptionsById' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/runes.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/loot.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/loot.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/default.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/furniture.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:47] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:47] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/furniture.lua [05/08/2012 20:39:47] [Error - Npc interface] [05/08/2012 20:39:47] data/npc/scripts/default.lua [05/08/2012 20:39:47] Description: [05/08/2012 20:39:48] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:48] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:48] [Error - Npc interface] [05/08/2012 20:39:48] data/npc/scripts/runes.lua [05/08/2012 20:39:48] Description: [05/08/2012 20:39:48] data/lib/function.lua:222: attempt to call global 'getItemDescriptionsById' (a nil value) [05/08/2012 20:39:48] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/runes.lua [05/08/2012 20:39:48] [Error - Npc interface] [05/08/2012 20:39:48] data/npc/scripts/default.lua [05/08/2012 20:39:48] Description: [05/08/2012 20:39:48] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:48] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:48] [Error - Npc interface] [05/08/2012 20:39:48] data/npc/scripts/furniture.lua [05/08/2012 20:39:48] Description: [05/08/2012 20:39:48] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:48] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/furniture.lua [05/08/2012 20:39:48] [Error - Npc interface] [05/08/2012 20:39:48] data/npc/scripts/food.lua [05/08/2012 20:39:48] Description: [05/08/2012 20:39:48] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:48] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/food.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/default.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/runes.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/lib/function.lua:222: attempt to call global 'getItemDescriptionsById' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/runes.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/food.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/food.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/loot.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/loot.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/runes.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/lib/function.lua:222: attempt to call global 'getItemDescriptionsById' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/runes.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/default.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/default.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/food.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/food.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/default.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/default.lua [05/08/2012 20:39:49] Description: [05/08/2012 20:39:49] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:49] [Error - Npc interface] [05/08/2012 20:39:49] data/npc/scripts/default.lua [05/08/2012 20:39:50] Description: [05/08/2012 20:39:50] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:50] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua [05/08/2012 20:39:50] [Error - Npc interface] [05/08/2012 20:39:50] data/npc/scripts/runes.lua [05/08/2012 20:39:50] Description: [05/08/2012 20:39:50] data/lib/function.lua:222: attempt to call global 'getItemDescriptionsById' (a nil value) [05/08/2012 20:39:50] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/runes.lua [05/08/2012 20:39:50] [Error - Npc interface] [05/08/2012 20:39:50] data/npc/scripts/loot.lua [05/08/2012 20:39:50] Description: [05/08/2012 20:39:50] data/npc/lib/npcsystem/modules.lua:601: attempt to call global 'isItemRune' (a nil value) [05/08/2012 20:39:50] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/loot.lua
-
GALERA, TERIA COMO AO INVÉS DE COLOCAR O NOME DA CONTA COLOCAR O NOME DO PLAYER NO SISTEMAS DE BUYPONTS ABAIXO?: <?php if(!$logged) if($action == "logout") $main_content .= '<div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Logout Successful</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" ><tr><td>You have logged out of your '.$config['server']['serverName'].' account. In order to view your account you need to <a href="?subtopic=accountmanagement" >log in</a> again.</td></tr> </table> </div> </table></div></td></tr>'; else $main_content .= 'Please enter your account name and your password.<br/><a href="?subtopic=createaccount" >Create an account</a> if you do not have one yet.<br/><br/><form action="?subtopic=accountmanagement" method="post" ><div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Account Login</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" ><tr><td class="LabelV" ><span >Account Name:</span></td><td style="width:100%;" ><input type="password" name="account_login" SIZE="10" maxlength="10" ></td></tr><tr><td class="LabelV" ><span >Password:</span></td><td><input type="password" name="password_login" size="30" maxlength="29" ></td></tr> </table> </div> </table></div></td></tr><br/><table width="100%" ><tr align="center" ><td><table border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></td><tr></form></table></td><td><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=lostaccount" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Account lost?" alt="Account lost?" src="'.$layout_name.'/images/buttons/_sbutton_accountlost.gif" ></div></div></td></tr></form></table></td></tr></table>'; else { $main_content .= ' <form target="pagseguro" method="post" action="https://pagseguro.uol.com.br/checkout/checkout.jhtml"> <input type="hidden" name="email_cobranca" value="'. $config['pagseguro']['email']. '"> <input type="hidden" name="tipo" value="CP"> <input type="hidden" name="moeda" value="BRL"> <input type="hidden" name="item_id_1" value="1"> <input type="hidden" name="item_descr_1" value="Pontos na account de nome: '.$account_logged->getCustomField("name").'"> <input type="hidden" name="item_valor_1" value="'. $config['pagseguro']['produtoValor'] .'"> <input type="hidden" name="item_frete_1" value="0"> <input type="hidden" name="item_peso_1" value="0"> <input type="hidden" name="ref_transacao" value="'.$account_logged->getCustomField("name").'"> <table border="0" cellpadding="4" cellspacing="1" width="100%" id="#estilo"><tbody> <tr bgcolor="#505050" class="white"> <th colspan="2"><strong>Escolha a quantidade de pontos que deseja comprar</strong></th> </tr> <tr> <td width="10%">Sua conta</td> <td><strong>'.$account_logged->getCustomField("name").'</strong></td> </tr> <tr> <td width="10%">Pontos</td> <td> <input name="item_quant_1" type="text" value="1" size="5" maxlength="5"> </td> </tr> <tr> <td colspan="2"> <input type="image" src="http://images4.tcdn.com.br/img/img_prod/212785/botao_comprar[1].jpg" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" /> </td> </tr> </tr> <tr> </tbody></table></form>'; } ?>
-
GALERA, ESTOU ULTILIZANDO O BAIAK : http://www.xtibia.com/forum/topic/183677-new-eri-baiak-86-editado-v20/ NO ENTANTO ELE NAO ESTA COM O COMANDO DE FRAGS JA TENTEI COLOCAR OUTROS SCRIPTS MAIS TODOS DAO ERROS NA FUNCTION DA LIB ALGUEM PODERIA AJUDAR?
-
DISPONIBILIZA AS SOURCES DELE?
- 114 respostas
-
- eri baiack
- baiak 8.60
- (e 3 mais)
-
Desculpas. Estavamos sendo hackiados. ja resolvemos o problema servidor online novamente.
-
Venha para o Elemental Server, o maior e melhor servidor Brasileiro da atualidade! • Servidor Dedicado USA. • Eventos PvP. • Sem Ping / Latência. • Experiência por Estagios. • Mapa Único. • Armas Únicas. • Modelo de runas & magias moderno, completo e perfeito. • Vocações super equilibradas. • Server com recursos Únicos e Inéditos. • Website com recursos Únicos e Inéditos. • Equipe Expêriente e Dedicada. #Castle War Site/acc: http://elementalsv.servegame.com Version: 8.60 XP: 600x Skills: 1000x Magic level: 200x
-
ERRO: [25/06/2012 17:28:27] [Error - Action Interface] [25/06/2012 17:28:27] data/actions/scripts/evolution.lua:onUse [25/06/2012 17:28:27] Description: [25/06/2012 17:28:27] data/actions/scripts/evolution.lua:373: attempt to index field '?' (a nil value) [25/06/2012 17:28:27] stack traceback: [25/06/2012 17:28:27] data/actions/scripts/evolution.lua:373: in function <data/actions/scripts/evolution.lua:40> SCRIPT: local special = specialevo local types = { [leaf] = {"Bulbasaur", "Ivysaur", "Oddish", "Gloom", "Bellsprout", "Weepinbell", "Exeggcute", "Chikorita", "Bayleef", "Hoppip", "Skiploom", "Sunkern"}, [water] = {"Squirtle", "Wartortle", "Horsea", "Goldeen", "Magikarp", "Psyduck", "Poliwag", "Poliwhirl", "Tentacool", "Krabby", "Staryu", "Omanyte", "Eevee", "Totodile", "Croconow", "Chinchou", "Marill", "Wooper", "Slowpoke", "Remoraid", "Seadra"}, [venom] = {"Zubat", "Ekans", "Nidoran male", "Nidoran female", "Nidorino", "Nidorina", "Gloom", "Venonat", "Tentacool", "Grimer", "Koffing", "Spinarak", "Golbat"}, [thunder] = {"Magnemite", "Pikachu", "Voltorb", "Eevee", "Chinchou", "Pichu", "Mareep", "Flaaffy", "Elekid"}, [rock] = {"Geodude", "Graveler", "Rhyhorn", "Kabuto", "Slugma", "Pupitar"}, [punch] = {"Machop", "Machoke", "Mankey", "Poliwhirl", "Tyrogue"}, [fire] = {"Charmander", "Charmeleon", "Vulpix", "Growlithe", "Ponyta", "Eevee", "Cyndaquil", "Quilava", "Slugma", "Houndour", "Magby"}, [coccon] = {"Caterpie", "Metapod", "Weedle", "Kakuna", "Paras", "Venonat", "Scyther", "Ledyba", "Spinarak", "Pineco"}, [crystal] = {"Dratini", "Dragonair", "Magikarp", "Omanyte", "Kabuto", "Seadra"}, [dark] = {"Gastly", "Haunter", "Eevee", "Houndour", "Pupitar"}, [earth] = {"Cubone", "Sandshrew", "Nidorino", "Nidorina", "Diglett", "Onix", "Rhyhorn", "Wooper", "Swinub", "Phanpy", "Larvitar"}, [enigma] = {"Abra", "Kadabra", "Psyduck", "Slowpoke", "Drowzee", "Eevee", "Natu", "Smoochum", "Poliwhirl"}, [heart] = {"Rattata", "Pidgey", "Pidgeotto", "Spearow", "Clefairy", "Jigglypuff", "Meowth", "Doduo", "Porygon", "Chansey", "Sentret", "Hoothoot", "Cleffa", "Igglybuff", "Togepi", "Snubull", "Teddiursa"}, [ice] = {"Seel", "Shellder", "Smoochum", "Swinub"}, [king] = {"Slowpoke"}, [metal] = {"Onix", "Scyther"}, [dragon] = {"Seadra"}, [upgrade] = {"Porygon"}, [sun] = {"Sunkern"}, [sfire] = {"Shiny Charmander", "Shiny Charmeleon", "Shiny Vulpix", "Shiny Growlithe", "Shiny Ponyta", "Shiny Eevee"}, [swater] = {"Shiny Squirtle", "Shiny Wartortle", "Shiny Horsea", "Shiny Goldeen", "Shiny Magikarp", "Shiny Psyduck", "Shiny Poliwag", "Shiny Poliwhirl", "Shiny Tentacool", "Shiny Krabby", "Shiny Staryu", "Shiny Omanyte", "Shiny Eevee"}, [sleaf] = {"Shiny Bulbasaur", "Shiny Ivysaur", "Shiny Oddish", "Shiny Gloom", "Shiny Bellsprout", "Shiny Weepinbell", "Shiny Exeggcute"}, [sheart] = {"Shiny Rattata", "Shiny Pidgey", "Shiny Pidgeotto", "Shiny Spearow", "Shiny Clefairy", "Shiny Jigglypuff", "Shiny Meowth", "Shiny Doduo", "Shiny Porygon", "Shiny Chansey"}, [senigma] = {"Shiny Abra", "Shiny Kadabra", "Shiny Psyduck", "Shiny Slowpoke", "Shiny Drowzee", "Shiny Eevee"}, [srock] = {"Shiny Geodude", "Shiny Graveler", "Shiny Rhyhorn", "Shiny Kabuto"}, [svenom] = {"Shiny Zubat", "Shiny Ekans", "Shiny Nidoran male", "Shiny Nidoran female", "Shiny Nidorino", "Shiny Nidorina", "Shiny Gloom", "Shiny Venonat", "Shiny Tentacool", "Shiny Grimer", "Shiny Koffing"}, [sice] = {"Shiny Seel", "Shiny Shellder"}, [sthunder] = {"Shiny Magnemite", "Shiny Pikachu", "Shiny Voltorb", "Shiny Eevee"}, [scrystal] = {"Shiny Dratini", "Shiny Dragonair", "Shiny Magikarp", "Shiny Omanyte", "Shiny Kabuto"}, [scoccon] = {"Shiny Caterpie", "Shiny Metapod", "Shiny Weedle", "Shiny Kakuna", "Shiny Paras", "Shiny Venonat", "Shiny Scyther"}, [sdarkness] = {"Shiny Gastly", "Shiny Haunter", "Shiny Eevee"}, [spunch] = {"Shiny Machop", "Shiny Machoke", "Shiny Mankey", "Shiny Poliwhirl"}, [searth] = {"Shiny Cubone", "Shiny Sandshrew", "Shiny Nidorino", "Shiny Nidorina", "Shiny Diglett", "Shiny Onix", "Shiny Rhyhorn"} } function onUse(cid, item, frompos, item2, topos) local pokeball = getPlayerSlotItem(cid, 8) if not isMonster(item2.uid) or not isSummon(item2.uid) then return true end if getCreatureCondition(item2.uid, CONDITION_INVISIBLE) then return true end local pevo = poevo[getCreatureName(item2.uid)] if not isInArray(specialevo, getCreatureName(item2.uid)) then if not pevo then doPlayerSendCancel(cid, "This pokemon can't evolve.") return true end if pevo.level ~= 1 and not allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "This pokemon doesn't evolve using stones.") return true end if not isPlayer(getCreatureMaster(item2.uid)) or getCreatureMaster(item2.uid) ~= cid then doPlayerSendCancel(cid, "You can only use stones on pokemons you own.") return true end if pevo.stoneid ~= item.itemid and pevo.stoneid2 ~= item.itemid then doPlayerSendCancel(cid, "This isn't the needed stone to evolve this pokemon.") return true end end local minlevel = 0 if getPokemonName(item2.uid) == "Eevee" then local eevee = "" if item.itemid == thunder then eevee = "Jolteon" elseif item.itemid == water then eevee = "Vaporeon" elseif item.itemid == fire then eevee = "Flareon" elseif item.itemid == enigma and allEvolutionsCanBeInduzedByStone then eevee = "Espeon" elseif item.itemid == dark and allEvolutionsCanBeInduzedByStone then eevee = "Umbreon" else doPlayerSendCancel(cid, "This isn't the required stone to evolve this pokemon.") return true end minlevel = pokes[eevee].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPokemonLevel(item2.uid) < 20 then return doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (20).") end doRemoveItem(item.uid, 1) doEvolvePokemon(cid, item2, eevee, 0, 0) return true end if getPokemonName(item2.uid) == "Shiny Eevee" then local eevee = "" if item.itemid == thunder then eevee = "Shiny Jolteon" elseif item.itemid == water then eevee = "Shiny Vaporeon" elseif item.itemid == fire then eevee = "Shiny Flareon" else doPlayerSendCancel(cid, "This isn't the required stone to evolve this pokemon.") return true end minlevel = pokes[eevee].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPokemonLevel(item2.uid) < 20 then return doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (20).") end doRemoveItem(item.uid, 1) doEvolvePokemon(cid, item2, eevee, 0, 0) return true end if isInArray(specialevo, getPokemonName(item2.uid)) then if getPokemonName(item2.uid) == "Poliwhirl" then local evolution = 0 local theevo = "" local nlevel = 80 if item.itemid == water then if getPokemonLevel(item2.uid) >= 10 and getPlayerItemCount(cid, enigma) >= 1 then evolution = enigma theevo = "Politoed" elseif getPokemonLevel(item2.uid) >= 10 and getPlayerItemCount(cid, punch) >= 1 and allEvolutionsCanBeInduzedByStone then evolution = punch theevo = "Poliwrath" else if getPokemonLevel(item2.uid) < 10 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (10).") return true end if allEvolutionsCanBeInduzedByStone then if getPlayerItemCount(cid, enigma) <= 0 and getPlayerItemCount(cid, punch) <= 0 then doPlayerSendCancel(cid, "You need a water stone and a punch stone (Poliwrath) or a Enigma Stone (Politoed) to evolve this pokemon.") return true end else if getPlayerItemCount(cid, enigma) <= 0 then doPlayerSendCancel(cid, "You need a Water Stone and a Enigma Stone to evolve this pokemon to a Politoed.") return true end end end minlevel = pokes[theevo].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if theevo == "Poliwrath" and getPokemonLevel(item2.uid) < 10 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (10).") return true end if getPlayerItemCount(cid, punch) >= 1 and getPlayerItemCount(cid, king) >= 1 and allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "Please, use your Punch Stone to evolve this pokemon to a Poliwrath, or a Enigma Stone to a Politoed.") return true end if evolution == 0 then if allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "You need at least one Water Stone, and a Punch Stone (Poliwrath) or a Enigma Stone (Politoed) to evolve this pokemon.") else doPlayerSendCancel(cid, "You need at least one Water Stone and a Enigma Stone to evolve this pokemon.") end return true end if evolution ~= 0 then doEvolvePokemon(cid, item2, theevo, evolution, water) return true end elseif item.itemid == punch then minlevel = pokes["Poliwrath"].level if not allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "This is not the required stone to evolve this pokemon.") return true end if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPokemonLevel(item2.uid) < 10 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (10).") return true end if getPlayerItemCount(cid, water) <= 0 then doPlayerSendCancel(cid, "You need at least one Punch Stone and one Water Stone to evolve this pokemon.") return true end local theevo = "Poliwrath" doEvolvePokemon(cid, item2, theevo, water, punch) elseif item.itemid == enigma then minlevel = pokes["Politoed"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPlayerItemCount(cid, water) <= 0 then doPlayerSendCancel(cid, "You need at least one Punch Stone and one Enigma Stone to evolve this pokemon.") return true end local theevo = "Politoed" doEvolvePokemon(cid, item2, theevo, water, enigma) end elseif getPokemonName(item2.uid) == "Shiny Poliwhirl" then local evolution = 0 local theevo = "" local nlevel = 50 if item.itemid == water then if getPokemonLevel(item2.uid) >= 36 and getPlayerItemCount(cid, punch) >= 1 and allEvolutionsCanBeInduzedByStone then evolution = punch theevo = "Shiny Poliwrath" else if getPokemonLevel(item2.uid) < 36 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (36).") return true end if allEvolutionsCanBeInduzedByStone then if getPlayerItemCount(cid, punch) <= 0 then doPlayerSendCancel(cid, "You need a water stone and a punch stone Shiny Poliwrath to evolve this pokemon.") return true end else end end minlevel = pokes[theevo].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if theevo == "Shiny Poliwrath" and getPokemonLevel(item2.uid) < 36 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (36).") return true end if getPlayerItemCount(cid, punch) >= 1 and allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "Please, use your Punch Stone to evolve this pokemon to a Poliwrath.") return true end if evolution == 0 then if allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "You need at least one Water Stone and a Punch Stone ,Shiny Poliwrath to evolve this pokemon.") else doPlayerSendCancel(cid, "You need at least one Water Stone evolve this pokemon.") end return true end if evolution ~= 0 then doEvolvePokemon(cid, item2, theevo, evolution, water) return true end elseif item.itemid == punch then minlevel = pokes["Shiny Poliwrath"].level if not allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "This is not the required stone to evolve this pokemon.") return true end if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPokemonLevel(item2.uid) < 36 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (36).") return true end if getPlayerItemCount(cid, water) <= 0 then doPlayerSendCancel(cid, "You need at least one Punch Stone and one Water Stone to evolve this pokemon.") return true end local theevo = "Shiny Poliwrath" doEvolvePokemon(cid, item2, theevo, water, punch) end elseif getPokemonName(item2.uid) == "Gloom" then local evolution = 0 local theevo = "" local nlevel = 80 if item.itemid == leaf then if getPlayerItemCount(cid, venom) >= 1 and getPlayerItemCount(cid, leaf) >= 1 then doPlayerSendCancel(cid, "Please, use your Venom Stone to evolve this pokemon to a Vileplume, or a Crystal Stone to a Bellossom.") return true end if getPlayerItemCount(cid, venom) <= 0 and getPlayerItemCount(cid, leaf) <= 0 then doPlayerSendCancel(cid, "You need a Venom Stone to evolve this pokemon for a (Vileplume) or a leaf stone and crystal stone fot (Bellossom).") return true end if getPlayerItemCount(cid, venom) >= 1 then theevo = "Vileplume" evolution = venom elseif getPlayerItemCount(cid, crystal) >= 1 then theevo = "Bellossom" evolution = crystal end minlevel = pokes[theevo].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, theevo, evolution, leaf) elseif item.itemid == venom then minlevel = pokes["Vileplume"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPlayerItemCount(cid, leaf) <= 0 then doPlayerSendCancel(cid, "You need at least one Leaf Stone and one Venom Stone to evolve this pokemon.") return true end doEvolvePokemon(cid, item2, "Vileplume", venom, leaf) elseif item.itemid == leaf then minlevel = pokes["Bellossom"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPlayerItemCount(cid, leaf) <= 0 then doPlayerSendCancel(cid, "You need at least one Leaf Stone and one Crystal Stone to evolve this pokemon.") return true end doEvolvePokemon(cid, item2, "Bellossom", leaf, crystal) end elseif getPokemonName(item2.uid) == "Shiny Gloom" then if getPokemonLevel(item2.uid) < 10 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (10).") return true end if item.itemid == leaf then local theevo = "" local evolution = 0 if getPlayerItemCount(cid, venom) >= 1 then doPlayerSendCancel(cid, "Please, use your Venom Stone to evolve this pokemon to a Shiny Vileplume.") return true end if getPlayerItemCount(cid, venom) <= 0 then doPlayerSendCancel(cid, "You need at least one Leaf Stone or a Venom Stone (Shiny Vileplume) to evolve this pokemon.") return true end if getPlayerItemCount(cid, venom) >= 1 then theevo = "Shiny Vileplume" evolution = venom end minlevel = pokes[theevo].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, theevo, evolution, leaf) elseif item.itemid == venom then minlevel = pokes["Shiny Vileplume"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPlayerItemCount(cid, leaf) <= 0 then doPlayerSendCancel(cid, "You need at least one Leaf Stone and one Venom Stone to evolve this pokemon.") return true end doEvolvePokemon(cid, item2, "Shiny Vileplume", venom, leaf) end elseif getPokemonName(item2.uid) == "Slowpoke" then if getPokemonLevel(item2.uid) < 28 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (28).") return true end if item.itemid == enigma then if not allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "This is not the required stone to evolve this pokemon.") return true end minlevel = pokes["Slowbro"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Slowbro", enigma, 0) elseif item.itemid == king then minlevel = pokes["Slowking"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Slowking", king, 0) end elseif getPokemonName(item2.uid) == "Shiny Slowpoke" then if getPokemonLevel(item2.uid) < 28 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (28).") return true end if item.itemid == enigma then if not allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "This is not the required stone to evolve this pokemon.") return true end minlevel = pokes["Shiny Slowbro"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Shiny Slowbro", enigma, 0) end elseif getPokemonName(item2.uid) == "Tyrogue" then if getPokemonLevel(item2.uid) < 45 then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve (45).") return true end if not allEvolutionsCanBeInduzedByStone then doPlayerSendCancel(cid, "This pokemon doesn't evolve using stones.") return true end local evolution = "" if getOffense(item2.uid) == getDefense(item2.uid) then evolution = "Hitmontop" elseif getOffense(item2.uid) > getDefense(item2.uid) then evolution = "Hitmonlee" else evolution = "Hitmonchan" end minlevel = pokes[evolution].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, evolution, punch, 0) end return true end local count = poevo[getPokemonName(item2.uid)].count local stnid = poevo[getPokemonName(item2.uid)].stoneid local stnid2 = poevo[getPokemonName(item2.uid)].stoneid2 local evo = poevo[getPokemonName(item2.uid)].evolution local nlevel = poevo[getPokemonName(item2.uid)].level local count = poevo[getPokemonName(item2.uid)].count local stnid = poevo[getPokemonName(item2.uid)].stoneid local stnid2 = poevo[getPokemonName(item2.uid)].stoneid2 local evo = poevo[getPokemonName(item2.uid)].evolution local nlevel = poevo[getPokemonName(item2.uid)].level if stnid2 > 1 and (getPlayerItemCount(cid, stnid2) < count or getPlayerItemCount(cid, stnid) < count) then doPlayerSendCancel(cid, "You need at least one "..getItemNameById(stnid).." and one "..getItemNameById(stnid2).." to evolve this pokemon!") return true end if getPlayerItemCount(cid, stnid) < count then local str = "" if count >= 2 then str = "s" end return doPlayerSendCancel(cid, "You need at least "..count.." "..getItemNameById(stnid)..""..str.." to evolve this pokemon!") end minlevel = pokes[evo].level if getPlayerLevel(cid) < minlevel and evolutionByStoneRequireLevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPokemonLevel(item2.uid) < nlevel and evolutionByStoneRequireLevel then doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve ("..nlevel..").") return true end if count >= 2 then stnid2 = stnid end doEvolvePokemon(cid, item2, evo, stnid, stnid2) return TRUE end
-
ERRO: [25/06/2012 11:20:54] [Error - Action Interface] [25/06/2012 11:20:54] data/actions/scripts/pokedex.lua:onUse [25/06/2012 11:20:54] Description: [25/06/2012 11:20:54] data/actions/scripts/pokedex.lua:44: attempt to index a boolean value [25/06/2012 11:20:54] stack traceback: [25/06/2012 11:20:54] data/actions/scripts/pokedex.lua:44: in function <data/actions/scripts/pokedex.lua:3> SCRIPT: local rate = 20 function onUse(cid, item, fromPos, item2, toPos) if not isCreature(item2.uid) then return true endlocal poke = getCreatureName(item2.uid) if isMonster(item2.uid) thenlocal this = newpokedex[getCreatureName(item2.uid)] local leveltable = getPokemonExperienceTable(getCreatureName(item2.uid)) local myball = 0 if isSummon(item2.uid) then myball = getPlayerSlotItem(getCreatureMaster(item2.uid), 8) end if not getPlayerInfoAboutPokemon(cid, poke).dex then local exp = this.level * rate doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have unlocked "..getCreatureName(item2.uid).." in your pokedex!") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have gained "..exp.." experience points.") doSendMagicEffect(getThingPos(cid), 210) doPlayerAddExperience(cid, exp) doAddPokemonInDexList(cid, poke) else doShowPokedexRegistration(cid, item2, myball, leveltable) end return true endif not isPlayer(item2.uid) then return true end local unlock = 0for i = 1, #oldpokedex do if getPlayerInfoAboutPokemon(item2.uid, oldpokedex[i][1]).dex then unlock = unlock + 1 end end local str = "" local lnl = 0 local poks = "" local player = getRecorderPlayer(toPos, cid) for x = 1001, 1251 do local y = tonumber(x - 1000) if getPlayerInfoAboutPokemon(player, oldpokedex[y][1]).dex then if isPokemonInOwnList(player, oldpokedex[y][1]) then str = str.."\n["..threeNumbers(y).."] - "..oldpokedex[y][1].." (•)" lnl = lnl + 1 else str = str.."\n["..threeNumbers(y).."] - "..oldpokedex[y][1].."" end else str = str.."\n["..threeNumbers(y).."] - ?" end endif cid == player then doPlayerSendTextMessage(cid, 27, "You can open a pokedex entry by typing \"/dex <name>\". Example: \"/dex Pikachu\".") str = "Pokédex Information:\n\n- Unlocked pokémon species: "..unlock.."\n- Pokémon species that you own: "..lnl.."\n\n(•) means that you have already used that pokémon species.\n\nPokémon Database:\n"..str.."" if string.len(str) <= 8192 then doShowTextDialog(cid, 2382, str) end else doPlayerSendTextMessage(cid, 27, getPlayerName(player).." has unlocked "..unlock.."/251 pokémons already, and has captured "..lnl.." pokemons until now.") endreturn true end existe alguma tag para eloe nao reportar o erro no distro?
-
MESMO ERRO
-
<?xml version="1.0" encoding="UTF-8"?> <movements> <!-- Decaying tiles --> <movevent type="StepIn" itemid="293" event="script" value="decay.lua"/> <movevent type="StepIn" itemid="461" event="script" value="decay.lua"/> <!-- Swimming --> <movevent type="StepIn" itemid="4828-4831" event="script" value="swimming.lua"/> <movevent type="StepIn" itemid="7943-7954" event="script" value="swimming.lua"/> <!-- PvP --> <movevent type="StepIn" actionid="33691;33692;33693;33694;33695;33696;33697;33698" event="script" value="PvPgo.lua"/> <movevent type="StepIn" actionid="33699" event="script" value="PvPback.lua"/> <!-- Underwater drown --> <movevent type="StepIn" fromid="5405" toid="5410" event="script" value="drown.lua"/> <movevent type="StepOut" fromid="5405" toid="5410" event="script" value="drown.lua"/> <!-- (Depot & Level) tiles --> <movevent type="StepIn" itemid="416" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="417" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="426" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="425" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="446" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="447" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="3216" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="3217" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="3202" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="3215" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="11059" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="11060" event="script" value="tiles.lua"/> <!-- <movevent type="StepIn" itemid="8714" event="script" value="tiles.lua"/> --> <!-- Traps --> <movevent type="StepIn" itemid="1510" event="script" value="trap.lua"/> <movevent type="StepOut" itemid="1511" event="script" value="trap.lua"/> <movevent type="StepIn" itemid="1512" event="script" value="trap.lua"/> <movevent type="StepOut" itemid="1513" event="script" value="trap.lua"/> <movevent type="StepIn" itemid="2579" event="script" value="trap.lua"/> <movevent type="RemoveItem" itemid="2579" event="script" value="trap.lua"/> <!-- Citizen teleport --> <movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/> <!-- Walkback when walking on quest chest --> <movevent type="StepIn" itemid="1738" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1740" event="script" value="walkback.lua"/> <movevent type="StepIn" fromid="1746" toid="1749" event="script" value="walkback.lua"/> <!-- (Level & quest) doors --> <movevent type="StepOut" itemid="1228" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1230" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1246" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1248" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1260" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1262" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3541" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3550" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5104" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5113" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5122" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5131" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5293" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5295" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1224" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1226" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1242" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1244" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1256" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1258" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3543" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3552" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5106" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5115" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5124" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5133" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5289" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5291" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5746" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5749" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6203" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6205" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6207" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6209" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6260" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6262" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6264" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6266" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6897" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6899" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6906" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7039" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7041" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7048" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7050" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8552" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8554" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8556" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8558" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9176" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9178" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9180" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9182" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9278" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9280" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9282" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9284" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10279" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10281" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10283" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10285" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10474" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10476" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10483" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10485" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10780" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10782" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10789" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10791" event="script" value="closingdoor.lua"/> <movevent type="StepIn" itemid="1228" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1230" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1246" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1248" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1260" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1262" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3541" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3550" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5104" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5113" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5122" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5131" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5293" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5295" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1224" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1226" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1242" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1244" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1256" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1258" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3543" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3552" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5106" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5115" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5124" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5133" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5289" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5291" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5746" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5749" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6203" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6205" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6207" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6209" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6260" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6262" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6264" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6266" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6897" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6899" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6906" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6908" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7039" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7041" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7048" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7050" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8552" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8554" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8556" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8558" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9176" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9178" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9180" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9182" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9278" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9280" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9282" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9284" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10279" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10281" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10283" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10285" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10474" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10476" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10483" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10485" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10780" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10782" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10789" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10791" event="script" value="walkback.lua"/> <!-- Snow footprint tiles --> <movevent type="StepIn" itemid="670" event="script" value="snow.lua"/> <movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/> <!-- Create bread movements --> <movevent type="AddItem" tileitem="1" itemid="1786" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1788" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1790" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1792" event="script" value="dough.lua"/> <!-- Campfires --> <movevent type="StepIn" itemid="1423" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1423" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1424" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1424" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1425" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1425" event="function" value="onAddField"/> <!-- Fields --> <movevent type="StepIn" itemid="1487" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1487" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1488" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1488" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1489" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1489" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1490" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1490" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1491" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1491" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1492" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1492" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1493" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1493" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1494" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1494" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1495" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1495" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1496" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1496" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1497" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1497" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1498" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1498" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1499" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1499" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1500" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1500" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1501" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1501" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1502" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1502" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1503" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1503" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1504" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1504" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1505" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1505" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1506" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1506" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1507" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1507" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1508" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1508" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7359" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7359" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7360" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7360" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7465-7473" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7465-7473" event="function" value="onAddField"/> <movevent type="StepIn" itemid="11095" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="11095" event="function" value="onAddField"/> <movevent type="StepIn" itemid="11096" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="11096" event="function" value="onAddField"/> <!-- Other --> <movevent type="Equip" itemid="11826-11837;11737-11748" slot="feet" event="script" value="portrait.lua"/> <movevent type="DeEquip" itemid="11826-11837;11737-11748" slot="feet" event="script" value="portrait.lua"/> <movevent type="StepIn" actionid="9015" event="script" value="roupa.lua"/> <movevent type="StepIn" itemid="4820-4825;11756" event="script" value="surf.lua"/> <movevent type="StepOut" itemid="4820-4825;11756" event="script" value="surf.lua"/> <!-- <movevent type="StepIn" itemid="4632-4663;6627-6694" event="script" value="surfcancel.lua"/> --> <movevent type="StepIn" itemid="460;11675-11677" event="script" value="fly.lua"/> <movevent type="StepOut" itemid="460;11675-11677" event="script" value="fly.lua"/> <movevent type="StepIn" itemid="919" event="script" value="ghostwalk.lua"/> <movevent type="StepOut" itemid="8260" event="script" value="ghostwalk.lua"/> <movevent type="StepOut" itemid="11439;11440" event="script" value="mimicwall.lua"/> <movevent type="StepIn" itemid="11440" event="script" value="mimicwall.lua"/> <movevent type="StepOut" itemid="11749-11751" event="script" value="under deep sea.lua"/> </movements>
-
NÃO TEM NENHUMA FUNÇÃO PARA QUE ELE NÃO REPORTE O ERRO PRO DISTRO? ERRO CONTINUA.
-
ERRO: [24/06/2012 22:22:50] [Error - MoveEvents Interface] [24/06/2012 22:22:50] data/movements/scripts/portrait.lua:onEquip [24/06/2012 22:22:50] Description: [24/06/2012 22:22:50] (luaDoTransformItem) Item not found SCRIPT: function onEquip (cid, item, slot) if not cid then return true end if item.uid <= 0 then return true endif not getItemAttribute(item.uid, "poke") then return true end for i, x in pairs(fotos) do if string.lower(getItemAttribute(item.uid, "poke")) == string.lower(i) then doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[i]) return true end end endfunction onDeEquip(cid, item, slot) if not cid then return true end if item.uid <= 0 then return true endif not getItemAttribute(item.uid, "poke") then return true end doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEGS).uid, 2395) end TERIA COMO COLOCAR UMA TAG PARA QUE QUANDO TIVESSE O ERRO ELE NÃO IR PARA O DISTRO?
-
ERRO: [23/06/2012 16:04:54] [Error - CreatureScript Interface] [23/06/2012 16:04:54] data/creaturescripts/scripts/exp.lua:onStatsChange [23/06/2012 16:04:54] Description: [23/06/2012 16:04:54] data/creaturescripts/scripts/exp.lua:420: attempt to perform arithmetic on a nil value [23/06/2012 16:04:54] stack traceback: [23/06/2012 16:04:54] data/creaturescripts/scripts/exp.lua:420: in function <data/creaturescripts/scripts/exp.lua:129> [23/06/2012 16:04:45] [Error - CreatureScript Interface] [23/06/2012 16:04:45] data/creaturescripts/scripts/exp.lua:onStatsChange [23/06/2012 16:04:45] Description: [23/06/2012 16:04:45] data/lib/level system.lua:654: attempt to perform arithmetic on a nil value [23/06/2012 16:04:45] stack traceback: [23/06/2012 16:04:46] data/lib/level system.lua:654: in function 'getSpecialDefense' [23/06/2012 16:04:46] data/creaturescripts/scripts/exp.lua:429: in function <data/creaturescripts/scripts/exp.lua:129> SCRIPT: local combats = { [PSYCHICDAMAGE] = {cor = COLOR_PSYCHIC}, [GRASSDAMAGE] = {cor = COLOR_GRASS}, [POISONEDDAMAGE] = {cor = COLOR_GRASS}, [MORTALGASDAMAGE] = {cor = COLOR_POISON}, [FIREDAMAGE] = {cor = COLOR_FIRE2}, [bURNEDDAMAGE] = {cor = COLOR_BURN}, [WATERDAMAGE] = {cor = COLOR_WATER}, [iCEDAMAGE] = {cor = COLOR_ICE}, [NORMALDAMAGE] = {cor = COLOR_NORMAL}, [GUILLOTINEDAMAGE] = {cor = COLOR_NORMAL}, [FLYDAMAGE] = {cor = COLOR_FLYING}, [GHOSTDAMAGE] = {cor = COLOR_GHOST}, [NIGHTMAREDAMAGE] = {cor = COLOR_GHOST}, [GROUNDDAMAGE] = {cor = COLOR_GROUND}, [ELECTRICDAMAGE] = {cor = COLOR_ELECTRIC}, [THUNDERWAVEDAMAGE] = {cor = COLOR_ELECTRIC}, [ROCKDAMAGE] = {cor = COLOR_ROCK}, [bUGDAMAGE] = {cor = COLOR_BUG}, [FIGHTDAMAGE] = {cor = COLOR_FIGHTING}, [sEISMICTOSSDAMAGE] = {cor = COLOR_FIGHTING}, [DRAGONDAMAGE] = {cor = COLOR_DRAGON}, [POISONDAMAGE] = {cor = COLOR_POISON}, [DARKDAMAGE] = {cor = COLOR_DARK}, [sTEELDAMAGE] = {cor = COLOR_STEEL}, } local function doHeal(cid, amount) doCreatureAddHealth(cid, amount) doSendMagicEffect(getThingPos(cid), 12) doSendAnimatedText(getThingPos(cid), "+"..amount.."", 65) end local function sendPlayerDmgMsg(cid, text) if not isCreature(cid) then return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, text) end local spcevo = { ["Poliwhirl"] = {"Poliwrath", "Politoed"}, ["Gloom"] = {"Bellossom", "Vileplume"}, ["Tyrogue"] = {"Hitmonchan", "Hitmontop", "Hitmonlee"}} local function doEvolveWild(cid) if not isCreature(cid) or getCreatureHealth(cid) <= 0 then return true end local name = getCreatureName(cid) local evolution = "none" if spcevo[name] then evolution = spcevo[name][math.random(1, #spcevo[name])] elseif poevo[name] then evolution = poevo[name].evolution end local a = getPokemonStatus(name) if not a or evolution == "none" then return true end local pk = {} local players = getSpectators(getThingPos(cid), 7, 7) if players then for pp = 1, #players do local this = players[pp] if isCreature(this) and isPlayer(this) and (getCreatureTarget(this) == cid or getDamageMapPercent(this, cid) > 0) then doSendMagicEffect(getThingPos(this), 173) local expstring = cid.."expEx" pk[this] = getItemAttribute(getPlayerSlotItem(this, 8).uid, expstring) doItemSetAttribute(getPlayerSlotItem(this, 8).uid, expstring, 0) end end end local level = getPokemonLevel(cid) local pos = getThingPos(cid) local gender = getCreatureSkull(cid) local lifepercentage = 1 - ((getCreatureHealth(cid) * 1.3) / getCreatureMaxHealth(cid)) local lookdir = getCreatureLookDir(cid) local status = {} status.offense = getOffense(cid) + a.off * 8 status.defense = getDefense(cid) + a.def * 8 status.agi = getSpeed(cid) + a.agi * 8 status.spatk = getSpecialAttack(cid) + a.spatk * 8 status.vit = getVitality(cid) + a.vit * 4 doRemoveCreature(cid) local evo = doCreateMonster(evolution, pos) setWildPokemonLevel(evo, level, status) doCreatureSetLookDir(evo, lookdir) doCreatureSetSkullType(evo, gender) doCreatureAddHealth(evo, -getCreatureMaxHealth(evo) * lifepercentage) doSendMagicEffect(getThingPos(evo), 18) for attacker, experience in pairs (pk) do doWildAttackPlayer(evo, attacker) local expstring = evo.."expEx" local exp = experience or 0 doItemSetAttribute(getPlayerSlotItem(attacker, 8).uid, expstring, exp) end sendFinishEvolutionEffect(evo, true) addEvent(sendFinishEvolutionEffect, 550, evo, true) addEvent(sendFinishEvolutionEffect, 1050, evo) end local races = { [4] = {cor = COLOR_FIRE2}, [6] = {cor = COLOR_WATER}, [7] = {cor = COLOR_NORMAL}, [8] = {cor = COLOR_FIRE2}, [9] = {cor = COLOR_FIGHTING}, [10] = {cor = COLOR_FLYING}, [11] = {cor = COLOR_GRASS}, [12] = {cor = COLOR_POISON}, [13] = {cor = COLOR_ELECTRIC}, [14] = {cor = COLOR_GROUND}, [15] = {cor = COLOR_PSYCHIC}, [16] = {cor = COLOR_ROCK}, [17] = {cor = COLOR_ICE}, [18] = {cor = COLOR_BUG}, [19] = {cor = COLOR_DRAGON}, [20] = {cor = COLOR_GHOST}, [21] = {cor = COLOR_STEEL}, [22] = {cor = COLOR_DARK}, [1] = {cor = 180}, [2] = {cor = 180}, [3] = {cor = 180}, [5] = {cor = 180}, } local damages = {MORTALGASDAMAGE, GROUNDDAMAGE, ELECTRICDAMAGE, ROCKDAMAGE, FLYDAMAGE, BUGDAMAGE, FIGHTINGDAMAGE, DRAGONDAMAGE, POISONDAMAGE, DARKDAMAGE, STEELDAMAGE, NIGHTMAREDAMAGE, GUILLOTINEDAMAGE, SEISMICTOSSDAMAGE} local fixdmgs = {PSYCHICDAMAGE, COMBAT_PHYSICALDAMAGE, GRASSDAMAGE, FIREDAMAGE, WATERDAMAGE, ICEDAMAGE, NORMALDAMAGE, GHOSTDAMAGE} local ignored = {NIGHTMAREDAMAGE, GUILLOTINEDAMAGE, MORTALGASDAMAGE, SEISMICTOSSDAMAGE, PSYCHOSHIFTDAMAGE, POISONEDDAMAGE, BURNEDDAMAGE} local ignoremiss = {NIGHTMAREDAMAGE, MORTALGASDAMAGE, BURNEDDAMAGE, POISONEDDAMAGE} local ignorecritical = {MORTALGASDAMAGE, BURNEDDAMAGE, POISONEDDAMAGE, NIGHTMAREDAMAGE} local cannotkill = {MORTALGASDAMAGE, BURNEDDAMAGE, POISONEDDAMAGE, NIGHTMAREDAMAGE} function onStatsChange(cid, attacker, type, combat, value) if combat == FLYSYSTEMDAMAGE then return false end if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV local damageCombat = combat if damageCombat == THUNDERWAVEDAMAGE then damageCombat = ELECTRICDAMAGE elseif damageCombat == PSYCHOSHIFTDAMAGE then damageCombat = PSYCHICDAMAGE end if getPlayerStorageValue(cid, 33) >= 1 then -- funcionamento do self destruction if isCreature(attacker) then return false end return true end if not isCreature(attacker) or cid == attacker then if not isInArray(fixdamages, combat) and combats[combat] then doSendAnimatedText(getThingPos(cid), value, combats[combat].cor) end return true end -------------------------------------------------- if combat == SLEEP_POWDERDAMAGE then if not isSummon(cid) and not isSummon(attacker) and not isPlayer(attacker) then return false end if isPlayer(cid) then return false end if isNpcSummon(cid) and getCreatureTarget(cid) ~= attacker then return false end if isSummon(cid) and isSummon(attacker) then if not isInParty(getCreatureMaster(cid)) or not isInParty(getCreatureMaster(attacker)) then return false end if not getPlayerParty(getCreatureMaster(cid)) == getPlayerParty(getCreatureMaster(attacker)) then return false end end doSleep(cid, value, true) return false end -------------------------------------------------- if combat == HEALINGDAMAGE then local healing = math.abs(value) if not isSummon(cid) and not isSummon(attacker) and not isPlayer(attacker) then doHeal(cid, healing) return false end if isSummon(cid) and isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(cid), 990) >= 1 then return false end if not isInParty(getCreatureMaster(cid)) or not isInParty(getCreatureMaster(attacker)) then doHeal(cid, healing) return false end if not getPlayerParty(getCreatureMaster(cid)) == getPlayerParty(getCreatureMaster(attacker)) then doHeal(cid, healing) return false end end return false end -------------------------------------------------- if combat == POISON_POWDERDAMAGE then if not isSummon(cid) and not isSummon(attacker) and not isPlayer(attacker) then return false end if isNpcSummon(cid) and getCreatureTarget(cid) ~= attacker then return false end if isSummon(cid) and isSummon(attacker) then if not isInParty(getCreatureMaster(cid)) or not isInParty(getCreatureMaster(attacker)) then return false end if not getPlayerParty(getCreatureMaster(cid)) == getPlayerParty(getCreatureMaster(attacker)) then return false end end local master = attacker if isSummon(attacker) then master = getCreatureMaster(attacker) end addEvent(doAdvancedPoison, 2500, attacker, master, cid, getPlayerStorageValue(attacker, 919231), value, getPlayerStorageValue(cid, 3893)) return false end -------------------------------------------------- if isPlayer(attacker) then local valor = value if valor > getCreatureHealth(cid) then valor = getCreatureHealth(cid) end if combat == COMBAT_PHYSICALDAMAGE then return false end if combat == PHYSICALDAMAGE then doSendMagicEffect(getThingPos(cid), 3) doSendAnimatedText(getThingPos(cid), valor, races[getMonsterInfo(getCreatureName(cid)).race].cor) end if combats[damageCombat] and not isInArray(fixdmgs, damageCombat) then doSendAnimatedText(getThingPos(cid), valor, combats[damageCombat].cor) end if #getCreatureSummons(attacker) >= 1 and not isInArray({POISONEDDAMAGE, BURNEDDAMAGE}, combat) then doPlayerSendTextMessage(attacker, MESSAGE_STATUS_DEFAULT, "Your "..getPokeName(getCreatureSummons(attacker)[1]).." dealt "..valor.." damage to "..getSomeoneDescription(cid)..".") end return true end -------------------------------------------------- if isPlayer(cid) and #getCreatureSummons(cid) >= 1 and type == STATSCHANGE_HEALTHLOSS then return false end -------------------------------------------------- if isPlayer(cid) and #getCreatureSummons(cid) <= 0 and type == STATSCHANGE_HEALTHLOSS then local valor = 0 if combat == COMBAT_PHYSICALDAMAGE then valor = getOffense(attacker) else valor = getSpecialAttack(attacker) end valor = valor * playerDamageReduction valor = valor * math.random(83, 117) / 100 if valor >= getCreatureHealth(cid) then valor = getCreatureHealth(cid) end valor = math.floor(valor) if valor >= getCreatureHealth(cid) then if getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 then doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, 17000, 0) setPlayerStorageValue(cid, 17001, 0) setPlayerStorageValue(cid, 63215, -1) doChangeSpeed(cid, PlayerSpeed) local item = getPlayerSlotItem(cid, 8) local btype = getPokeballType(item.itemid) if #getCreatureSummons(cid) <= 0 then if isInArray(pokeballs[btype].all, item.itemid) then doTransformItem(item.uid, pokeballs[btype].off) doItemSetAttribute(item.uid, "hp", 0) end end end end doCreatureAddHealth(cid, -valor, 3, 180) if not isPlayer(cid) then addEvent(sendPlayerDmgMsg, 5, cid, "You lost "..valor.." hitpoints due to an attack from "..getSomeoneDescription(attacker)..".") end return false end -------------------------------------------------- if type == STATSCHANGE_HEALTHGAIN then if cid == attacker then return true end if not isSummon(cid) and isSummon(attacker) then return false end if isSummon(cid) and isSummon(attacker) and getPlayerParty(getCreatureMaster(cid)) == getPlayerParty(getCreatureMaster(attacker)) then return false end return true end -------------------------------------------------- if isMonster(attacker) and getPlayerStorageValue(attacker, 201) ~= -1 then if isPlayer(cid) then return false end if getPlayerStorageValue(getCreatureMaster(cid), ginasios[getPlayerStorageValue(attacker, 201)].storage) ~= 1 then return false end end -------------------------------------------------- if isMonster(cid) and getPlayerStorageValue(cid, 201) ~= -1 then if getPlayerStorageValue(getCreatureMaster(attacker), ginasios[getPlayerStorageValue(cid, 201)].storage) ~= 1 then return false end end -------------------------------------------------- -------------------------------------------------- local multiplier = 1 local miss = (getSpeed(cid) - getSpeed(attacker)) * 0.26 local poketype1 = pokes[getCreatureName(cid)].type local poketype2 = pokes[getCreatureName(cid)].type2 if getCreatureCondition(cid, CONDITION_INVISIBLE) then return false end if damageCombat ~= COMBAT_PHYSICALDAMAGE and not isInArray(ignored, damageCombat) then if isInArray(effectiveness[damageCombat].super, poketype1) then multiplier = multiplier * 2 end if isInArray(effectiveness[damageCombat].super, poketype2) then multiplier = multiplier * 2 end if isInArray(effectiveness[damageCombat].weak, poketype1) then multiplier = multiplier * 0.5 end if isInArray(effectiveness[damageCombat].weak, poketype2) then multiplier = multiplier * 0.5 end if isInArray(effectiveness[damageCombat].non, poketype1) or isInArray(effectiveness[damageCombat].non, poketype2) then multiplier = multiplier * 0 end elseif combat == COMBAT_PHYSICALDAMAGE then if isGhostPokemon(cid) and not isGhostPokemon(attacker) then doSendMagicEffect(getThingPos(cid), 3) return false end if getCreatureCondition(attacker, CONDITION_INVISIBLE) and not isGhostPokemon(attacker) then if not isInArray({"Clefable", "Wigglytuff"}, getCreatureName(attacker)) then return false end end if miss > 0 and math.random(1, 100) <= miss and not isSleeping(cid) and not getCreatureCondition(cid, CONDITION_PARALYZE) then doSendMagicEffect(getThingPos(cid), 211) doSendAnimatedText(getThingPos(cid), "MISS", 215) return false end end -------------------------------------------------- local valor = value if multiplier > 2 then multiplier = 2 elseif multiplier == 0.25 then multiplier = 0.5 end -------------------------------------------------- local function resetMiss(cid) if not isCreature(cid) then return true end setPlayerStorageValue(cid, 88726, -1) end if getPlayerStorageValue(cid, 88726) ~= 1 and miss > 0 and math.random(1, 100) <= miss and damageCombat ~= COMBAT_PHYSICALDAMAGE and not isInArray(ignoremiss, combat) and not isSleeping(cid) and not getCreatureCondition(cid, CONDITION_PARALYZE) then doSendMagicEffect(getThingPos(cid), 211) doSendAnimatedText(getThingPos(cid), "MISS", 215) doTeleportThing(cid, getClosestFreeTile(cid, getThingPos(cid)), false) doSendMagicEffect(getThingPos(cid), 211) doFaceCreature(cid, getThingPos(attacker)) setPlayerStorageValue(cid, 88726, 1) addEvent(resetMiss, 2200, cid) return false end if not isSummon(attacker) and not isSummon(cid) then return false end if isSummon(cid) and isSummon(attacker) then if not isInParty(getCreatureMaster(cid)) or not isInParty(getCreatureMaster(attacker)) then return false end if not getPlayerParty(getCreatureMaster(cid)) == getPlayerParty(getCreatureMaster(attacker)) then return false end end if isSleeping(attacker) then return false end local randomRange = math.random(83, 117) / 100 local block = 0 if combat == COMBAT_PHYSICALDAMAGE then block = 1 - (getDefense(cid) / (getOffense(attacker) + getDefense(cid))) if getPokemonGender(attacker) == SEX_MALE then block = block + 0.2 end if getPokemonGender(cid) == SEX_FEMALE then block = block - 0.2 end valor = getOffense(attacker) * block else block = 1 - (getSpecialDefense(cid) / (getSpecialAttack(attacker) + getSpecialDefense(cid))) valor = valor * block * generalSpecialAttackReduction if isSummon(cid) then valor = valor * summonSpecialDamageReduction - getPokemonLevel(cid) / 2 end end valor = valor * multiplier valor = valor * randomRange if isSummon(attacker) then valor = valor * getHappinessRate(attacker) else valor = valor * summonReduction end valor = math.floor(valor) if combat == NIGHTMAREDAMAGE then local div = 8 if isSummon(attacker) and not isSummon(cid) then div = 4 end valor = math.floor(getCreatureMaxHealth(cid)/div) elseif combat == GUILLOTINEDAMAGE then if isGhostPokemon(cid) then doSendMagicEffect(getThingPos(cid), 3) return false end local gDmg = 0.5 if isSummon(attacker) and not isSummon(cid) then gDmg = 0.7 end valor = getCreatureMaxHealth(cid) * gDmg elseif combat == SEISMICTOSSDAMAGE then valor = getPokemonLevel(attacker) * 10 elseif combat == BURNEDDAMAGE then valor = value * getResistance(cid, FIREDAMAGE) elseif combat == POISONEDDAMAGE then valor = value * getResistance(cid, POISONDAMAGE) end if valor <= 0 then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) return false end if math.random(1, 100) == 4 and not isInArray(ignorecritical, combat) then doSendAnimatedText(getThingPos(attacker), "CRITICAL", 215) valor = valor * 2 end if combat == PSYCHOSHIFTDAMAGE and isCreature(cid) then if not isPlayer(cid) then local pos = getThingPos(cid) pos.x = pos.x + math.random(-4,4) pos.y = pos.y + math.random(-4,4) for a = 1, 6 do if not canWalkOnPos(pos, true, true, true, true, false) or not isSightClear(getThingPos(cid), pos, false) then pos = getThingPos(cid) pos.x = pos.x + math.random(-4,4) pos.y = pos.y + math.random(-4,4) end end if not canWalkOnPos(pos, true, true, true, true, false) then pos = getClosestFreeTile(cid, getThingPos(cid)) end if not canWalkOnPos(pos, true, true, true, true, false) then pos = getThingPos(cid) end doTeleportThing(cid, pos, false) end doSendMagicEffect(getThingPos(cid), math.random(12, 14)) end if combat == THUNDERWAVEDAMAGE then doCreatureAddCondition(cid, thunderwavecondition) end if valor >= getCreatureHealth(cid) then if isInArray(cannotKill, combat) and isPlayer(cid) then valor = getCreatureHealth(cid) - 1 else valor = getCreatureHealth(cid) end end --- REFLECT -------------------------------- if not isPlayer(cid) and getPlayerStorageValue(cid, 34) >= 1 and combat ~= COMBAT_PHYSICALDAMAGE then doSendMagicEffect(getThingPos(cid), 135) doSendAnimatedText(getThingPos(cid), "REFLECT", COLOR_GRASS) setPlayerStorageValue(cid, 34, -1) return false end -------------------------------------------- if hasMimicWall(cid) then doSendMagicEffect(getThingPos(cid), 135) local dmgText = ""..valor.."" local a = getPlayerStorageValue(cid, 878) setPlayerStorageValue(cid, 878, a - valor) local k = getPlayerStorageValue(cid, 878) if k <= 0 then local b = getTileItemById(getThingPos(cid), 11440) if b.uid > 1 then doRemoveItem(b.uid, 1) end local c = getTileItemById(getThingPos(cid), 11439) if c.uid > 1 then doRemoveItem(c.uid, 1) end dmgText = ""..a.."" doSendMagicEffect(getThingPos(cid), 3) end doSendAnimatedText(getThingPos(cid), dmgText, 215) return false end if isSummon(attacker) and not isSummon(cid) and not isPlayer(cid) then local expstring = cid.."expEx" if getItemAttribute(getPlayerSlotItem(getCreatureMaster(attacker), 8).uid, expstring) == null then doItemSetAttribute(getPlayerSlotItem(getCreatureMaster(attacker), 8).uid, expstring, 0) end local exp = valor / getCreatureMaxHealth(cid) local ball = getPlayerSlotItem(getCreatureMaster(attacker), 8).uid doItemSetAttribute(ball, expstring, getItemAttribute(ball, expstring) + exp) if getItemAttribute(ball, expstring) > 1 then doItemSetAttribute(ball, expstring, 1) end end if isSummon(cid) and getCreatureHealth(cid) <= (getCreatureMaxHealth(cid)*0.08) and not exhaustion.get(getCreatureMaster(cid), 88726) then exhaustion.set(getCreatureMaster(cid), 88726, 11) doSendMagicEffect(getThingPos(cid), 178) end if isSummon(attacker) then if combat == COMBAT_PHYSICALDAMAGE then doTargetCombatHealth(getCreatureMaster(attacker), cid, PHYSICALDAMAGE, -valor, -valor, 255) else doTargetCombatHealth(getCreatureMaster(attacker), cid, damageCombat, -valor, -valor, 255) end if not isSummon(cid) and not isPlayer(cid) and math.random(1, wildEvolveChance) == math.random(1, wildEvolveChance) then addEvent(doEvolveWild, math.random(1, 2500), cid) end else if combat ~= COMBAT_PHYSICALDAMAGE then doCreatureAddHealth(cid, -math.abs(valor), 3, combats[damageCombat].cor) else doCreatureAddHealth(cid, -math.abs(valor), 3, races[getMonsterInfo(getCreatureName(cid)).race].cor) end if isSummon(cid) then addEvent(sendPlayerDmgMsg, 5, getCreatureMaster(cid), "Your "..getCreatureName(cid).." lost "..valor.." hitpoints due to an attack from "..getSomeoneDescription(attacker)..".") end end local percent = 8 + math.ceil(valor / getCreatureMaxHealth(cid) * 100) if getCreatureHealth(cid) == 0 or percent <= 0 then return false end local runCond = false if math.random(100) <= percent then runCond = true end if runCond then local condPos = getThingPos(cid) local color = 215 local text = "" local effect = 2 if damageCombat == FIREDAMAGE and not isBurning(cid) then doAdvancedBurn(attacker, isPlayer(getCreatureMaster(attacker)) and getCreatureMaster(attacker) or 0, cid, getPokemonLevel(attacker) * 2, math.random(5, 12)) color = COLOR_FIRE2 text = "BURNING" effect = 15 elseif damageCombat == POISONDAMAGE and not isPoisoned(cid) and randomCond == checkCond then doAdvancedPoison(attacker, isPlayer(getCreatureMaster(attacker)) and getCreatureMaster(attacker) or 0, cid, getPokemonLevel(attacker) * 2, math.random(4, 20)) color = COLOR_GRASS text = "POISONED" effect = 8 end doSendMagicEffect(getThingPos(cid), effect) addEvent(doSendAnimatedText, 5, condPos, text, color) end ----------------------------------------PASSIVAS----------------------------------------- ------------------------------"Counter Helix" - "Giro Ball"------------------------------ -- [outfit normal] = {out = outfit girando, efeitos} local OutFit = { [366] = {out = 496, cima = 128, direita = 129, esquerda = 130, baixo = 131}, --scyther [912] = {out = 918, cima = 128, direita = 129, esquerda = 130, baixo = 131}, --Scizor [1317] = {out = 849, cima = 128, direita = 129, esquerda = 130, baixo = 131}, --Shiny Scyther [952] = {out = 1193, cima = 128, direita = 129, esquerda = 130, baixo = 131}, --Hitmontop [909] = {out = 1194, cima = 128, direita = 129, esquerda = 130, baixo = 131}, --pineco [910] = {out = 1192, cima = 128, direita = 129, esquerda = 130, baixo = 131}, --Forretress } --acima do efeito 255 n aparece -pelo menos aki- entao fica esse por enquanto... ;x --efeito vermelho => {cima = 261, direita = 263, esquerda = 264, baixo = 262} if isSummon(cid) then if OutFit[getCreatureOutfit(cid).lookType] then if math.random(1, 100) <= 20 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- if getPlayerStorageValue(cid, 32623) == 1 then --proteçao pra n usar a spell 2x seguidas... return false end local outfitt = OutFit[getCreatureOutfit(cid).lookType] local function doWingAttack(cid, a, damage, min, max) local damagearea = {} local effectpos = getThingPosWithDebug(cid) local effect = 255 if a == 0 then effect = outfitt.cima effectpos.x = effectpos.x + 1 effectpos.y = effectpos.y - 1 damagearea = wingdn elseif a == 1 then effect = outfitt.direita effectpos.x = effectpos.x + 2 effectpos.y = effectpos.y + 1 damagearea = wingde elseif a == 2 then effect = outfitt.baixo effectpos.x = effectpos.x + 1 effectpos.y = effectpos.y + 2 damagearea = wingds elseif a == 3 then effect = outfitt.esquerda effectpos.x = effectpos.x - 1 effectpos.y = effectpos.y + 1 damagearea = wingdw end doSendMagicEffect(effectpos, effect) if damage then local look = getCreatureOutfit(cid).lookType if look == 366 or look == 1317 then --scyther e shiny scyther doAreaCombatHealth(cid, BUGDAMAGE, getThingPosWithDebug(cid), damagearea, -min, -max, CONST_ME_NONE) elseif look == 952 then --hitmontop doAreaCombatHealth(cid, FIGHTINGDAMAGE, getThingPosWithDebug(cid), damagearea, -min, -max, CONST_ME_NONE) else --resto doAreaCombatHealth(cid, STEELDAMAGE, getThingPosWithDebug(cid), damagearea, -min, -max, CONST_ME_NONE) end end end local dire = getCreatureLookDir(cid) local cpos = getThingPosWithDebug(cid) local min = getPokemonLevel(cid)*15 --nao sei como funciona o sistema de dano... local max = getPokemonLevel(cid)*20 --nao sei como funciona o sistema de dano... setPlayerStorageValue(cid, 32623, 1) --proteçao doSetCreatureOutfit(cid, {lookType = OutFit[getCreatureOutfit(cid).lookType].out}, -1) local function doDance(cid, dir, damage, min, max) if not isCreature(cid) then return true end doCreatureSetLookDir(cid, dir) doWingAttack(cid, dir, damage, min, max) end for times = 0, 2 do for directions = 0, 3 do addEvent(doDance, times * 300, cid, directions, true, min, max) end end local function doChangeO(cid, dir, pos) if not isCreature(cid) then return true end setPlayerStorageValue(cid, 32623, 0) --proteçao doRemoveCondition(cid, CONDITION_OUTFIT) if getThingPosWithDebug(cid).x == pos.x and getThingPosWithDebug(cid).y == pos.y then doCreatureSetLookDir(cid, dir) end end addEvent(doChangeO, 2 * 300 + 10, cid, dire, cpos) end end end ------------------------------------------- Counter ------------------------------------- local Fire_Thunder = {"Magmar", "Shiny Magmar", "Electabuzz", "Shiny Electabuzz", "Umbreon", "Ampharos", "Jolteon", "Flareon", "Vaporeon", "Shiny Jolteon", "Shiny Flareon", "Shiny Vaporeon", "Magby", "Elekid"} --["Nome"] = {effeito, damage} local eff = { ["Magmar"] = {15, FIREDAMAGE}, ["Shiny Magmar"] = {15, FIREDAMAGE}, ["Magby"] = {15, FIREDAMAGE}, ["Flareon"] = {244, FIREDAMAGE}, ["Vaporeon"] = {68, WATERDAMAGE}, ["Jolteon"] = {207, ELECTRICDAMAGE}, ["Umbreon"] = {208, DARKDAMAGE}, ["Shiny Flareon"] = {232, FIREDAMAGE}, ["Shiny Vaporeon"] = {68, WATERDAMAGE}, ["Shiny Jolteon"] = {207, ELECTRICDAMAGE}, ["Electabuzz"] = {207, ELECTRICDAMAGE}, ["Shiny Electabuzz"] = {207, ELECTRICDAMAGE}, ["Ampharos"] = {207, ELECTRICDAMAGE}, ["Elekid"] = {207, ELECTRICDAMAGE}, } if isSummon(cid) then local e = getCreatureMaster(cid) if isInArray(Fire_Thunder, getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke")) then if math.random(1, 100) <= 20 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- if getPlayerStorageValue(cid, 32623) == 1 then --proteçao pra n usar a spell 2x seguidas... return false end local min = getWildPokemonLevel(cid)*15 --nao sei como funciona o sistema de dano... local max = getWildPokemonLevel(cid)*20 --nao sei como funciona o sistema de dano... local function sendFireEff(cid, dir, eff, damage) if not isCreature(cid) then return true end doAreaCombatHealth(cid, damage, getPosByDir(getThingPosWithDebug(cid), dir), 0, -min, -max, eff) end local function doSpinFire(cid) if not isCreature(cid) then return true end local t = { [1] = SOUTHWEST, [2] = SOUTH, [3] = SOUTHEAST, [4] = EAST, [5] = NORTHEAST, [6] = NORTH, [7] = NORTHWEST, [8] = WEST, [9] = SOUTHWEST, } for a = 1, 17 do if not t[a] then addEvent(sendFireEff, a * 140, cid, t[a-8], eff[getCreatureName(cid)][1], eff[getCreatureName(cid)][2]) else addEvent(sendFireEff, a * 140, cid, t[a], eff[getCreatureName(cid)][1], eff[getCreatureName(cid)][2]) end end setPlayerStorageValue(cid, 32623, 0) --proteçao end setPlayerStorageValue(cid, 32623, 1) --proteçao doSpinFire(cid, false, cid) end end end ---------------------------------------------Demon Kicker---------------------------------- --[outfit] = outfit chutando, local hitmonlees = { [371] = 652, --hitmonlee [1300] = 652, --shiny hitmonlee [877] = 878, --elite hitmonlee PxG } --DETALHE: shiny hitmonlee n tem a sprite dele chutando.. pelo menos eu n achei.. --entao deixei a sprite do hitmonlee normal atacando... if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if name == "Shiny Hitmonlee" or name == "Hitmonlee" then if isCreature(getCreatureTarget(getCreatureMaster(cid))) then if math.random(1, 100) <= 20 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- if isSleeping(cid) then return true end if getDistanceBetween(getThingPos(cid), getThingPos(getMasterTarget(cid))) > 1 then return false end if getPlayerStorageValue(cid, 32623) == 1 then --proteçao pra n usar a spell 2x seguidas... return false end local function doChangeHitmon(cid) if not isCreature(cid) then return true end setPlayerStorageValue(cid, 32623, 0) --proteçao doRemoveCondition(cid, CONDITION_OUTFIT) end local min = getPokemonLevel(cid)*15 --nao sei como funciona o sistema de dano... local max = getPokemonLevel(cid)*20 --nao sei como funciona o sistema de dano... setPlayerStorageValue(cid, 32623, 1) --proteçao doSetCreatureOutfit(cid, {lookType = hitmonlees[getCreatureOutfit(cid).lookType]}, -1) doTargetCombatHealth(cid, getMasterTarget(cid), FIGHTINGDAMAGE, -min, -max, 255) addEvent(doChangeHitmon, 700, cid) end end end end -------------------------------------------Demon Puncher------------------------------------- local hitmonchans = { ["Hitmonchan"] = { [0] = {out = 559, eff = 112, type = FIGHTINGDAMAGE}, --outfit normal [1] = {out = 1075, eff = 35, type = FIREDAMAGE}, --outfit fogo [2] = {out = 1077, eff = 48, type = ELECTRICDAMAGE}, --outfit raio [3] = {out = 1078, eff = 43, type = ICEDAMAGE}, --outfit gelo [4] = {out = 1076, eff = 140, type = GHOSTDAMAGE} --outfit ghost }, ["Shiny Hitmonchan"] = { --aconcelho trocar a outfit do shiny hitmonchan pela do elite hitmonchan do PO... [0] = {out = 837, eff = 112, type = FIGHTINGDAMAGE}, --outfit normal [1] = {out = 1080, eff = 35, type = FIREDAMAGE}, --outfit fogo [2] = {out = 1081, eff = 48, type = ELECTRICDAMAGE}, --outfit raio [3] = {out = 1082, eff = 43, type = ICEDAMAGE}, --outfit gelo [4] = {out = 1079, eff = 140, type = GHOSTDAMAGE} --outfit ghost } } local monchanOUT = {837, 1080, 1081, 1082, 1079} if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if name == "Shiny Hitmonchan" or name == "Hitmonchan" then if isCreature(getCreatureTarget(getCreatureMaster(cid))) then if math.random(1, 100) <= 20 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- if isSleeping(cid) then return true end if getDistanceBetween(getThingPos(cid), getThingPos(getMasterTarget(cid))) > 1 then return false end if getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") == "Shiny Hitmonchan" and not isInArray(monchanOUT, getCreatureOutfit(cid).lookType) then return false --proteçao pro script n funcionar com o shiny monchan com outfit diferente da do elite... end --script soh funciona com outfit do elite hirmonchan do PO... local min = getPokemonLevel(cid)*15 --nao sei como funciona o sistema de dano... local max = getPokemonLevel(cid)*20 --nao sei como funciona o sistema de dano... local hands = getItemAttribute(getPlayerSlotItem(e, 8).uid, "hands") doSendDistanceShoot(getThingPos(cid), getThingPos(getMasterTarget(cid)), 39) doTargetCombatHealth(cid, getMasterTarget(cid), hitmonchans[name][hands].type, -min, -max, 255) local target = getThingPos(getMasterTarget(cid)) target.x = target.x + 1 if hands == 4 then doSendMagicEffect(target, hitmonchans[name][hands].eff) else doSendMagicEffect(getThingPos(getMasterTarget(cid)), hitmonchans[name][hands].eff) end end end end end ---------------------------------------Stunning Confusion------------------------------------------ local ducks = {"Golduck", "Psyduck", "Espeon", "Shiny Golduck", "Shiny Psyduck"} if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if isInArray(ducks, name) then if math.random(1, 100) <= 20 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- if getPlayerStorageValue(cid, 32623) == 1 then --proteçao pra n usar a spell 2x seguidas... return false end local min = getPokemonLevel(cid)*5 --nao sei como funciona o sistema de dano... local max = getPokemonLevel(cid)*10 --nao sei como funciona o sistema de dano... local function damage(cid) if isCreature(cid) then doAreaCombatHealth(cid, PSYCHICDAMAGE, getThingPosWithDebug(cid), confusion, -min, -max, 136) end end setPlayerStorageValue(cid, 32623, 1) --proteçao for i = 1, 7 do addEvent(damage, i*500, cid) end addEvent(setPlayerStorageValue, 3500, cid, 32623, 0) --proteçao end end end -----------------------------------------Groundshock Kangaskhan----------------------------------- if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if name == "Kangaskhan" or name == "Shiny Kangaskhan" then if math.random(1, 100) <= 20 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- local min = getPokemonLevel(cid)*10 --nao sei como funciona o sistema de dano... local max = getPokemonLevel(cid)*15 --nao sei como funciona o sistema de dano... doAreaCombatHealth(cid, NORMALDAMAGE, getThingPosWithDebug(cid), eshock, -min, -max, 255) local sps = getThingPosWithDebug(cid) sps.x = sps.x+1 sps.y = sps.y+1 doSendMagicEffect(sps, 127) end end end -----------------------------------------Groundshock Snorlax----------------------------------- if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if name == "Snorlax" or name == "Shiny Snorlax" then if math.random(1, 100) <= 20 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- local min = getPokemonLevel(cid)*10 --nao sei como funciona o sistema de dano... local max = getPokemonLevel(cid)*15 --nao sei como funciona o sistema de dano... doAreaCombatHealth(cid, NORMALDAMAGE, getThingPosWithDebug(cid), eshock, -min, -max, 255) local sps = getThingPosWithDebug(cid) sps.x = sps.x+1 sps.y = sps.y+1 doSendMagicEffect(sps, 127) end end end --------------------------------------Electric Charge--------------------------------------------------- local charge = {"Pikachu", "Shiny Pikachu", "Raichu", "Shiny Raichu"} if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if isInArray(charge, name) then if getPlayerStorageValue(cid, 253) >= 0 then return true end if math.random(1, 100) <= 15 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- setPlayerStorageValue(cid, 253, 1) doSendMagicEffect(getThingPos(cid), 207) doSendAnimatedText(getThingPos(cid), "FOCUS", 144) end end end -------------------------------------Melody------------------------------------ if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if name == "Wigglytuff" or name == "Shiny Wigglytuff" then if math.random(1, 100) <= 10 then -- Porcentagem de chance pro poke usar a passiva... 10 = 10% +/- doAreaCombatHealth(cid, SLEEP_POWDERDAMAGE, getThingPosWithDebug(cid), powders, -6, -10, 33) end end end ------------------------------------- Dragon Fury / Fury --------------------------------------- local DracoFury = {"Persian", "Shiny Persian", "Gyarados", "Shiny Gyarados", "Dratini", "Shiny Dratini", "Dragonair", "Shiny Dragonair", "Dragonite", "Shiny Dragonite"} if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if isInArray(DracoFury, name) then if math.random(1, 100) <= 10 then --Chance 4 = 4% Acho, Mais Fica A Sua Escolha if getPlayerStorageValue(cid, 32623) == 1 then return false end local function effect(params) if isCreature(params.cid) then doSendMagicEffect(getThingPos(params.cid), 12) end end setPlayerStorageValue(cid, 32623, 1) local function doReduceOffenseDefense(cid, qnt) if not isCreature(cid) then return true end local a = getDefense(cid) local A = getOffense(cid) if getCreatureName(cid) ~= "Persian" then setPlayerStorageValue(cid, 1002, a - qnt) end setPlayerStorageValue(cid, 1001, A - qnt) end local function doDoubleOffenseDefense(cid) if not isCreature(cid) then return true end local a = getDefense(cid) local A = getOffense(cid) if getCreatureName(cid) ~= "Persian" then setPlayerStorageValue(cid, 1002, a * 2) end setPlayerStorageValue(cid, 1001, A * 1.5) local b = getDefense(cid) local c = b - a local B = getOffense(cid) local C = B - A if getCreatureName(cid) ~= "Persian" then addEvent(doReduceOffenseDefense, 15 * 1500 + 40, cid, c) end addEvent(doReduceOffenseDefense, 15 * 1500 + 40, cid, C) end setPlayerStorageValue(cid, 32623, 0) doDoubleOffenseDefense(cid) for times = 0, 15 do addEvent(effect, 1500 * times + 40, {cid = cid}) end setPlayerStorageValue(cid, 32623, 1) doSendAnimatedText(getThingPos(cid), "Fury", 144) end end end ------------------------------------- Mega Drain --------------------------------------- arr = { {0, 0, 0, 0, 0}, {0, 1, 1, 1, 0}, {0, 1, 2, 1, 0}, {0, 1, 1, 1, 0}, {0, 0, 0, 0, 0} } local mega = {"Oddish", "Gloom", "Vileplume", "Kabuto", "Kabutops", "Parasect", "Tangela", "Shiny Oddish", "Shiny Gloom", "Shiny Vileplume", "Shiny Kabuto", "Shiny Kabutops", "Shiny Parasect", "Shiny Tangela"} local min = getPokemonLevel(cid)*3 --nao sei como funciona o sistema de dano... local max = getPokemonLevel(cid)*5 --nao sei como funciona o sistema de dano... if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if isInArray(mega, name) then if math.random(1, 100) <= 10 then -- Porcentagem de chance pro poke usar a passiva... 20 = 20% local uid = checkAreaUid(getThingPos(cid), arr, 1, 1) for _,pid in pairs(uid) do if isCreature(pid) then if getCreatureTarget(pid) == cid then local hp = getCreatureHealth(pid) local drain = choose(min, max) if hp-drain >= 1 then doCreatureAddHealth(pid, -drain) doCreatureAddHealth(cid, drain) doSendAnimatedText(getThingPos(pid), "-"..drain.."", 144) doSendAnimatedText(getThingPos(cid), "+"..drain.."", 32) end end end end end end end ------------------------------------- Spores Reaction --------------------------------------- arr = { {0, 0, 0, 0, 0}, {0, 1, 1, 1, 0}, {0, 1, 2, 1, 0}, {0, 1, 1, 1, 0}, {0, 0, 0, 0, 0} } local spores = {"Oddish", "Gloom", "Vileplume", "Shiny Oddish", "Shiny Gloom", "Shiny Vileplume"} if isSummon(cid) then local e = getCreatureMaster(cid) local name = getItemAttribute(getPlayerSlotItem(e, 8).uid, "poke") if isInArray(spores, name) then if math.random(1, 100) <= 1 then -- Porcentagem de chance pro poke usar a passiva... 1 = 1% +/- doAreaCombatHealth(cid, SLEEP_POWDERDAMAGE, getThingPosWithDebug(cid), powders, -2, -3, 27) end end end return false end
-
ERRO: [23/06/2012 15:59:25] [Error - Action Interface] [23/06/2012 15:59:25] data/actions/scripts/pokedex.lua:onUse [23/06/2012 15:59:25] Description: [23/06/2012 15:59:26] data/actions/scripts/pokedex.lua:44: attempt to index a boolean value [23/06/2012 15:59:26] stack traceback: [23/06/2012 15:59:26] data/actions/scripts/pokedex.lua:44: in function <data/actions/scripts/pokedex.lua:3> SCRIPT: local rate = 20 function onUse(cid, item, fromPos, item2, toPos) if not isCreature(item2.uid) then return true end local poke = getCreatureName(item2.uid) if isMonster(item2.uid) then local this = newpokedex[getCreatureName(item2.uid)] local leveltable = getPokemonExperienceTable(getCreatureName(item2.uid)) local myball = 0 if isSummon(item2.uid) then myball = getPlayerSlotItem(getCreatureMaster(item2.uid), 8) end if not getPlayerInfoAboutPokemon(cid, poke).dex then local exp = this.level * rate doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have unlocked "..getCreatureName(item2.uid).." in your pokedex!") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have gained "..exp.." experience points.") doSendMagicEffect(getThingPos(cid), 210) doPlayerAddExperience(cid, exp) doAddPokemonInDexList(cid, poke) else doShowPokedexRegistration(cid, item2, myball, leveltable) end return true end if not isPlayer(item2.uid) then return true end local unlock = 0 for i = 1, #oldpokedex do if getPlayerInfoAboutPokemon(item2.uid, oldpokedex[i][1]).dex then unlock = unlock + 1 end end local str = "" local lnl = 0 local poks = "" local player = getRecorderPlayer(toPos, cid) for x = 1001, 1251 do local y = tonumber(x - 1000) if getPlayerInfoAboutPokemon(player, oldpokedex[y][1]).dex then if isPokemonInOwnList(player, oldpokedex[y][1]) then str = str.."\n["..threeNumbers(y).."] - "..oldpokedex[y][1].." (•)" lnl = lnl + 1 else str = str.."\n["..threeNumbers(y).."] - "..oldpokedex[y][1].."" end else str = str.."\n["..threeNumbers(y).."] - ?" end end if cid == player then doPlayerSendTextMessage(cid, 27, "You can open a pokedex entry by typing \"/dex <name>\". Example: \"/dex Pikachu\".") str = "Pokédex Information:\n\n- Unlocked pokémon species: "..unlock.."\n- Pokémon species that you own: "..lnl.."\n\n(•) means that you have already used that pokémon species.\n\nPokémon Database:\n"..str.."" if string.len(str) <= 8192 then doShowTextDialog(cid, 2382, str) end else doPlayerSendTextMessage(cid, 27, getPlayerName(player).." has unlocked "..unlock.."/251 pokémons already, and has captured "..lnl.." pokemons until now.") end return true end
-
ERRO: [/b][/i] [i][b][23/06/2012 07:22:43] [Error - CreatureScript Interface] [23/06/2012 07:22:43] In a timer event called from: [23/06/2012 07:22:43] data/creaturescripts/scripts/spawn.lua:onSpawn [23/06/2012 07:22:43] Description: [23/06/2012 07:22:43] data/lib/level system.lua:590: attempt to index field '?' (a nil value) [23/06/2012 07:22:43] stack traceback: [23/06/2012 07:22:43] data/lib/level system.lua:590: in function 'setWildPokemonLevel' [23/06/2012 07:22:43] data/creaturescripts/scripts/spawn.lua:22: in function <data/creaturescripts/scripts/spawn.lua:19> SCRIPT: local shinys = { "Bulbasaur", "Ivysaur", "Venusaur", "Charmander", "Charmeleon", "Charizard", "Squirtle", "Wartortle", "Blastoise", "Caterpie", "Metapod", "Butterfree", "Weedle", "Kakuna", "Beedrill", "Pidgey", "Pidgeotto", "Pidgeot", "Rattata", "Raticate", "Spearow", "Fearow", "Ekans", "Arbok", "Pikachu", "Raichu", "Sandshrew", "Sandslash", "Nidoran Female", "Nidorina", "Nidoqueen", "Nidoran Male", "Nidorino", "Nidoking", "Clefairy", "Clefable", "Vulpix", "Ninetales", "Jigglytuff", "Wigglytuff", "Zubat", "Golbat", "Odish", "Gloom", "Vileplume", "Paras", "Parasect", "Venonat", "Venomoth", "Diglett", "Dugtrio", "Mewoth", "Persian", "Psyduck", "Golduck", "Mankey", "Primeape", "Growlithe", "Arcanine", "Poliwag", "Poliwhirl", "Poliwrath", "Abra", "Kadabra", "Alakazam", "Machop", "Machoke", "Machamp", "Bellsprout", "Weepinbell", "Victreebel", "Tentacool", "Tentacruel", "Geodude", "Graveler", "Golem", "Ponyta", "Rapidash", "Slowpoke", "Slowbro", "Magnamite", "Magneton", "Farfetch'd", "Doduo", "Dodrio", "Seel", "Dewgong", "Grimer", "Muk", "Shellder", "Cloyster", "Gastly", "Haunter", "Gengar", "Onix", "Drowzee", "Hypno", "Krabby", "Kingler", "Voltorb", "Electrode", "Exeggcute", "Exeggutor", "Cubone", "Marowak", "Hitmonlee", "Hitmonchan", "Lickitung", "Koffing", "Weezing", "Rhyhorn", "Rhydon", "Chansey", "Tangela", "Kangaskhan", "Horsea", "Seadra", "Goldeen", "Seaking", "Staryu", "Starmie", "Mr. Mime", "Scyther", "Jynx", "Electabuzz", "Magmar", "Pinsir", "Tauros", "Magikarp", "Gyarados", "Lapras", "Ditto", "Eevee", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Omanyte", "Omastar", "Kabuto", "Kabutops", "Snorlax", "Porygo Z", "Dragonair", "Dratini", "Absol", "Altaria", "Baltoy", "Claydol", "Buneary", "Beldum", "Metang", "Metagross", "Camerupt", "Carnivine", "Carvanha", "Sharpedo", "Croagunk", "Toxicroak", "Buizel", "Floatzel", "Gabite", "Gible", "Gliscor", "Honchkrow", "Luxray", "Mamoswine", "Pachirisu", "Plusle", "Minun", "Probopass", "Purugly", "Froslass", "Glalie", "Snorunt", "Lunatone", "Solrock", "Staraptor", "Tropius", "Yanmega", "Zangoose", "Rhyperior", "Gastrodon" } local raros = {"Articuno", "Zapdos", "Moltreas", "Mew", "Mewtwo", "Dragonite", "Aerodactyl"} local function doPokemonRegisterLevel(cid) if not isCreature(cid) then return true end if getWildPokemonLevel(cid) == -1 then setWildPokemonLevel(cid) end end local function doSetRandomGender(cid) if not isCreature(cid) then return true end local gender = 0 local name = getCreatureName(cid) if not newpokedex[name] then return true end local rate = newpokedex[name].gender if rate == 0 then gender = 3 elseif rate == 1000 then gender = 4 elseif rate == -1 then gender = 0 elseif math.random(1, 1000) <= rate then gender = 4 else gender = 3 end doCreatureSetSkullType(cid, gender) end local function doShiny(cid) if isCreature(cid) then if isSummon(cid) then return true end if getPlayerStorageValue(cid, 74469) >= 1 then return true end if isInArray(shinys, getCreatureName(cid)) then transform = math.random(1, 100) --100% chance elseif isInArray(raros, getCreatureName(cid)) then transform = math.random(1, 1000) --100% chance elseif not isInArray(raros, getCreatureName(cid)) and not isInArray(shinys, getCreatureName(cid)) then return true end if transform == 1 then doSendMagicEffect(getThingPos(cid), 18) local shi = doCreateMonster("Shiny ".. getCreatureName(cid) .."", getThingPos(cid)) setPlayerStorageValue(shi, 74469, 1) setPlayerStorageValue(cid, 74469, 1) doRemoveCreature(cid) else setPlayerStorageValue(cid, 74469, 1) end else return true end end function onSpawn(cid) registerCreatureEvent(cid, "GeneralConfiguration") registerCreatureEvent(cid, "DirectionSystem") registerCreatureEvent(cid, "CastSystem") if isSummon(cid) then registerCreatureEvent(cid, "SummonDeath") return true end registerCreatureEvent(cid, "Experience") addEvent(doPokemonRegisterLevel, 5, cid) addEvent(doSetRandomGender, 5, cid) addEvent(doShiny, 10, cid) return true end
-
fica no arquivo configuration.lua na pasta lib ja encontre podem fechar o tópico
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.