Postado Dezembro 11, 2012 12 anos Autor malz n foi resolvido ele ta teletranportando players de outras vocaçoes e mudando player de outras vocaçoes eu queria que fosse so para vocaçao 0 tipo so player vocation 0 player de rookguaard
Postado Dezembro 11, 2012 12 anos local item1 = 107 local quant1 = 1 local vocation13 = 4 local pos = {x=1024, y=1027, z=7} 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 function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerVocation(cid) ~= 0 then npcHandler:say('Tchau!',cid) return false end if(parameters.present == true) thenif(doPlayerRemoveItem(cid,item1,quant1) == true) thendoPlayerSetVocation(cid, 4)doTeleportThing(cid, pos)npcHandler:say('You changed your vocation to vocation of the Angel.',cid)elsenpcHandler:say('You have ever vocation is the Angel or do not have the necessary items .',cid)endnpcHandler:resetNpc()return trueendendnpcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|. Do you want to be promoted to {angel}?.")local noNode = KeywordNode:new({'no'}, santaNPC, {present = false})local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true})local node = keywordHandler:addKeyword({'angel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bring me an enchanted wing !. Do you sure? it will be irreversible! {yes}'})node:addChildKeywordNode(yesNode)node:addChildKeywordNode(noNode)npcHandler:addModule(FocusModule:new()) -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
Postado Dezembro 11, 2012 12 anos Autor =x [11/12/2012 18:25:18] [Error - LuaScriptInterface::loadFile] data/npc/scripts/mone.lua:25: 'then' expected near 'thenif' [11/12/2012 18:25:18] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/mone.lua [11/12/2012 18:25:18] data/npc/scripts/mone.lua:25: 'then' expected near 'thenif'
Postado Dezembro 11, 2012 12 anos local item1 = 107 local quant1 = 1 local vocation13 = 4 local pos = {x=1024, y=1027, z=7} 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 function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerVocation(cid) ~= 0 then npcHandler:say('Tchau!',cid) return false end if(parameters.present == true) then if(doPlayerRemoveItem(cid,item1,quant1) == true) then doPlayerSetVocation(cid, 4) doTeleportThing(cid, pos) npcHandler:say('You changed your vocation to vocation of the Angel.',cid) els enpcHandler:say('You have ever vocation is the Angel or do not have the necessary items .',cid) end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|. Do you want to be promoted to {angel}?.") local noNode = KeywordNode:new({'no'}, santaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true}) local node = keywordHandler:addKeyword({'angel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bring me an enchanted wing !. Do you sure? it will be irreversible! {yes}'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new()) -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
Postado Dezembro 12, 2012 12 anos Autor esse script ta dificil =x [11/12/2012 22:17:39] [Error - LuaScriptInterface::loadFile] data/npc/scripts/mone.lua:31: '=' expected near 'enpcHandler' [11/12/2012 22:17:39] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/mone.lua [11/12/2012 22:17:39] data/npc/scripts/mone.lua:31: '=' expected near 'enpcHandler' Editado Dezembro 12, 2012 12 anos por Thiago Duarte (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.