Ir para conteúdo

Tchubaka

Visconde
  • Total de itens

    395
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Tchubaka postou

  1. -- [( Script edited by: DoidinMapper )] -- function onSay(cid, words, param) access = 4 days = 30 player = getPlayerByName(param) daysvalue = days*3600*24 storageplayer = getPlayerStorageValue(player,13540) timenow = os.time() if storageplayer == -1 or storageplayer == 0 then time = timenow+daysvalue else time = storageplayer+daysvalue end if param ~= "" then if getPlayerGroupId(cid) >= access then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Were added ".. days .." VIP day on your character.") setPlayerStorageValue(player,13540,time) quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(cid, 18, "Você tem ".. quantity .." dias de VIP restantes.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only members with greater access to ".. access .." can add VIP.") end end end ajudei?rep+
  2. cara nao entendi. o povo entra no ot. fica on. mais nao consegue sair como assim?
  3. sao as id das vocaçoes. tpw 1 sorc 2 druid 3 pala 4 kina 5 master sorc 6 elder druid 7 royal paladin 8 elite knr usaight. etc... bote as que vao podeer sar os itens.
  4. se nao tem simples adc. <movevent type="DeEquip" itemid="ID DO ITEN" slot="armor" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="ID DO ITEN" slot="armor" event="function" value="onEquipItem"> <vocation id="4"/> <vocation id="8" showInDescription="0"/> <vocation id="3"/> <vocation id="7" showInDescription="0"/> </movevent> em slot = e so mudar para armor legs etc....
  5. ________________ respondi la ja
  6. o err era o seguinte. meu tava sistemavip.lua dele era vip.lua entao era so mudar. Duvida Sanada.
  7. <movevent type="StepIn" actionid="13540" event="script" value="vip.lua"/>
  8. so o systema. mapa fiz do 0% meu orgulho ele haha. erei postar td pra voce. vocations etc..
  9. vou pegar no outro pc dps. porque tem que adc monta de coisa ainda. no login.lua tem monte de coisa ainda . irei postar aqui dps.
  10. @edit
  11. vei o vodkart concerto os erros. eo resto pelo msn pramim. eu sou o lfelipebsilva05 ^^. ta faltando um pá de coisa ai ainda ;s
  12. http://www.xtibia.com/forum/topic/53226-item-que-avanca-skill/ rep+?
  13. sistemavip.lua function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Você nao e VIP compre agora mesmo!", msgWelcome = "Bem Vindo a area VIP!" } if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end <movevent type="StepIn" actionid="13540" event="script" value="sistemavip.lua"/>
  14. RESOLVIDO. galera que nao conseguil. vai pelo mapa editor. e bota a actionID : 503 no trem. rep+?
  15. se voces querem pro ot rozin eu tenho o ot. e todas scripts e varias outras mais ^^. esse dai de cima ainda falta algumas coisas. a vodkart fez ele pra mim. <talkaction words="!promo" script="NOME DO ARQUIVO.lua"/>
  16. function onSay(cid, words, param) config = { level= 10000, -- level para resetar RemainingLvl=8, -- level que ficara depois do reset exper=4200, -- Experiência que ficara depois do Reset pid=getPlayerGUID(cid), -- Não Mecha skull="yes", -- Players com Skull podem resetar "yes" para sim e "no" para não redskull="yes",-- Players com Red Skull podem resetar "yes" para sim e "no" para não prot="yes", -- precisa estar em area pz para resetar "yes" para sim e "no" para não bat="yes", -- player com fight pode resetar "yes para sim e "no" para não voc = getPlayerVocation(cid), -- Não mecha mana = 35, -- mana que ficara após o reset health = 185 -- Health que ficara após o reset } function getResets(cid) reset = getPlayerStorageValue(cid,1020) if reset < 0 then reset = 0 end return reset end if(config.skull == "no") and (getCreatureSkullType(cid) == 3) then doPlayerSendTextMessage(cid, 24, "apenas players sem white skull podem resetar.") return TRUE end if(config.redskull == "no") and (getCreatureSkullType(cid) == 4) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"apenas player sem red skull podem resetar.") return TRUE end if(config.prot == "yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder resetar.") return TRUE end if(config.bat == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder resetar.") return TRUE end if getPlayerLevel(cid) >= config.level then setPlayerStorageValue(cid,1020,getResets(cid)+1) doPlayerPopupFYI(cid,"you now was reset, you have "..getResets(cid)+(1).." reset\'s.") doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) if getPlayerVocation(cid) == 8 then -- Vocação que o player precisa ter doPlayerSetVocation(cid, 9) -- Vocação que o player ficara após o reset end doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper..",`manamax` = "..config.mana..",`healthmax` = "..config.health..",`health` = "..config.health..",`mana` = "..config.mana.." WHERE `id` = "..config.pid) else doPlayerSendCancel(cid, "Você precisa do level "..config.level.." ou mais para resetar.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end return TRUE end
  17. cara aqui nao deu erro no executor. mais eu clico no carrinho. vou parar em cima dele. mais fico com o addon que ja tava. e nao ando. uq faço?
  18. cara onde eu edito a formula dos danos? ta hitando mt. queria que desse hit bem baixo. e a aura durasse 1hora. como faço? obg'
  19. ja te respondi no outro topic.
  20. <?xml version="1.0" encoding="UTF-8"?> <npc name="Riona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="138" head="57" body="20" legs="15" feet="15" addons="3"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value="NOME,ID,PREÇO;NOME,ID,PREÇO"/> so adc mais se quiser. </parameters> </npc> rep+?
  21. Duvida Sanada.
  22. Primeiramente vá na pasta lib e crie um arquivo ItemsEditedLib.lua e adicione isso dentro: function doPlayerAddEditedItem(cid, itemid) local newxml = io.open("data/items/newitems.xml", "r") local configs = {} for i in newxml:read("*a"):gmatch("<item (.-)</item>") do local itemid = tonumber(i:match('id="(.-)"')) local itemconfig = { ["spriteid"] = tonumber(i:match('spriteid.-=.-"(.-)"')), ["article"] = i:match('article.-=.-"(.-)"'), ["name"] = i:match('name.-=.-"(.-)"'), ["description"] = i:match('key.-=.-"description".-value.-=.-"(.-)"'), ["defense"] = tonumber(i:match('key.-=.-"defense".-value.-=.-"(.-)"')), ["attack"] = tonumber(i:match('key.-=.-"attack".-value.-=.-"(.-)"')), ["extradefense"] = tonumber(i:match('key.-=.-"extradef".-value.-=.-"(.-)"')), ["armor"] = tonumber(i:match('key.-=.-"armor".-value.-=.-"(.-)"')), ["extraattack"] = tonumber(i:match('key.-=.-"extraatk".-value.-=.-"(.-)"')), } configs[itemid] = itemconfig end if configs[itemid] then local item = doPlayerAddItem(cid, configs[itemid].spriteid) for i,x in pairs(configs[itemid]) do doItemSetAttribute(item, i, x) end end end Depois vá na pasta items e adicione um arquivo newitems.XML (XML NAO LUA!!!) e adicione isso dentro: <?xml version="1.0" encoding="UTF-8"?> <items> <item id="100" spriteid="2400" article="a" name="magic edited sword"> <attribute key="description" value="Arma editada." /> <attribute key="defense" value="45" /> <attribute key="attack" value="100" /> <attribute key="extradef" value="10" /> <attribute key="extraatk" value="10" /> </item> <item id="101" spriteid="2472" article="a" name="master plate armor"> <attribute key="description" value="Armor editada." /> <attribute key="armor" value="19" /> </item> </items> Bem como voces podem ver, o xml guarda os novos items, o xml funciona praticamente como o items.xml so que tem um novo campo o "spriteid", nele fica o itemid original. Atributos: "description" "defense" "attack" "extradefense" "armor" "extraattack" Para adicionar os novos itemids aos players use doPlayerAddEditedItem(cid, ITEMID) em vez de doPlayerAddItem...
  23. Tchubaka

    Refsystem

    entao e so você modificar. ta tudo explicadinho cara.'
  24. Tchubaka

    Refsystem

    http://www.xtibia.com/forum/topic/130591-action-sistema-de-refinamento-perfeito/ usa esse e so mude os atributos. ajudei?rep+
  • Quem Está Navegando   0 membros estão online

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