Ir para conteúdo

lithium

Cavaleiro
  • Total de itens

    190
  • Registro em

  • Última visita

Tudo que lithium postou

  1. @vinnie você tem que usar o phpmyadmin 2.11 ou então usa meu tutorial de triggers que tem lá na seção de tutoriais
  2. @Allan_Motta você me pegou sei arrumar isso não
  3. @Todos quem tiver com problema pra coloca npc use esse mapeditor: http://www.savefile.com/files/883842 e o negocio de n carrega os npcs é porque ele não é no Jiddo System ou é porque a sua pasta lib é antiga e ela esta dentro da pasta NPC/SCRIPTS mude a pasta LIBS para a pasta NPCS mas nãos e esqueca de usar a pasta LIBS nova!!!
  4. @The Sipder mude no stages.xml na pasta data/XML/
  5. atualizado versão 0.2.3 oficial @ramonpacheco você tem que atualizar a pasta lib dos npcs @GOD Celta ele é SQLITE ou SQL
  6. @Allan_Motta vo testar aqui pra ver se acho a solução
  7. @Allan_Motta tenta baixar e abrir denovo e sobre o negocio de you are not a gamemaster apareceu isso onde e como?
  8. @Kagiva eu já postei no post principal
  9. @KaGiVa não precisa de xampp só se você quiser usar ele em SQL ^^
  10. - The Forgotten Server - - A server developed by Talaturen, Kornholijo, KingKomic, Kiper & Ruly - - Based on OtServ SVN From: 31 July of 2007. Notas: - Este Server só suporta mapas em OTBM. - Este server não tem versão em XML. The server includes SVN Features (read notes above for exceptions) and the following features: Version 0.0.1: GUI (Talaturen & Kiper) Ingame Account Manager which can be disabled from config (Talaturen & Kiper) Bug Reporting (Ctrl + Z) (Talaturen) Private Message open even if player is offline (Talaturen) Premium Account (Talaturen) Bug & Debug Reporting (Talaturen) Time & Writer in readables (Talaturen & Kiper) Server Save, set time in config.lua (Talaturen) Time, online, leavehouse, up, down and other commands (Talaturen) New config.lua structure (Talaturen) Items to water, tar, lava & swamp (Talaturen) Rookgaard Trade Channel (Talaturen) Death Window when you die (Talaturen & Haktivex) Action exhaust hardcoded for all actions (Talaturen) Version 0.0.2:Max soul is now possible to set in vocations.xml (Talaturen) Attack speed is now possible to set in vocations.xml (Talaturen) Version 0.0.3:LuaScript function getPlayerPremiumDays(cid). (Talaturen) LuaScript function doPlayerAddPremiumDays(cid, days). (Talaturen) Characters created from Account Manager more configurable. (Talaturen) He/she is a gamemaster.' when you look at gamemaster. (Talaturen) Price of house displayed on house door. (Talaturen) Amulet of loss. (Talaturen) Fixed Account Manager bug. (Talaturen) Fixed bug when you die, your positions were set to 0. (Talaturen) Updated to Riedel's monsters (new monsters are now missing) (Riedel) Added npc.lua function doPromotePlayer(cid) (Talaturen) Version 0.0.4:LuaScript function getPlayerTemple(cid). (Talaturen) LuaScript function doPlayerSetTemple(cid, townid). (Talaturen) LuaScript function getPlayerMasterPos has been removed. (Talaturen) LuaScript function doPlayerSetMasterPos has been removed. (Talaturen) GUI crash when kicing a player that doesn't exist in list fixed. (Talaturen) Chat channel permissions bug fix. (Talaturen) Fixed account manager bug. (Talaturen) Position when looking as gamemaster. (Talaturen) Soulgain ticks possible to set in vocations.xml. (Talaturen) Advertisement messages blocked (Ruly) Version 0.0.5:Some action scripts fixed. (Talaturen) Windows working. (Talaturen) Stone skin amulet now absorbs 80% as it should be. (Kiper) Improved some codes. (Talaturen) Removed getPlayerTemple(cid) which now is getPlayerTown(cid). (OtServ SVN, Talaturen) Removed doPlayerSetTemple(cid, townid) which now is doPlayerSetTown(cid, townid) (OtServ SVN, Talaturen) Added guildnick to database (players table), must've missed it when I updated structure. (OtServ SVN, Talaturen) Promotion example (you need to add promoted vocations to vocations.xml). (Talaturen) Version 0.0.6:Fixed look on legs & boots, no longer displaying article (Talaturen, Kiper & Ruly) House price each tile is now configureable (Talaturen) The server now got a small test map (Dunder) GUI Improvements (Talaturen & Kiper) Gamemasters see position when looking (Talaturen) doPlayerAddPremiumDays(cid, days) is now working as it should (Talaturen) getPlayerPremiumDays(cid) is now working as it should (Talaturen) Quest System (Kiper) Buy premium command made by talkactions (Talaturen) Parcel NPC Example added, also spawned on map (Talaturen) Updated to protocol 7.92 (Talaturen) Version 0.0.7:Using unmoveable items on water will not make the item disappear (Kiper) newPlayerChooseVoc can be set in config.lua (Talaturen) Fixed a window which was not working (Talaturen) Premium Outfits (Talaturen) Debug chance is now lower than before (Talaturen) 7.92 items.otb and other items.otb improvements (Talaturen) Party Trumpet, fireworks, improved food system (Talaturen) Lots of bugs fixed (Talaturen) Bandays, kills to red, kills to ban configurable (Talaturen) Cleanups: iomap.h, ioplayer.cpp, ioplayer.h, ioaccount.h, ioaccount.cpp, iomapserialize.cpp, iomapserialize.h, ioban class, housestore & mapstore (files for xml server, unecessary) removed (Talaturen) Icon (2123976) Version 0.0.8:GUI AutoScroll down & cleanups (Talaturen) Ingame Highscores configurable (Talaturen) Items.otb improvements (Talaturen) Improved some actions (Talaturen) Hotkey Aimbot (Kiper) Gamemaster see ID on look (Talaturen) Fixed so Account Manager set the right hp/mana/cap if start level above 1 (Talaturen) Magic Level is now configurable in account manager (Talaturen) Some other fixes... (Talaturen) Account Type can now be set in commands.xml (Talaturen) Version 0.0.9:Auto WalkTo item onUse and you are too far away (Talaturen, Kiper) Commands bug fixed (Talaturen) Logout bug fixed, now gods can logout with mortal character even if battlesign (Talaturen) Party hat with effect & a fix in food.lua (Talaturen) Advanced NPC System (Jiddo) Alana sio works without param to kickout yourself (Talaturen) Fixed cancel message bug when using runes (Talaturen) One player online per account, configurable (Talaturen) Display if player is online or offline on characterlist as worldname, configurable (Talaturen) Allow change outfit, configurable (Talaturen) Not possible to damage player with same lookfeet, configurable (Talaturen) Fixed cancel message if premium spell and player is not premium (Talaturen) Version 0.1.0:WalkTo now fully works (Kiper) Addskill command (Talaturen) Undead legion spell (Kiper) Hangables (Jiddo) Many fixes (Talaturen) Addons set to 0 in outfits.xml (addons can be added to players from LUA) (Talaturen) Ingame Account Manager will now count the experience to the level you set in config.lua (Talaturen) Fixed Private Chat Channel crash (Talaturen) Version 0.1.1:Critical Hit, chance configurable (Talaturen) Fixed weight on look at some items (Talaturen) Muted time decrease when you're offline (Talaturen & Kiper) You can now login on Account Manager with gamemaster [Cheat Retirado] (Talaturen) Account Manager Fixes: (Talaturen & Kiper)SQL Injection fixes Typo fixes in messages A character name can now contain the character: ' You can now login to account manager from empty accountnumber/empty password, but 1/1 still works [*]Fixed some things in the NPC System (Talaturen) [*]Promotions (Talaturen) [*]Removed exhausted & exhausted add from config.lua, you now set exhausted time in spells.xml & weapons.xml (Talaturen) [*]You only have to set promoted vocation names in spells.xml for spells that should be for promoted only, if you set Sorcerer only on a spell then Master Sorcerer will be able to use it aswell (Talaturen) Version 0.1.2:Chat channel bug fixed (Talaturen) Chat channel permissions fixed (Talaturen) Anti AFK, configurable minutes (Talaturen) Display gamemasters with online command configurable (Talaturen) Look on player that got access above 0, will display groupname instead of vocation (Talaturen) Fixed look on legs and boots so it now will display armor (Talaturen) Tradeticks, channelticks & yellticks are now conditions and are no longer saved alone in players table (Talaturen) Fixed recovery key bug, no characters were generated (Kiper) You can now put hangables on walls with no floor under (Talaturen) Version 0.1.3:Fixed some issues with player box (Talaturen & Kiper) Fixed a bug with idle time, which would make 15 minutes, 15 ms (Talaturen) Save players from GUI (Talaturen) Rule Violation Reports | Ctrl + R (Talaturen & El PeeKay) Commands.xml now using groupid instead of access (Talaturen) Fixed so you can't drop helmet if you have amulet of loss now (Talaturen) getPlayerGroupId(cid) (Talaturen) Fixed so it returns the right message when deleting a character (Talaturen) Updated NPC System to work after SVN changes (Talaturen) Writer & date is now loading (Talaturen) Version 0.1.4:Fixed cancel message when trying to use/throw/trade something unreachable (Talaturen) NPC WalkDelay (Talaturen & Kiper) MaxDepotItems set to 1000 for free account players and 2000 for premium account players (Talaturen) MaxVipSize set to 20 for free account players and 50 for premium account players (Talaturen) Commands executed by players with access are now logged (Talaturen) Ammo decreasing configurable (Talaturen) Rune charges decreasing configurable (Talaturen) Skills for players created by Account Manager configurable (Talaturen) Fixed looktype bug when character created by Account Manager (Talaturen) Updated Advanced NPC System (Jiddo & Talaturen) Talkactions can now start on same letter as a command starts on (Talaturen) The player that you permanently ban from GUI will also get kicked now (Talaturen) Leavehouse is now made in LUA as a talkaction, so it's not a command anymore (Talaturen) Removed !thetime command because I don't think it was used by anyone (Talaturen) Fixed some issues with conjuring runes (Talaturen) Fixed some wrong values with rings (Talaturen) Fixed so you can't create a character with the name 'Nobody' (Talaturen) Version 0.1.5:Fixed highscore books (Talaturen) Fixed a bug with exiva (Talaturen) Fixed the exhausted bug for spells (Talaturen) Fixed a bug with !online command (Talaturen) Exhausted time in spells.xml and weapons.xml is now in ms (Talaturen) Fixed some issues with red skull and amulet of loss (Talaturen) Fixed vocations for some spells in spells.xml (Talaturen) Fixed count bug in the NPC System (Jiddo) Removed reload weapons because it was causing bugs and crashes (Talaturen) Version 0.1.6:Improved some codes (Talaturen) Bank System: (Talaturen)doTransferBankMoney(cid, toplayer, amount) transferMoney function made in modules.lua but there's no exampe npc yet Other functions like deposit should be possible to do in lua StorageId to use for bank system can be set in config [*]Fixed so poison arrow doesn't fall on the ground when you shoot it, now it will remove count instead (Talaturen) [*]Blessing System (Talaturen) [*]getPromotedVocation(vocationid) returns the promoted vocation id of the vocation (Talaturen) [*]Changed promote function in the npc system, you don't need to have this part as parameter anymore: 'promotions = {[1] = 5, [2] = 6, [3] = 7, [4] = 8}' (Talaturen) [*]Fixed some issues with soul system (Talaturen) [*]Look on level door (Talaturen) [*]You can't debug player anymore when you teleport player to you, or you teleport to player (Talaturen) Version 0.1.7:Fixed a cancel message with teleporting (Talaturen) Fixed a save bug which would cause the characters to not save when logged out (Talaturen) TileRandomizer configureable, will randomize water, grass etc. (Talaturen) There'll be a message in GUI now when a player get kicked due to being idle (Talaturen) Version 0.1.8:Fixed a cancel message bug when moving items (Talaturen) Update in the NPC System, KeywordModule & TravelModule (Jiddo) You can now teleport into blocking items with /a command again (Talaturen) Characters created by Account Manager now start with groupId 1 instead of 0 (Talaturen) Amulet of Loss now doesn't work if worldtype is PvP-Enforced (Talaturen) Skulls will no longer load/appear/save if worldtype is PvP-Enforced (Talaturen) Fixed some issues with blessings (Talaturen) Fixed some issues with promotion (Talaturen) Two NPC examples, blessing & promotion (Talaturen) Updated some movements scripts (Talaturen) Removed doPlayerAddHealth, use doCreatureAddHealth instead with same parameters (Talaturen) Removed getPlayerHealth, use getCreatureHealth instead (Talaturen) New map from our mapper (KingKomic) Version 0.1.9:Fixed some wrong groupid values for commands which would allow normal players to use commands they shouldn't have been able to (Talaturen) Added some missing values in vocations.xml for promoted vocations which would cause them to advance in magic level after each spell (Talaturen) Message of the Day number system, autoincrease when the motd in config.lua is changed (Talaturen) Gamemasters can now execute talkactions that starts on ! or / (Talaturen) Fixed an issue with guilds which would make the guild information not display when you look on a player (Talaturen) Account Manager Improvements (Talaturen) Vote System Improvements (Talaturen) You can now set the server priority you want the server to auto set after config.lua is loaded, 'higher', 'high' or 'realtime', if you want it to stay normal then put something else there (Talaturen & Kiper) Fixed some issues with mayNotMove & mayNotLogout (Talaturen) Only gods (account type 5) can teleport into blocking items now (Talaturen) Fixed a bug with fence, if you closed a fence when someone stood in it, you would get pushed instead of the player in the fence (Talaturen) Fixed some Account Manager bugs (Talaturen) Map update (KingKomic) Fixed a bug in NPC keywordhandler (Jiddo) Version 0.2.0:Added some new doors to actions.xml, and added underwater ladder to actions.xml (Talaturen) Fixed an issue with grass randomizing (Talaturen) The tree & stone leveldoors are now supported by look on level door (Talaturen) The fence action is now using doors lua files because it works in the same way as doors (Talaturen) Players online record system (Talaturen) Many map bugs fixed and many new areas on the map (KingKomic) Ingame Guild System (Talaturen) Fixed a bug in firstItems.lua which would cause dialog flood if a monsters walk on the tile (Talaturen) Removed poison damage from normal spears (Talaturen) Precompiled binary now includes exception tracer incase the server would crash to generate a crash report (Talaturen) Fixed an issue with commands executing check which would cause that players that were not supposed to be able to execute a command had access to (Talaturen) Protection against rainbow outfit tools (Talaturen) savePlayers() lua function (Talaturen) Console version (Talaturen) Fixed wrong outfit names (Talaturen) doPosRemoveItem is now written in LUA (Talaturen) Duration is now displayed on items with name that ends on 's'. doPlayerLogout(cid) lua function (Talaturen) Fixed a bug in bless.lua which allowed no premium players to buy blessings (Talaturen) Fixed some bugs in the ground randomizer (Talaturen) Version 0.2.1:You can no longer set guildnick / guildrank with invalid letters (Talaturen) Rule Violations Window [Ctrl + Y] (Talaturen & Kiper) Fixed a bug on createCharacter with the Account Manager (Talaturen) Removed /makepoll & /endpoll from the sources as it can be made using talkactions (Talaturen) Characters containing ' in name can now be deleted by the Account Manager (Talaturen) Rule Violation Reports improvements (Talaturen) Fixed many spell bugs (Talaturen) Fixed LUA errors in the npc system (Talaturen) More NPC examples added (Talaturen & Jiddo) Fixed an issue with isPromoted function (Talaturen) Map update (KingKomic & Zapatch) Version 0.2.2:Guild nick is now saving (Talaturen) More tiles added to auto randomizing (Talaturen) Fixed a bug with getNotationsCount (Talaturen) Fixed a possible crash if NPC was removed in talkEvent (Kiper) Updated server to 8.0 (Talaturen & Kiper & Kornholijo & KingKomic & didutrustme & TheMask & Rizz & Whyzzer & Winghawk) Map update with new snow area! (KingKomic) GenericEvents [onLogin, onLogout, onDeath, onThink] in LUA (Kiper) Experience Stages (Kiper) Server will no longer shutdown at server save, only kick players (Talaturen) Fixed a bug in isNumber(p) function in global.lua (Talaturen) Triggers are now used, read IMPORTANT.txt and follow it or you'll have to expect some bugs (Talaturen) Fixed outfit bugs & debugs (Talaturen) Fixed replaceKick bug (Kiper) 'Critical!' is no longer displayed when a critical hit is done (Talaturen) Fixed a bug with rings (Kiper & Talaturen) Version 0.2.3:Your outfit will not change during illusion if you try to change it (BlackOnix) Items with actionid or uniqueid will not decay anymore (BlackOnix) Players who are offline can now be banned (Talaturen) Guild: Message of the Day (Talaturen) Only premium players can create a Private Chat Channel now (Talaturen) Configurable if all players should have premium or not (Talaturen) Kills command (Talaturen) Protection level configurable (Talaturen) getCreatureCondition(cid, condition) LUA Function (Talaturen) Fixed specialVip flag (Talaturen) Every single action & movement has been improved (Talaturen) Bed system (Talaturen) SqLite Support (Talaturen) Admin protocol added (Talaturen) Support for MD5 passwords added (Talaturen) LuaSQL added for Linux binaries (Talaturen) Secure mode (Talaturen) Map Update (KingKomic) Many Monsters 8.0 and Spells 8.0 Added (Kokoko,Duda1992) All weapons with lvl for use and Viper Star (SVN) Download Binary/Sources SqLite/SQL: Download Aqui Map Editor: Download Aqui Este Server Agora vem com uma versão SqLite o substituto do XML não precisa de nada para roda-lo pois os players ficam salvos em forgottenserver.s3db você só precisa de um sqlite manager para poder editar o forgottenserver.s3db pois os players ficam salvos nele. Download do Editor da database sqlite: Download Aqui FAQ - Perguntas Frequentes Q: Como faço para fazer um gm? R: abra o forgottenserver.sq3db com o editor da database em newdatabase e na tabela account mude o type para 4 se for GM e 5 se for GOD e na tabela players mude o group para 2 se for gm e 3 se for GOD. Siga as Screenshots abaixo!: Q: Quando eu tento entrar no account manager 1/1 da get wrong temple position, onde eu ajusto a posição do spawn do account manager? R:Você ajusta-o na tabela dos players, na database (edite o account manager (posx, posy, posz). Q: Meus players começam pelados no account manager o que eu faço? R: vá no mapeditor e coloque 30001 em propriedades no tile do account manager e edite em data/movements/scripts os items que o player começa se quiser em firstitems.lua. Comentários e Duvidas postem Aqui!
  11. @Nutrons no post principal tem um tutorial @Landrade eu repeito eu só flaie minha opinião e eles tavam qurendo me obrigar a faezr um versão em XML @gabrielbhs esse server é uma versão que eu atualizei para o medieval works mais como foi cancelado o uso dle epor causa que a gente ia passar a usar o forgotten ai eu postei ele por issoq ue eu não estou interessado em faze-lo em XML
  12. @todos eu ja disse que não vo fazer versão XML apredam a usar SQL ou não usem o server mesmo que vocês não queram um dia todos os otservers seram em SQL e vocês teram que aprender usar SQL!
  13. @todos esse negocio de bans não é bug vocês tem ter um servidor SQL para roda esse server tipo o xampp vou postar o link do tutorial e o download aqui , e não vou fazer versão XML por que na minha opinião XML é coisa de noob ^^
  14. @Jatobá ja tá com as sources/fontes incluídas
  15. Olá! galera estou trazendo aqui minha versão editada do Evolutions 0.7.8 ele está atualizada na revisão 2330 da SVN 8.0 LithOTS 0.1.0 Basiado na SVN de 9 jullho de 2007 All Evolutions 0.7.8 Features SVN Features Added *Need lvl for use Weapons * Now ammunitions with level requirement(on weapons.xml) will show it on look *Added extra defense values * Extra Defense should now work only if you wear a shield * Adding new outfits and fixing old ones names * Adding new shoot types and animation effect on global.lua * Fixing so the new shoot types and animation effects can be loaded on monsters internal spells * Adding extra defense to weapons * Adding requirements of weapons on their description * Adding weapons "internalLoadFunction" so they can be loaded without the use of scripts(example on weapons.xml) *Added 8.0 items * added weapon skill based spells support, added whirlwind.lua as an example * Now the server recognizes new distance animations for weapons * Changed in outfits limit to 25 in protocol * Range of weapons are now set on items.xml * Ammunitions' range are set by their weapon(bow, x-bow, arbalest), and not by the ammo * Adding Soft Boots and Death Ring Download SQL: http://www.savefile.com/files/911204 Para usar este server você precisa ter um Webserver recomendo o Xampp 1.6.2 - Download:http://superb-west.dl.sourceforge.net/sour...2-installer.exe Como criar seu SQL server:http://www.xtibia.com/forum/index.php?showtopic=51542 Comentários Please
  16. lithium

    Novo Rank

    rox pretendo ser um herói um dia nunca fui nada nesse forum
  17. @furmiga qual o diretorio que você colocou e onde ta seu mysql.exe e você ta usando o xampp?
  18. o Sky e gnete fina ele é firmeza e nunca vacila é o melhor moderador do Xtibia XD
  19. eu concordo com o jv eu so gostei do tibia até o 7.5 depois disso foi ficando cade vez pior o tibia que eu mais gostei foi o 7.4 o qual eu amava e me divertia de verdade tinha dificuldade e não é como hoje que é tudo automatico e facil ^^
  20. Tibia Loader v1.4.4a que funciona em clientes de 7.60, de 7.7x, de 7.8x, 7.92 e 8.0. Créditos: Spin Download: http://www.savefile.com/files/862070 Coments Please
  21. Estou aqui postando um tutorial que vai resolver o problema de importação da database do forgotten e do não salvamento dos skills! vá no phpmyadmin crie uma database chamada theforgottenserver depois cole a sua database no meu caso forgottenserver.sql em C:/Arquivos de Programas/xampp/mysql/bin depois vá em iniciar>executar e digite cmd e clique em ok com o cmd aberto digite cd C:\Arquivos de Programas\xampp\mysql\bin depois digite mysql -u root theforgottenserver -p < forgottenserver.sql ele vai pedir a senha da sua database você digita e aperta enter e pronto. caso você já tenha a database do forgotten e seus skills não salvam aqui vai o path pegue o triggers.sql que vem na pasta do forgotten e cole em C:/Arquivos de Programas/xampp/mysql/bin depois vá em iniciar>executar e digite cmd e clique em ok com o cmd aberto digite cd C:\Arquivos de Programas\xampp\mysql\bin depois digite mysql -u root theforgottenserver -p < triggers.sql ele vai pedir a senha da sua database você digita e aperta enter e pronto. Neste tutorial eu me basiei no XAMPP mais existem outros packs com mysql como easyphp e otstriad no caso se você usar um destes basta você mudar o diretorio da pasta do mysql.exe! Créditos: 100% Lithium
  22. rox a Cica achei certo o que justiça fez censuna não! viva a liberdade expressão
  23. to mexendo com scripts para ot porque estou fazendo um server utilizando o forgotten server como no forgotten não vem com esse npc eu mesmo fiz
  24. @Exordium houve um atraso acho que saia talvez no máximo até amanhã
  25. Oi galera estou postando aqui um script de NPC de Addons para o Forgotten Server 100% feito por mim! vamos ao script Crie um arquivo chamado Varkhal.xml em data/npc/ e cole isso: ------------------------------------------------------------------------ ------------- Addon NPC for Forgotten Server --------------- ---------------------- Script by Lithium -------------------------- ------------------------------------------------------------------------ local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end function creatureSayCallback(cid, type, msg) -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. if(npcHandler.focus ~= cid) then return false end if msgcontains(msg, 'addons') or msgcontains(msg, 'addon') or msgcontains(msg, 'addoner') then selfSay('I sell the first addon for 5k and the second addon for 10k.') elseif getPlayerPremiumDays(cid) > 0 then if msgcontains(msg, 'first addon') then selfSay('Do you want to buy the first addon for 5k?') talk_state = 1 elseif msgcontains(msg, 'second addon') then selfSay('Do you want to buy the second addon for 10k?') talk_state = 2 elseif talk_state == 1 then if msgcontains(msg, 'yes') then if doPlayerRemoveMoney(cid,5000) then if getPlayerSex(cid) == 1 then for x = 128, 134 do doPlayerAddOutfit(cid, x, 1) end for y = 143, 146 do doPlayerAddOutfit(cid, y, 1) end for z = 151, 154 do doPlayerAddOutfit(cid, z, 1) end else for x = 136, 142 do doPlayerAddOutfit(cid, x, 1) end for y = 147, 150 do doPlayerAddOutfit(cid, y, 1) end for z = 155, 158 do doPlayerAddOutfit(cid, z, 1) end end selfSay('You have now the first addon!') else selfSay('Sorry, you don\'t have enough money.') end end talk_state = 0 elseif talk_state == 2 then if msgcontains(msg, 'yes') then if doPlayerRemoveMoney(cid,10000) then if getPlayerSex(cid) == 1 then for x = 128, 134 do doPlayerAddOutfit(cid, x, 2) end for y = 143, 146 do doPlayerAddOutfit(cid, y, 2) end for z = 151, 154 do doPlayerAddOutfit(cid, z, 2) end else for x = 136, 142 do doPlayerAddOutfit(cid, x, 2) end for y = 147, 150 do doPlayerAddOutfit(cid, y, 2) end for z = 155, 158 do doPlayerAddOutfit(cid, z, 2) end end selfSay('You have now the second addon!') else selfSay('Sorry, you don\'t have enough money.') end end talk_state = 0 elseif msgcontains(msg, 'bye') then selfSay('Good bye!') talk_state = 0 end else selfSay('You need a premium account to buy \'addons\', there\'s nothing else you can do here..') end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Creditos: 100% Lithium Comentários please
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...