Tudo que rollback postou
-
Error SSA
Ae galera hoje que reparei no meu server o stone skin amulet ta bugado ta com 100 charges . 12:56 You see a stone skin amulet (protection physical +80%, death +80%) that has 100 charges left. It weighs 7.60 oz. <item id="2197" article="a" name="stone skin amulet"> <attribute key="weight" value="760" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="5" /> <attribute key="showcharges" value="1" /> <attribute key="absorbPercentPhysical" value="80" /> <attribute key="absorbPercentDeath" value="80" /> <attribute key="showattributes" value="1" /> </item> Alguem ajuda ae urgente, falta pouco tempo pra min por meu server on e to tentando resolver tudo antes de por online.
-
[Error - Action Interface] URGENTE
@up tenho fé que ainda alguem vai responder kkk
- Inovação [ Wand ]
-
Inovação [ Wand ]
claro que não fiquei o dia todo criando aprendendendo faze isso ae pq comecei a pouco tempo , mais blz se ja existe igual . procurei aque e so tem de arrow e shield wand nunca vi , ainda mais explicando detalhe por detalhe , vc q ja e profissional parece ser algo idiota mais pra qm ta começando e algo bem legal.
- Inovação [ Wand ]
- Inovação [ Wand ]
-
Inovação [ Wand ]
Eae galera do TK vim aque trazer um script simples mais bem legal , desculpe se já existe , mais procurei e não axei ! Oque ele faz é uma wand que se transforma em outro. Primerio vamos criar a wand. Vá em data/items/item.xml e adicione isso. <item id="12279" article="the" name="supreme holy wand"> <attribute key="description" value="This holy wand of light is the best." /> <attribute key="weight" value="1730" /> <attribute key="weaponType" value="wand" /> <attribute key="shootType" value="holy" /> <attribute key="range" value="6" /> </item> <item id="12288" article="the" name="supreme death wand"> <attribute key="description" value="This death wand of dark is the best." /> <attribute key="weight" value="1730" /> <attribute key="weaponType" value="wand" /> <attribute key="shootType" value="death" /> <attribute key="range" value="6" /> </item> enceguida vá em data/weapons/weapons.xml e adicione isso. <wand id="12279" mana="13" min="280" max="350" type="holy" event="function" value="default"> <!-- Holy Wand --> <vocation id="1"/> <vocation id="2"/> </wand> <wand id="12288" mana="13" min="280" max="350" type="death" event="function" value="default"> <!-- Death Wand --> <vocation id="1"/> <vocation id="2"/> </wand> Pronto agora vamos criar um action para poder transformar uma wand na outra ao dar use. Primeiro vá em data/action/action.xml e adicione isso. <action fromid="12279" toid="12288" event="script" value="two_wand.lua"/> depois vá na pasta data/action/scripts e crie um arquivo.xml com o nome de two_wand e adicione isso dentro. -- multiplas wands local ITEM_IDS = { [12279] = 12288, [12288] = 12279, } function onUse(cid, item, fromPosition, itemEx, toPosition) if(not ITEM_IDS[item.itemid]) then return false end doTransformItem(item.uid, ITEM_IDS[item.itemid]) doDecayItem(item.uid) return true end Pronto agora só curtir sua nova wand se gostou não custa nada dar um rep+
- (Resolvido) otservlist bug
-
Como que cria um npc de barco
Primeiro crie um arquivo.xml na pasta NPC com o nome de Capitao coruja depois coloque isso dentro. <npc name="Capitao Coruja" script="data/npc/scripts/coruja.lua" walkinterval="0" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="129" head="114" body="119" legs="114" feet="114" corpse="2212"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. ! Eu posso te levar para {Dorion}, {yalahar}, {alfon}, {venonh}, {anknor}, {smallville} e {goroma}.. Onde deseja ir?" /> <parameter key="message_decline" value="Vai custar |TOTALCOST| gold coins. Vai viajar? Voce pode ir em outras cidades indo ao tapete do meu primo!"/> </parameters> </npc> enceguida abra a pasta NPC/SCRIPTS crie um arquivo coruja.xml e coloque isso dentro. 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 -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Yalahar por 210 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 210, destination = {x=1555, y=2576, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para {dorion}, {Yalahar}, {Alfon}, {venonh} e {Anknor} por um pequeno custo.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'dorion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Dorion por 110 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 110, destination = {x=31, y=79, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'dorion\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'alfon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para alfon por 115 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 115, destination = {x=114, y=282, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Alfon\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'venonh'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para venonh por 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=238, y=370, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'venohn\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'anknor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para anknor por 175 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 175, destination = {x=487, y=261, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Anknor\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'anknor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para anknor por 100 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 100, destination = {x=487, y=261, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'anknor\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'smallville'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para smallville por 190 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 190, destination = {x=1995, y=2394, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'smallville\' for just a small fee.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'goroma'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Goroma por 55 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 55, destination = {x=1367, y=195, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'goroma\' for just a small fee.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) Agora editando o script local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para Yalahar por 210 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 210, destination = {x=1555, y=2576, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para {dorion}, {Yalahar}, {Alfon}, {venonh} e {Anknor} por um pequeno custo.'}) Vermelho é a menssagem que ele vai perguntar para o player Amarelo premium = true aque é se pode viajar so premmy ou free tbm pra por free coloca premium = false já pra so premmy premium = true Verde level = 2 se precisar de level vc edita pra o lvl que quiser cost = 210 , é o preço da viagem. destination = {x=1555, y=2576, z=6 voce edita pra onde o player vai ser levado e assim é a mesma coisa em todos. Já para editar a menssagem do npc você muda em capitao coruja.xml Eu posso te levar para {Dorion}, {yalahar}, {alfon}, {venonh}, {anknor}, {smallville} e {goroma}.. Onde deseja ir? Te ajudei? REP+
-
Demora Para Deslogar
ja tentou ver no config.lua na parte battle
-
[Resolvido] SHOP por báu
deu error :S [15/09/2012 14:45:05] [Error - Action Interface] [15/09/2012 14:45:05] data/actions/scripts/shopsystem.lua:onUse [15/09/2012 14:45:05] Description: [15/09/2012 14:45:05] data/actions/scripts/shopsystem.lua:35: attempt to index field '?' (a nil value) [15/09/2012 14:45:05] stack traceback: [15/09/2012 14:45:05] data/actions/scripts/shopsystem.lua:35: in function <data/actions/scripts/shopsystem.lua:34> [15/09/2012 14:45:05] [Error - Action Interface] [15/09/2012 14:45:05] data/actions/scripts/shopsystem.lua:onUse [15/09/2012 14:45:05] Description: [15/09/2012 14:45:05] data/actions/scripts/shopsystem.lua:35: attempt to index field '?' (a nil value) [15/09/2012 14:45:05] stack traceback: [15/09/2012 14:45:05] data/actions/scripts/shopsystem.lua:35: in function <data/actions/scripts/shopsystem.lua:34>
-
Error Items: LoadFromOtb
Axei esse topico ve se ajuda.
-
Error Items: LoadFromOtb
tenta pegar o items.otb de outro server que fica dentro da pasta data/items/items.otb !! axo que é isso se te ajudei rep+
-
[Error - Action Interface] URGENTE
[14/09/2012 01:25:57] [Error - Action Interface] [14/09/2012 01:25:57] In a timer event called from: [14/09/2012 01:25:57] data/actions/scripts/snakesys.lua:onUse [14/09/2012 01:25:57] Description: [14/09/2012 01:25:57] (luaDoRemoveItem) Item not found alguem poderia me explicar porque quase todos scripts que coloco da esse error. coloquei sistema de futebol , snake , casino os 3 deram o mesmo error. URGENTE !!!
-
Como Adicioonar Novos Itens No Meu Servidor 8.6?
se for oque entendi ! é so você ver o id desse item que ja tem a spr no mapa editor na pasta data/world. depois que ver o ID do item ae vai na pasta data/items/items.xml e adiciona isso caso seja weapon você precisa por tambem na wepons data/weapons/wepons.xml tambem não pode esquecer de adiciona no movevents. data/movements/movements.xml DEPOIS FALE PRA MIN QUAL É O TIPO DE ITEM TENTO TE AJUDAR SE FOR O QUE FALEI!
-
Futebol
alguem disposto a me ajudar?
-
Cassino error
ninguem ajuda :S
-
Alavanca que venda Mana Potions.
Axo que esse aque funciona. function getItemCap(itemid, quant) -- function by MatheusMkalo return getItemInfo(itemid).weight*(quant or 1) end function onUse(cid, item, fromPosition, itemEx, toPosition) local configs = { [45690] = {itemid = 7620, quantperslot = 100, cost = 5000, backpackid = 2002}, [45691] = {itemid = 2268, quantperslot = 50, cost = 2, backpackid = 2003}, } local coinid = 9971 -- Use o id da gold coin (2148) se voce quizer usar o sistema de dinheiro mesmo. (Caso o itemid for 2148 o cost sera de gps ou seja 30 = 30 gps) if configs[item.actionid] then if getPlayerFreeCap(cid) >= math.ceil((getItemCap(configs[item.actionid].itemid, configs[item.actionid].quantperslot)*1)+getItemCap(configs[item.actionid].backpackid)) then if coinid ~= 2148 and getPlayerItemCount(cid, coinid) >= configs[item.actionid].cost or doPlayerRemoveMoney(cid, configs[item.actionid].cost) then local backpack = doPlayerAddItem(cid, configs[item.actionid].backpackid) for i = 1, 1 do doAddContainerItem(backpack, configs[item.actionid].itemid, configs[item.actionid].quantperslot) end doPlayerRemoveItem(cid, coinid == 2148 and 0000 or coinid, configs[item.actionid].cost) else return doPlayerSendCancel(cid, ("You need " .. configs[item.actionid].cost) .. (coinid == 2148 and " gold coins" or (" " .. getItemPluralNameById(coinid):lower())) .. " to buy this item.") end else return doPlayerSendCancel(cid, "You need " .. math.ceil((getItemCap(configs[item.actionid].itemid, configs[item.actionid].quantperslot)*1)+getItemCap(configs[item.actionid].backpackid)) .. " cap for buy that.") end end return TRUE end <action actionid="45690-45691" event="script" value="testing.lua"/> vem 100 dentro da bp não consegui tirar pra vim sem a bp , mais a bp vem de graça =] então não muda em nada pra quem comprar. aque você edita [45690] = {itemid = 7620, quantperslot = 100, cost = 5000, backpackid = 2002}, [45691] = {itemid = 2268, quantperslot = 50, cost = 2, backpackid = 2003}, 45690 é o actionid 7620 é o id da pot ou rune , quantperslot é quanto vai vim em 1 slot , 5000 é o preço das 100 mp backpackid é o id da bp q vai vir junto. vc pode aumentar os tipo de potion pra cada alavanca lenbraquando q cada alavanca vc vai te q por o actionid [45690] = {itemid = 7620, quantperslot = 100, cost = 5000, backpackid = 2002}, [45691] = {itemid = 7619, quantperslot = 100, cost = 20000, backpackid = 2002}, [45692] = {itemid = 7618, quantperslot = 100, cost = 3000, backpackid = 2002}, [45693] = {itemid = 7617, quantperslot = 100, cost = 2500, backpackid = 2002},
-
Alavanca que venda Mana Potions.
ve se esse funciona ----- Config ----- local config = { cost = 500, -- Price item_id = 7620, -- Rune/Potion backpack_id = 2001 -- Backpack } local name = getItemNameById(7620) -- Same as item_id above ----- End Config ----- function onUse(cid, item, fromPosition, itemEx, toPosition) if doPlayerRemoveMoney(cid, config.cost) == TRUE then local bp = doPlayerAddItem(cid, config.backpack_id, 1) doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS) doSendAnimatedText(fromPosition, "Comprado", TEXTCOLOR_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "VOcê comprou uma backpack de ".. name .."s por ".. config.cost .." gold.") for i=1,20 do doAddContainerItem(bp, config.item_id, 1) -- You can edit this number, it will give shots per rune. end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você precisa de ".. config.cost .." gold para comprar uma backpack de ".. name .."s.") end return TRUE end
-
[Ajuda] RME monstros nao aparecem no jogo.
Veja se dentro da pasta data/world tem la nomedoseuot-spawn se tiver e mesmo assim não tiver aparecendo os respawn vá no mapa do seu ot ,Map - properties , veja se em External Spawnfile tá com mesmo nome do seu spawn da pasta da pasta world , se não tiver mude para o mesmo nome , isso no remeres mapa edtior. Agora se não for isso não sei oque é se ajudei rep+.
-
[HELP] erro ao importar mapa
Veja se dentro da pasta data/world tem la nomedoseuot-spawn se tiver e mesmo assim não tiver aparecendo os respawn vá no mapa do seu ot ,Map - properties , veja se em External Spawnfile tá com mesmo nome do seu spawn da pasta da pasta world , se não tiver mude para o mesmo nome , isso no remeres mapa edtior. Agora se não for isso não sei oque é se ajudei rep+.
-
Cassino error
o error ta na hora q puxa a alavanca e dexa ela para sozinha
-
Futebol
blz to esperando
-
Como Adicioonar Novos Itens No Meu Servidor 8.6?
tem cada babaca q de vez ajuda vem zoa o cara --'
-
[CreatureEvent] Anti Account Manager Mage Bomb Crash
nem funciona esse script mandei meu rl usa mage bomb no meu ot com o script ele nao funciona