Ir para conteúdo

Vinc

Conde
  • Total de itens

    625
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Vinc postou

  1. Vinc

    Npc Bugado

    seila,cara dai n sei,as veses é o caso de usa uma table e shopwindow.
  2. cara achei que isso tinha em todos função mais velha que seila é facil usa getSpectators(centerPos, rangex, rangey[, multifloor]) no caso desse script seria assim m = getSpectators({x = 34, y = 56,z = 7}, 1, 2) for i = 1,#m do if isMonster(m[i]) then x = false end
  3. Vinc

    Npc Bugado

    intão cara tava vendo aki seu script do npc mas n achei o shopmodule com id 102(as tais brave legs),acho que tu esqueceu de adicionalas obs:procurei por "brave" no script tbm n achei. se n souber como adicionar,so flar que te ensino como adiciona pra vende.
  4. cara porque n usa getSpectators?
  5. o que diferenciaria o local para onde seria teleportado? ps: essa perguta foi ao autor do topico,quando tinha postado ainda n tinha o post do vodkart
  6. Vinc

    Npc Bugado

    mediga,para criar esse items novos voce uso o mod de newitems do mkalo?(link abaixo) http://www.xtibia.com/forum/topic/158192-sistema-de-novos-items/ se sim eu te digo que esse mod é uma trolagem,ele n cria novos item,ele so pega os items velhos e muda os atributos(quenem chega com o god e fala /attr set )
  7. sim funciona eu ja testei aki a um tempo atras prum amigo e so uso sql
  8. usa o v 2.0 tem stage http://www.xtibia.com/forum/topic/142463-advanced-reset-system-20/
  9. Vinc

    Condiçao De Mana

    usa addmana com valor negativo if doCreatureAddMana(cid, -50) then
  10. Vinc

    Duvida

    eu disconheço as funções de mount então n sei o que ta errado,mas tenta assim local function tameMonster(cid, item, itemEx, tame, run, broken) n = math.random(100) if n <= broken then doCreatureSay(cid, "Lost item", TALKTYPE_ORANGE_1) doRemoveItem(item.uid) elseif n > broken and n <= (tame+broken) then doRemoveItem(item.uid) doCreatureSay(cid, "You tamed", TALKTYPE_ORANGE_1) doPlayerAddMount(cid, mounts[item.itemid].id) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You tamed "..getCreatureName(itemEx.uid)..".") return TRUE elseif n > (tame+broken) and n <= (tame+broken+run) then doCreatureSay(cid, "Fled", TALKTYPE_ORANGE_1) doRemoveCreature(itemEx.uid) else doCreatureSay(cid, "Try again", TALKTYPE_ORANGE_1) end return false end local mounts = { [13322] = { name = "wailing widow", id = 1, tame=10, run=39, broken=51}, [13313]= { name = "terror bird", id = 2, tame=10, run=39, broken=51}, [5907]= { name = "bear", id = 3, tame=7, run=39, broken=54}, [13310]={ name = "black sheep", id = 4, tame=7, run=35, broken=58}, [13308]={ name = "midnight panther", id = 5, tame=10, run=39, broken=51}, [13309]={ name = "draptor", id = 6, tame=10, run=39, broken=51}, [13320]={ name = "crustacea gigantica", id = 7, tame=10, run=39, broken=51}, [13262]={ name = "boar", id = 10, tame=10, run=39, broken=51}, [13306]={ name = "undead cavebear", id = 12, tame=10, run=39, broken=51} } function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then str = getCreatureNanem(itemEx.uid):lower() if mounts[itemi.itemid].name == str and not getPlayerMount(cid, mounts[item.itemid].id) then if tameMonster(cid, item, itemEx, mounts[item.itemid].tame, mounts[item.itemid].run, mounts[item.itemid].broken) then doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE) doRemoveCreature(itemEx.uid) else doSendMagicEffect(toPosition, CONST_ME_POFF) end end end return true end
  11. Vinc

    Duvida

    tente assim local function tameMonster(cid, item, itemEx, tame, run, broken) n = math.random(100) if n <= broken then doCreatureSay(cid, "Lost item", TALKTYPE_ORANGE_1) doRemoveItem(item.uid) elseif n > broken and n <= (tame+broken) then doRemoveItem(item.uid) doCreatureSay(cid, "You tamed", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You tamed "..getCreatureName(itemEx.uid)..".") return true elseif n > (tame+broken) and n <= (tame+broken+run) then doCreatureSay(cid, "Fled", TALKTYPE_ORANGE_1) doRemoveCreature(itemEx.uid) else doCreatureSay(cid, "Try again", TALKTYPE_ORANGE_1) end return false end local mounts = { [13322] = { name = "wailing widow", id = 1, tame=10, run=39, broken=51}, [13313]= { name = "terror bird", id = 2, tame=10, run=39, broken=51}, [5907]= { name = "bear", id = 3, tame=7, run=39, broken=54}, [13310]={ name = "black sheep", id = 4, tame=7, run=35, broken=58}, [13308]={ name = "midnight panther", id = 5, tame=10, run=39, broken=51}, [13309]={ name = "draptor", id = 6, tame=10, run=39, broken=51}, [13320]={ name = "crustacea gigantica", id = 7, tame=10, run=39, broken=51}, [13262]={ name = "boar", id = 10, tame=10, run=39, broken=51}, [13306]={ name = "undead cavebear", id = 12, tame=10, run=39, broken=51} } function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then str = getCreatureNanem(itemEx.uid):lower() if mounts[itemi.itemid].name == str and not getPlayerMount(cid, mounts[item.itemid].id) then if tameMonster(cid, item, itemEx, mounts[item.itemid].tame, mounts[item.itemid].run, mounts[item.itemid].broken) then doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE) doRemoveCreature(itemEx.uid) doPlayerAddMount(cid, mounts[item.itemid].id) else doSendMagicEffect(toPosition, CONST_ME_POFF) end end end return true end
  12. getcreaturesummons retorna uma tabela,então tem que usa um index no caso sum[1] e tem que registra no com uma function onLogin
  13. Vinc

    Duvida

    se ta usando o item certo?cada item é pra uma mont diferente
  14. se deu register errado se deu register no player,tinha que te posto no monster que ele ta matando usando onCombat,onTarget,onAttack ou pela xml do monster mesmo
  15. va em creaturescript/script crie um arquivo lua com nome bootcolor e coloque isto dentro e em creature script.xml adiona essas tag <event type="login" name="playerlogin" event="script" value="bootcolor.lua"/> <event type="outfit" name="colorboots" event="script" value="bootcolor.lua"/>
  16. Vinc

    [Ajuda] Autoloot

    no script tem umas tag que deve te bugado no topico da onde vc pego,acho que tirei todas,mas se der algum erro cheque a linha que deu erro se tem alguma tag ne la
  17. coloque para os player n poderem usar a mesma cor de bota(seu serve chegar 255 pessoas nos primeiros dias então n tem problema em so ter 255 cores),solução temporaria
  18. Vinc

    [Ajuda] Autoloot

    o erro n esta nesse script que tu posto, esta no data/talkactions/scripts/aloot.lua posteo para que possamos resolver o problema
  19. Vinc

    [Ajuda] Autoloot

    data/talkactions/scripts/aloot.lua e na talkaction esse ai é o creaturescript
  20. se coloco a aid nos tile?
  21. function onStepIn(cid, item, pos, fromPos) for i = 255, 1 , -1 do pos.stackpos = i if isPlayer(getThingFromPos(pos)) then doTeleportThing(cid, frompos,true) doPlayerSendCancel(cid, "you can't use the depot while another is useing.") return TRUE end end return TRUE end
  22. a setinha verde ( )no canto inferior do post do usuario que deseja reputar,so clica nela e reputa o jhon
  23. tenta assim function onStepIn(cid, item, pos, fromPos) for i = 255, 1 , -1 do pos.stackpos = i if isPlayer(getThingFromPos(pos)) then doTeleportThing(cid, frompos,true) doPlayerSendCancel(cid, "you can't use the depot while another is useing.") return TRUE,break end end return TRUE end
  24. tenta vesse tem algum mod suspeito,mas acho que é as sourcers temte contactar o criador do server
  25. Vinc

    Cargas Em Amuleto

    tenta usa esse script function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) item = getPlayerSlotItem(cid, 2) if (item.itemid == 2196) and getPlayerSkullType(cid) >= 4 then charges = getChargesByDescripition(item.uid) if charges > 1 then doRemoveChargeBydesc(item.uid) doCreatureSetDropLoot(cid, false) doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0) doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0) elseif charges == 1 then doCreatureSetDropLoot(cid, false) doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0) doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0) doRemoveItem(item.uid) end end return true end function getChargesByDescripition(uid) s = getItemDescriptions(uid)) charges = s:sub(s:find("charges ") +8,s:find("%.")-1) k = tonumber(charges) if k then return k else return false end function doRemoveChargeBydesc(uid) s = getItemDescriptions(uid)) k = getChargesByDescripition(uid) s = s:sub(1, s:find("%d")-1) doItemSetAttribute(uid,"description", ""..s..""..k..".") return TRUE end dai se vai la no item.xml e coloca na description do item "charges 20."(sem aspas,mas com o ponto final),se o item n tive o attributo description adicione ele
  • Quem Está Navegando   0 membros estão online

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