Pesquisar na Comunidade
Mostrando resultados para as tags ''urgentissimo''.
Encontrado 1 registro
-
eae galera do xTibia servidor: 8.60 baiak tenho aqui um script de um npc que vende promotion, vou passar: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 local node1 = keywordHandler:addKeyword({'loney star'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tenhos varias promotions, ["loney star"] ["bronze star"] ["silver star"] e ["gold star"] Voce quer ser um loney star?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 10000, promotion = 5, text = 'Congratulations!'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, bye.', reset = true}) local node2 = keywordHandler:addKeyword({'bronze star'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser bronze star?'}) node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 70000, promotion = 9, text = 'Congratulations!'}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, bye.', reset = true}) local node3 = keywordHandler:addKeyword({'silver star'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser silver star?'}) node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 120000, promotion = 13, text = 'Congratulations!'}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, bye.', reset = true}) local node4 = keywordHandler:addKeyword({'gold star'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser gold star?'}) node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 150000, promotion = 17, text = 'Congratulations!'}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, bye.', reset = true}) npcHandler:addModule(FocusModule:new()) Até ai o script ta legal, (eu creio) mas na hora de receber a promotion fica assim: You see yourself. You are . As vocations tão ai: Gostaria de saber por que não da certo e se tem como arruma? qual o erro? Bom minha segunda duvida é o seguinte: <vocation id="20" name="Gold Star" description="a gold star" needpremium="0" gaincap="10" gainhp="100" gainmana="100" gainhpticks="100" gainhpamount="10" gainmanaticks="3" gainmanaamount="200" manamultiplier="1.1" attackspeed="750" soulmax="200" gainsoulticks="120" fromvoc="20"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> Quando eu edito essa parte em vermelho, quando abro o server o player vai ataca um monstro e o server trava e cai, por que?? REP+ vlw!
-
- urgentissimo
- otserv
-
(e 2 mais)
Tags: