

SkyLigh
Lorde-
Total de itens
2183 -
Registro em
-
Última visita
-
Dias Ganhos
23
Tudo que SkyLigh postou
-
duvida sanada reportado Para um superior
-
@guizitog so você usar essa function if getPlayerLevel(cid) == 50 then end
-
Local incorreto reportado Para um superior
-
Characters Market System (In Game)
tópico respondeu ao LuckOake de SkyLigh em Mods, funções e outros
Lock continua sem funcionar aki to testando em slayer 8.60 sera q e problema no sv? -
Characters Market System (In Game)
tópico respondeu ao LuckOake de SkyLigh em Mods, funções e outros
Luck em qual pasta coloca ele que tentei na mod e n consegui . -
Vá em>Pastadoot>Data>npc>Scripts crie um novo arquivo lua com o nome de Paint.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)[/color][/b] [b][color="orange"]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[/color][/b] [b][color="orange"]function pintar(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local pokeball = {2222, 2651, 2653, 2220, 2655,11627,11618,11621,11624} for i = 1, #pokeball do if isInArray(pokeball, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) then if(doPlayerRemoveMoney(cid, parameters.price)) then local feet = getPlayerSlotItem(cid, CONST_SLOT_FEET) local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]")) doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/"))) doTransformItem(feet.uid, parameters.bola) selfSay('Bola Pintada!') else selfSay('Você não tem dinheiro suficiente!') end else selfSay('Coloque a pokebola correta no slot!') end return TRUE end npcHandler:resetNpc() return true end local frase = 'Deseja pintar sua pokebola para' local node1 = keywordHandler:addKeyword({'pintar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu faço as sequintes pinturas:\n-> pokeball: 50$\n->great ball: 80$\n->super ball: 120$\n->ultra ball: 150$\n->saffari ball: 150$\n->frozen ball: 175$\n->dark ball: 175$\n->love ball: 175$\n->golden ball: 175$'}) local node11 = node1:addChildKeyword({'pokeball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' pokeball?'}) node11:addChildKeyword({'yes'}, pintar, {price = 5000,bola = 2222}) node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node12 = node1:addChildKeyword({'great ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' great ball?'}) node12:addChildKeyword({'yes'}, pintar, {price = 8000,bola = 2651}) node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node13 = node1:addChildKeyword({'super ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' super ball?'}) node13:addChildKeyword({'yes'}, pintar, {price = 12000,bola = 2653}) node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node14 = node1:addChildKeyword({'ultra ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' ultra ball?'}) node14:addChildKeyword({'yes'}, pintar, {price = 15000,bola = 2220}) node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node15 = node1:addChildKeyword({'saffari ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' saffari ball?'}) node15:addChildKeyword({'yes'}, pintar, {price = 15000,bola = 2655}) node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node16 = node1:addChildKeyword({'frozen ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' frozen ball?'}) node16:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11627}) node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node17 = node1:addChildKeyword({'dark ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' dark ball?'}) node17:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11618}) node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node18 = node1:addChildKeyword({'love ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' love ball?'}) node18:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11621}) node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node19 = node1:addChildKeyword({'golden ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' golden ball?'}) node19:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11624}) node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})[/color][/b] [b][color="orange"]npcHandler:addModule(FocusModule:new()) Agora fazendo o xml . <?xml version="1.0" encoding="UTF-8"?> <npc name="Jack" walkinterval="35000000" script="paint.lua" floorchange="0" speed="0"> <health now="150" max="150"/> <look type="158" head="91" body="102" legs="83" feet="0"/> <parameters> <parameter key="message_greet" value="Ola, eu posso {pintar} bolas."/> <parameter key="message_farewell" value="Tchau! Volte sempre."/> <parameter key="message_idletimeout" value="Proximo ..."/> <parameter key="message_walkaway" value="Volte sempre que quiser!"/> </parameters> </npc>
-
Characters Market System (In Game)
tópico respondeu ao LuckOake de SkyLigh em Mods, funções e outros
Ótimo sistema Luck esta de parabéns -
Barzinho e pedido "NEWFAG"
-
@guhpk n e double ele so fez mais uma duvida la e tbm falo pra se puderem olhar aki . tome cuidado antes de reporta alguem .
-
como e de 2006 n sei se vai funcionar mais tente Link 1 : http://www.xtibia.com/forum/topic/16311-fazendo-1-porta-q-precise-de-key-para-abrila/ Link 2 : http://www.xtibia.com/forum/topic/16519-pedidocomo-abrir-portas-com-chave/
-
Nao sei eu achei na net ele .
-
tente com esse. local default_comment = "" local default_lenght = 1 -- ban time in hours function onSay(cid, words, param) local parametres = string.explode(param, ",") if(parametres[1] ~= nil) then local accId = getAccountIdByName(parametres[1]) if(accId > 0) then local lenght = default_lenght local comment = default_comment if(parametres[2] ~= nil and tonumber(parametres[2]) > 0) then lenght = tonumber(parametres[2]) end if(parametres[3] ~= nil) then comment = parametres[3] end doAddBanishment(accId, lenght * 3600, 23, ACTION_BANISHMENT, comment, getPlayerGUID(cid), comment) local player = getPlayerByNameWildcard(parametres[1]) if(isPlayer(player) == TRUE) then doRemoveCreature(player) end else doPlayerSendCancel(cid, "Player with name " .. parametres[1] .. " doesn't exist.") end else doPlayerSendCancel(cid, "You must enter name.") end return true end /ban Nick - Banir O jogador de tempo predefinido /ban Nick,12 - Banir O jogador por 12 horas /ban Nick,35,AFK BOT - Banir jogador de 35 horas com o comentário "AFK BOT"
-
tente utilizar ele assim. local function checkStackpos(item, position) position.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local thing = getThingfromPos(position) position.stackpos = STACKPOS_TOP_FIELD local field = getThingfromPos(position) if(item.uid ~= thing.uid and thing.itemid >= 100 or field.itemid ~= 0) then return FALSE end return TRUE end function onUse(cid, item, fromPosition, itemEx, toPosition) local nuevas = { {closed=10269, open=10270}, {closed=10272, open=10273}, {closed=10274, open=10275}, {closed=10276, open=10277}, {closed=10278, open=10279}, {closed=10280, open=10281}, {closed=10282, open=10283}, {closed=10284, open=10285}, {closed=10469, open=10470}, {closed=10471, open=10472}, {closed=10473, open=10474}, {closed=10475, open=10476}, {closed=10478, open=10479}, {closed=10480, open=10481}, {closed=10482, open=10483}, {closed=10484, open=10485}, } for ia = 1,#nuevas do if (item.itemid == nuevas[ia].closed) then doTransformItem(item.uid, nuevas[ia].open) elseif (item.itemid == nuevas[ia].open) then doTransformItem(item.uid, nuevas[ia].closed) end end if(getItemLevelDoor(item.itemid) > 0) then if(item.actionid > 0 and getPlayerLevel(cid) >= (item.actionid - getItemLevelDoor(item.itemid))) then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") end return TRUE end if(isInArray(specialDoors, item.itemid) == TRUE) then if(item.actionid ~= 0 and getPlayerStorageValue(cid, item.actionid) ~= -1) then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The door seems to be sealed against unwanted intruders.") end return TRUE end if(isInArray(keys, item.itemid) == TRUE) then if(itemEx.actionid > 0) then if(item.actionid == itemEx.actionid) then if doors[itemEx.itemid] ~= nil then doTransformItem(itemEx.uid, doors[itemEx.itemid]) return TRUE end end doPlayerSendCancel(cid, "The key does not match.") return TRUE end return FALSE end if(isInArray(horizontalOpenDoors, item.itemid) == TRUE and checkStackpos(item, fromPosition) == TRUE) then local newPosition = toPosition newPosition.y = newPosition.y + 1 local doorPosition = fromPosition doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local doorCreature = getThingfromPos(doorPosition) if(doorCreature.itemid ~= 0) then if(getTilePzInfo(doorPosition) == TRUE and getTilePzInfo(newPosition) == FALSE and doorCreature.uid ~= cid) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) else doTeleportThing(doorCreature.uid, newPosition, TRUE) if(isInArray(closingDoors, item.itemid) ~= TRUE) then doTransformItem(item.uid, item.itemid - 1) end end return TRUE end doTransformItem(item.uid, item.itemid - 1) return TRUE end if(isInArray(verticalOpenDoors, item.itemid) == TRUE and checkStackpos(item, fromPosition) == TRUE) then local newPosition = toPosition newPosition.x = newPosition.x + 1 local doorPosition = fromPosition doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local doorCreature = getThingfromPos(doorPosition) if(doorCreature.itemid ~= 0) then if(getTilePzInfo(doorPosition) == TRUE and getTilePzInfo(newPosition) == FALSE and doorCreature.uid ~= cid) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) else doTeleportThing(doorCreature.uid, newPosition, TRUE) if(isInArray(closingDoors, item.itemid) ~= TRUE) then doTransformItem(item.uid, item.itemid - 1) end end return TRUE end doTransformItem(item.uid, item.itemid - 1) return TRUE end if(doors[item.itemid] ~= nil and checkStackpos(item, fromPosition) == TRUE) then if(item.actionid == 0) then doTransformItem(item.uid, doors[item.itemid]) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is locked.") end return TRUE end return FALSE end
-
o problema pode ser no default.lua va em data / npc / scripts / procure por default.lua se nao existe renomeie algum para default.lua e apague tudo e adicione 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 npcHandler:addModule(FocusModule:new())
-
tente assim . function onSay(cid, words, param, channel) if getPlayerBlessing(cid, 1) and getPlayerBlessing(cid, 2) and getPlayerBlessing(cid, 3) and getPlayerBlessing(cid, 4) and getPlayerBlessing(cid, 5) then doPlayerSendCancel(cid,'You have already got one or more blessings!') else if doPlayerRemoveMoney(cid, 50000) == TRUE then for i = 1, table.maxn(bless) do if doPlayerAddBlessing(cid, 1) and doPlayerAddBlessing(cid, 2) and doPlayerAddBlessing(cid, 3) and doPlayerAddBlessing(cid, 4) and doPlayerAddBlessing(cid, 5) then doPlayerAddBlessing(cid, 5) doSendMagicEffect(getPlayerPosition(cid), 28) doPlayerAddItem(cid, 2173, 1) doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Você ganhou um AOL, caso a bless falhe use por prevenção!') doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the gods!') else doPlayerSendCancel(cid, "You need 5 crystal coin to get blessed!") end end return TRUE end end end
-
@yan18 testei o script dele pelo debug.lua esta todo bugado faltava 2 end's envez de price tava preço que no .lua n pode ser usado "ç" preste atenção
-
ta todo bugado esse script do bless o talk arrumei os erros dele . function onSay(cid, words, param) local bless = {1, 2, 3, 4, 5} local price = 1000 --O Preço da bless if(doPlayerRemoveMoney(cid, price) == TRUE) then for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then doSendMagicEffect(getCreaturePosition(cid),13) doCreatureSay(cid, "!! COMPREI BLESS !! SABIA ??", TALKTYPE_ORANGE_1) else doCreatureSay(cid, "Sera Que So Pobre Mesmo ?? Me Arruma Um $$ Ai Que Eu Agradeço", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end end end end
-
duvida sanada reportado Para um superior
-
So fala mais sem o xtibia seu projeto seria todo bugado . REPORTADO .
-
local incorreto reportado Para um superior tinha que ser em pedidos de script quando for assim n poste . se n for ajudar reportado
-
duvida sanada reportado Para um superior
- 6 respostas
-
- limite de players
- target dummy
- (e 3 mais)
-
Reportado por ofensas a comunidade a 2 x ja ! e tao lixo aki o xtibia que você pede ajuda e frequenta . . reportado @ALGUM MODRADOR OU COORDENADOR DA BAN PERMANENTE LOGO NESSE CARA .
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.