Ir para conteúdo

viollatorz

Campones
  • Total de itens

    14
  • Registro em

  • Última visita

Tudo que viollatorz postou

  1. eu sei que aqui nao é area pra isso mas o xmidia nao ta funcionando a um tempao, e faz tempo que eu tava querendo comprar anuncio aqui com voces, eu mandei pm faz umas semanas já mas n obtive retorno
  2. nao ta funcionando mesmo nao, faz 1 mes que estou tentando comprar
  3. alguem sabe como passa ele pra 8.6?
  4. queria saber se essa distro ja está estavel para rodar com grande numero de jogadores ja testaram?
  5. eu achei a solução pra ele e vou passar exclusivamente aqui no forum, pois foi muito trabalhoso, tive que trocar todos os arquivos do meu NPC LIB pois estavam desatualizado, de npc.lua a modules.lua, é o unico jeito de resolver e não sao poucos que conseguem pois depois de trocar a pasta lib dos npcs vc precisa modificar varios npcs antigos que nao sao compativeis com o novo sistema de npcs.
  6. tem que usar o remeres 1.1.10 com o items.otbm do seu otserv 8.6.
  7. @up bom esse negocio de morrer um bicho e se transformar em outro é simples de arrumar no items.xml se vc n souber vc pode baixar um items.xml se n tiver aqui no forum procura no google que ja deve ter atualizado pra 8.6, ja esse bug de contar 100 sds qd vc tem 200 é um pouco mais complicado, o meu está assim tb vou tentar arrumar se eu conseguir edito esse post.
  8. eu tenho o link pra download dos lizards e gastly iguais tibia mas acho que eh proibido postar link de outro forum aqui né? vou ver se upo pro pessoal.
  9. doidin, o problema do parcel era na distro? tem como vc falar onde era o problema?
  10. toda vez que tento editar seu mapa aqui no remeres 2.0 quando salvo ele e entro no ot fica com bugs com varios sprites errados como vc faz pra salvar ai? sendo que eh 8.57 e usamos no 8.6? ahh e outra coisa, vc n vai mais atualizar o mapa? que se n vo começar editar eu aqui mesmo. a e nesse creature script da inquisition oque o tirecz ta fazendo nele? e o golgordan n precisa?
  11. quem vai querer esse ot? aehiuaheaheu
  12. ta com problema no teleporte que sai do trono do bazir nao tem coordenadas, e a porta que usa pra entrar na arena de zao ta sem uniqueid, num vo mexe aqui pq sempre acabo usando seu mapa
  13. os npcs nao estao comprando nenhum item empilhavel nem joias nem panos nem potions vazios, so compram de 1 em 1 alguem sabe resolver?
  14. é cara esse negocio de virus começou ficar serio, hoje depois que meu kaspersky atualizou tb indicou um trojan no GUI, o console.exe segundo o kaspersky ainda está limpo, nao tinha rodado nenhuma vez o GUI por isso estou sussegado aqui estou usando apenas o console, mas essa versao está excelente nao tem bug do follow, aconselho demais baixar ela, pelo menos console segundo kaspersky está limpo.
  15. aqui está pegando sim o sistema de frags, deve ser algo no config.lua que uso de outra versao. provavelmente naquela parte de advancedFragList = true agora unico bug mesmo que estraga o server é o bug do follow provavelmente da distro, o resto a gente arruma
  16. Olha está ficando muito bom seu otserv, mas esse lugar de treinar novo está péssimo, no meu eu colei o local antigo de treinamento porque quando vc vai para esses treiner novo vc é teleportado pra um local meio inacabado, npcs sem bancada, vc cai numa area de chao branco sem nada em volta, como é o primeiro local que as pessoas acessam no ot, faz elas pensarem que é ot de segunda quando nao é, vc deve estar arrumando justamente essa parte agora, só estou falando porque o antigo era melhor, n tinha porque mudar. Agora oque interessa, o sistema de task está com problemas se vc falar com Grizzly Adams ele nem responde. E da a seguinte mensagem no console [28/07/2010 01:36:24] [Warning - Error::Killing in the name of::Tasks config] Something is wrong. Depois tento arrumar ela porque agora estou fazendo o website, se alguem resolver o problema posta a soluçao aqui no forum.
  17. e pra terminar se vc criar essas vocações novas qualquer um poderá criar pelo account manager, ele pega automatico todas vocações criadas flww
  18. vo postar um sample que funciona no aries e no thyrania quem tiver com problemas de n conseguir abrir o ot eh so usar ele -- -- -- Host: localhost Database: otserv -- ------------------------------------------------------ -- Server version 4.1.12a-nt USE `otserv`; -- -- Table structure for table `accounts` -- DROP TABLE IF EXISTS `accounts`; CREATE TABLE `accounts` ( `id` int(11) NOT NULL auto_increment, `accno` int(11) unsigned NOT NULL default '0', `password` varchar(32) NOT NULL default '', `type` int(11) NOT NULL default '0', `premDays` int(11) NOT NULL default '0', `email` varchar(50) NOT NULL default '', `blocked` tinyint(4) NOT NULL default '0', UNIQUE KEY `id` (`id`), KEY `accno` (`accno`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `accounts` -- LOCK TABLES `accounts` WRITE; INSERT INTO `accounts` VALUES (1,1,'test',0,0,'',0); UNLOCK TABLES; -- -- Table structure for table `items` -- DROP TABLE IF EXISTS `items`; CREATE TABLE `items` ( `player` int(11) NOT NULL default '0', `slot` tinyint(4) NOT NULL default '0', `sid` int(11) NOT NULL default '0', `pid` int(11) NOT NULL default '0', `type` int(11) NOT NULL default '0', `number` tinyint(4) NOT NULL default '0', `actionid` int(5) NOT NULL default '0', `text` text NOT NULL default '', `specialdesc` text NOT NULL default '', KEY `player` (`player`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `items` -- LOCK TABLES `items` WRITE; INSERT INTO `items` VALUES (1,0,15,14,1968,0,0,'MySQL test',''),(1,0,14,13,2594,0,0,'',''),(1,101,13,0,2590,0,0,'',''),(1,10,12,0,2544,100,0,'',''),(1,9,11,0,2169,0,0,'',''),(1,8,10,0,2195,0,0,'',''),(1,7,9,0,2477,0,0,'',''),(1,6,8,0,2542,0,0,'',''),(1,5, 7,0,2419,0,0,'',''),(1,4,6,0,2653,0,0,'',''),(1,0,5,3,2456,0,0,'',''),(1,0,4,3,2544,100,0,'',''),(1,3,3,0,2002,0,0,'',''),(1,2,2,0,2199,0,0,'',''),(1,1,1,0,2496,0,0,'',''); UNLOCK TABLES; -- -- Table structure for table `guilds` -- DROP TABLE IF EXISTS `guilds`; CREATE TABLE `guilds` ( `guildid` int(11) NOT NULL auto_increment, `guildname` varchar(100) NOT NULL default '', `ownerid` int(11) NOT NULL default '0', PRIMARY KEY (`guildid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `players` -- DROP TABLE IF EXISTS `players`; CREATE TABLE `players` ( `id` int(11) unsigned NOT NULL auto_increment, `name` varchar(32) NOT NULL default '', `access` int(11) NOT NULL default '0', `account` int(11) NOT NULL default '0', `level` int(11) NOT NULL default '0', `vocation` int(11) NOT NULL default '0', `cid` int(11) NOT NULL default '0', `health` int(11) NOT NULL default '0', `healthmax` int(11) NOT NULL default '0', `direction` int(11) NOT NULL default '0', `experience` int(11) NOT NULL default '0', `lookbody` int(11) NOT NULL default '0', `lookfeet` int(11) NOT NULL default '0', `lookhead` int(11) NOT NULL default '0', `looklegs` int(11) NOT NULL default '0', `looktype` int(11) NOT NULL default '0', `maglevel` int(11) NOT NULL default '0', `mana` int(11) NOT NULL default '0', `manamax` int(11) NOT NULL default '0', `manaspent` int(11) NOT NULL default '0', `masterpos` varchar(16) NOT NULL default '', `pos` varchar(16) NOT NULL default '', `speed` int(11) NOT NULL default '0', `cap` int(11) NOT NULL default '0', `maxdepotitems` int(11) NOT NULL default '1000', `food` int(11) NOT NULL default '0', `sex` int(11) NOT NULL default '0', `guildid` int(11) unsigned NOT NULL default '0', `guildrank` varchar(32) NOT NULL default '', `guildnick` varchar(32) NOT NULL default '', `lastlogin` int(11) unsigned NOT NULL default '0', `lastip` int(11) unsigned NOT NULL default '0', `save` int(11) unsigned NOT NULL default '1', `redskulltime` int(11) unsigned NOT NULL default '0', `redskull` tinyint(1) unsigned NOT NULL default '0', UNIQUE KEY `id` (`id`), KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `players` -- LOCK TABLES `players` WRITE; INSERT INTO `players` VALUES (1,'Hurz',1,1,18,1,675,840,840,2,76000,20,30,40,50,128,20,640,640,21700,'20;20;7','29;30;7',900,300,1000,129,1,0,'','',0,0,1,0,0); INSERT INTO `players` VALUES (2,'Player',0,1,18,1,675,840,840,2,76000,20,30,40,50,128,20,640,640,21700,'27;23;7','27;23;7',900,300,1000,129,1,0,'','',0,0,1,0,0); UNLOCK TABLES; -- -- Table structure for table `playerstorage` -- DROP TABLE IF EXISTS `playerstorage`; CREATE TABLE `playerstorage` ( `player` int(11) NOT NULL default '0', `key` int(11) unsigned NOT NULL default '0', `value` int(11) NOT NULL default '0', KEY `player` (`player`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `playerstorage` -- LOCK TABLES `playerstorage` WRITE; INSERT INTO `playerstorage` VALUES (1,1000,4); UNLOCK TABLES; -- -- Table structure for table `skills` -- DROP TABLE IF EXISTS `skills`; CREATE TABLE `skills` ( `player` int(11) NOT NULL default '0', `id` tinyint(4) NOT NULL default '0', `skill` int(11) unsigned NOT NULL default '0', `tries` int(11) unsigned NOT NULL default '0', KEY `player` (`player`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `skills` -- LOCK TABLES `skills` WRITE; INSERT INTO `skills` VALUES (1,6,10,0),(1,5,10,0),(1,4,10,0),(1,3,10,0),(1,2,10,0),(1,1,10,0),(1,0,10,0); UNLOCK TABLES; -- -- Table structure for table `viplist` -- DROP TABLE IF EXISTS `viplist`; CREATE TABLE `viplist` ( `player` int(10) unsigned NOT NULL default '0', `vip_id` int(10) unsigned NOT NULL default '0', KEY `player` TYPE BTREE (`player`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Table structure for table `tile_items` -- CREATE TABLE `tile_items` ( `tile_id` int(11) NOT NULL default '0', `sid` int(11) NOT NULL default '0', `pid` int(11) NOT NULL default '0', `itemtype` int(11) NOT NULL default '0', `count` int(11) NOT NULL default '0', `attributes` blob, KEY `tileid` (`tile_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Table structure for table `tiles` CREATE TABLE `tiles` ( `id` int(11) unsigned NOT NULL default '0', `x` int(11) unsigned NOT NULL default '0', `y` int(11) unsigned NOT NULL default '0', `z` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `x` (`x`,`y`,`z`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Table structure for table `house_lists` -- CREATE TABLE `house_lists` ( `house_id` int(10) unsigned NOT NULL default '0', `listid` int(10) unsigned default '0', `list` text, KEY `houseid` (`house_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `houses` -- CREATE TABLE `houses` ( `id` int(10) unsigned NOT NULL default '0', `owner` int(10) unsigned default '0', `paid` int(10) unsigned default '0', `warnings` int(10) unsigned default '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `houses` -- CREATE TABLE `houseaccess` ( `houseid` int(10) unsigned NOT NULL default '0', `listid` int(10) unsigned default '0', `list` text, KEY `houseid` TYPE BTREE (`houseid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `bans` ( `type` int(10) unsigned NOT NULL default '0', `ip` int(10) unsigned NOT NULL default '0', `mask` int(10) unsigned NOT NULL default '0', `player` int(10) unsigned NOT NULL default '0', `account` int(10) unsigned NOT NULL default '0', `time` int(10) unsigned NOT NULL default '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; creditos pelo conserto by me.
  19. LEIAM para o pessoal que estiver com problemas com depósitos e tudo mais vá ao arquivo palmares.lua achem function deposit(cid, value) e substituam por function deposit(cid, value, xid) vlw flw
  20. PESSOAL QUE ESTIVER COM PROBLEMAS COM ESSE CÓDIGO LEIAM. eu consegui consertar o problema dele não devolver a arma é facil de fazer mas para cada arma em cada elemento você precisa repetir os passos, oque ocorre é que ele esqueceu de por a quantidade do item que vai ser devolvido para o player ou seja na hora de devolver uma war hammer encantada com energy ele vai devolver 0 war hammers de energy, todo esse transtorno pode ser evitado se vc for no naturee.lua energye.lua firee.lua e icee.lua e na função doPlayerAddItem adicionar uma virgula e o número 1 na parte onde diz a quantidade, ou seja no naturee.lua por exemplo estava assim doPlayerAddItem(cid,7854) se vc substituir por doPlayerAddItem(cid,7854,1) por exemplo já ira encantar a spike sword com nature, agora é so fazer isso com todas as armas de todos os elementos e pronto. Para quem não quer fazer isso apenas copie os códigos abaixo e substitua pelos antigos. Em icee.lua substitua todo o código por: --- ------------------------------------------------------ --- --- Inspired by stix360's npc trade item for item example. --- --- ------------------------------------------------------ --- --- -------------- Bugfixed by ----> Nahruto <---- ------- --- --- ------------------------------------------------------ --- --- -- The shit job was done by me, Luxitur, Znote[NOR] -- --- --- ----------- The hoster of Znote & WooTserv ---------- --- --- ------------------------------------------------------ --- local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello, I can enchant some weapons with my ice enchant technique, just say enchant if youre intrested.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ill talk you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'enchant') then selfSay('What weapon do you want to enchant to the ice version?') talk_state = 1 elseif talk_state == 1 then if msgcontains(msg, 'spike sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2383) --- spike sword if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2383,1) --- spike sword selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7763,1) --- Spike sword with ice enchant else selfSay('I need 60 platinum coins, 5 ice shards and borrow the spike sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'barbarian axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2429) --- barbarian axe if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2429,1) --- barbarian axe selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7768,1) --- barbarian axe with ice enchant else selfSay('I need 60 platinum coins, 5 ice shards and borrow the barbarian axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'relic sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7383) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7383,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7764,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the relic sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'blacksteel sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7406) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7406,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7766,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the blacksteel sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'dragon slayer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7402) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7402,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7767,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the dragon slayer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'mystic blade') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7384) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7384,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7765,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the mystic blade, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'knight axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2430) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2430,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7769,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the knight axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'heroic axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7389) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7389,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7770,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the heroic axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'headchopper') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7380) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7380,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7771,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the headchopper, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2454) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2454,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7772,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the war axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'clerical mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2423) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2423,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7773,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the clerical mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'crystal mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2445) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2445,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7774,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the crystal mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'cranial basher') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7415) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7415,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7775,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the cranial basher, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'orcish maul') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,7392) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,7392,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7776,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the orcish maul, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war hammer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2391) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2391,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7777,1) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the war hammer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'arrow') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,7290) --- 5 ice shards weap = getPlayerItemCount(cid,2544) --- weapon if plats >= 60 and ing >= 5 and weap >= 100 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,7290,5) --- 5 ice shards doPlayerRemoveItem(cid,2544,100) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7839,100) --- ice enchanted weapon else selfSay('I need 60 platinum coins, 5 ice shards and borrow the arrow, or else i cant enchant the weapon for you.') end end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Goodbye!') focus = 0 talk_start = 0 end end end end end end end end end end end end end end end end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end em firee.lua substitua todo o código por: --- ------------------------------------------------------ --- --- Inspired by stix360's npc trade item for item example. --- --- ------------------------------------------------------ --- --- -------------- Bugfixed by ----> Nahruto <---- ------- --- --- ------------------------------------------------------ --- --- -- The shit job was done by me, Luxitur, Znote[NOR] -- --- --- ----------- The hoster of Znote & WooTserv ---------- --- --- ------------------------------------------------------ --- local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello, I can enchant some weapons with my fire enchant technique, just say enchant if youre intrested.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ill talk you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'enchant') then selfSay('What weapon do you want to enchant to the fire version?') talk_state = 1 elseif talk_state == 1 then if msgcontains(msg, 'spike sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2383) --- spike sword if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2383,1) --- spike sword selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7744,1) --- Spike sword with fire enchant else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the spike sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'barbarian axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2429) --- barbarian axe if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2429,1) --- barbarian axe selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7749,1) --- barbarian axe with fire enchant else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the barbarian axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'relic sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7383) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7383,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7745,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the relic sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'blacksteel sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7406) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7406,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7747,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the blacksteel sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'dragon slayer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7402) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7402,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7748,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the dragon slayer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'mystic blade') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7384) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7384,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7746,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the mystic blade, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'knight axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2430) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2430,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7750,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the knight axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'heroic axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7389) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7389,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7751,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the heroic axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'headchopper') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7380) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7380,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7752,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the headchopper, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2454) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2454,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7753,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the war axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'clerical mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2423) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2423,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7754,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the clerical mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'crystal mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2445) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2445,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7755,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the crystal mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'cranial basher') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7415) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7415,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7756,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the cranial basher, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'orcish maul') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,7392) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,7392,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7757,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the orcish maul, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war hammer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2391) --- weapon if plats >= 60 and ing >= 5 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2391,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7758,1) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the war hammer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'arrow') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2795) --- 5 fire mushrooms weap = getPlayerItemCount(cid,2544) --- weapon if plats >= 60 and ing >= 5 and weap >= 100 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2795,5) --- 5 fire mushrooms doPlayerRemoveItem(cid,2544,100) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7840,100) --- fire enchanted weapon else selfSay('I need 60 platinum coins, 5 fire mushrooms and borrow the arrow, or else i cant enchant the weapon for you.') end end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Goodbye!') focus = 0 talk_start = 0 end end end end end end end end end end end end end end end end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end em naturee.lua substitua todo o código por: --- ------------------------------------------------------ --- --- Inspired by stix360's npc trade item for item example. --- --- ------------------------------------------------------ --- --- -------------- Bugfixed by ----> Nahruto <---- ------- --- --- ------------------------------------------------------ --- --- -- The shit job was done by me, Luxitur, Znote[NOR] -- --- --- ----------- The hoster of Znote & WooTserv ---------- --- --- ------------------------------------------------------ --- local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello, I can enchant some weapons with my nature enchant technique, just say enchant if youre intrested.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ill talk you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'enchant') then selfSay('What weapon do you want to enchant to the nature version?') talk_state = 1 elseif talk_state == 1 then if msgcontains(msg, 'spike sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2383) --- spike sword if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2383,1) --- spike sword selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7854,1) --- Spike sword with nature enchant else selfSay('I need 60 platinum coins, a hydra egg and borrow the spike sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'barbarian axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2429) --- barbarian axe if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2429,1) --- barbarian axe selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7859,1) --- barbarian axe with nature enchant else selfSay('I need 60 platinum coins, a hydra egg and borrow the barbarian axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'relic sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7383) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7383,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7855,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the relic sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'blacksteel sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7406) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7406,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7857,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the blacksteel sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'dragon slayer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7402) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7402,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7858,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the dragon slayer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'mystic blade') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7384) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7384,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7856,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the mystic blade, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'knight axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2430) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2430,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7860,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the knight axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'heroic axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7389) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7389,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7861,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the heroic axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'headchopper') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7380) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7380,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7862,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the headchopper, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2454) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2454,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7863,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the war axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'clerical mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2423) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2423,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7864,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the clerical mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'crystal mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2445) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2445,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7865,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the crystal mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'cranial basher') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7415) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7415,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7866,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the cranial basher, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'orcish maul') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,7392) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,7392,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7867,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the orcish maul, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war hammer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2391) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2391,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7868,1) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the war hammer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'arrow') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,4850) --- 1 hydra egg weap = getPlayerItemCount(cid,2544) --- weapon if plats >= 60 and ing >= 5 and weap >= 100 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,4850,1) --- 1 hydra egg doPlayerRemoveItem(cid,2544,100) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7850,100) --- nature enchanted weapon else selfSay('I need 60 platinum coins, a hydra egg and borrow the arrow, or else i cant enchant the weapon for you.') end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Goodbye!') focus = 0 talk_start = 0 end end end end end end end end end end end end end end end end end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end e finalmente em energye.lua substitua todo o código por: --- ------------------------------------------------------ --- --- Inspired by stix360's npc trade item for item example. --- --- ------------------------------------------------------ --- --- -------------- Bugfixed by ----> Nahruto <---- ------- --- --- ------------------------------------------------------ --- --- -- The shit job was done by me, Luxitur, Znote[NOR] -- --- --- ----------- The hoster of Znote & WooTserv ---------- --- --- ------------------------------------------------------ --- local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello, I can enchant some weapons with my energy enchant technique, just say enchant if youre intrested.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ill talk you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'enchant') then selfSay('What weapon do you want to enchant to the energy version?') talk_state = 1 elseif talk_state == 1 then if msgcontains(msg, 'spike sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2383) --- spike sword if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2383,1) --- spike sword selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7869,1) --- Spike sword with energy enchant else selfSay('I need 60 platinum coins, a crystal ring and borrow the spike sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'barbarian axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2429) --- barbarian axe if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2429,1) --- barbarian axe selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7874,1) --- barbarian axe with energy enchant else selfSay('I need 60 platinum coins, a crystal ring and borrow the barbarian axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'relic sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7383) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7383,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7870,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the relic sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'blacksteel sword') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7406) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7406,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7872,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the blacksteel sword, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'dragon slayer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7402) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7402,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7873,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the dragon slayer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'mystic blade') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7384) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7384,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7871,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the mystic blade, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'knight axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2430) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2430,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7875,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the knight axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'heroic axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7389) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7389,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7876,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the heroic axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'headchopper') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7380) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7380,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7877,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the headchopper, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war axe') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2454) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2454,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7878,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the war axe, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'clerical mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2423) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2423,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7879,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the clerical mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'crystal mace') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2445) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2445,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7880,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the crystal mace, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'cranial basher') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7415) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7415,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7881,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the cranial basher, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'orcish maul') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,7392) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,7392,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7882,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the orcish maul, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'war hammer') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2391) --- weapon if plats >= 60 and ing >= 1 and weap >= 1 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2391,1) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7883,1) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the war hammer, or else i cant enchant the weapon for you.') end elseif talk_state == 1 then if msgcontains(msg, 'arrow') then plats = getPlayerItemCount(cid,2152) --- 60 platinum coins ing = getPlayerItemCount(cid,2124) --- 1 crystal ring weap = getPlayerItemCount(cid,2544) --- weapon if plats >= 60 and ing >= 1 and weap >= 100 then doPlayerRemoveItem(cid,2152,60) --- 60 platinum coins doPlayerRemoveItem(cid,2124,1) --- 1 crystal ring doPlayerRemoveItem(cid,2544,100) --- weapon selfSay('Enchantmenth completed, here is your weapon.') doPlayerAddItem(cid,7838,100) --- energy enchanted weapon else selfSay('I need 60 platinum coins, a crystal ring and borrow the arrow, or else i cant enchant the weapon for you.') end end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Goodbye!') focus = 0 talk_start = 0 end end end end end end end end end end end end end end end end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end e irá funcionar flw
  • Quem Está Navegando   0 membros estão online

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