Postado Julho 21, 2014 10 anos Olá, Alguem me ajuda com script preciso de um code pro player usar e recuperar toda stamina dele e outro pro item dar todas as bless ao player. E tem um detalhe, o item de stamina só pode usa 1x e o de bless infinito. obrigado Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
Postado Julho 21, 2014 10 anos DAFUCK BUSCA no Data/lib By : Overlord Si quieres hacer tutoriales y ganar dinero , acorta tus URL por AdFly - http://adf.ly/?id=7342566 AdFly Gana dinero por compartir tus enlaces!
Postado Julho 21, 2014 10 anos Autor DAFUCK BUSCA no Data/lib Não entendi.. Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
Postado Julho 21, 2014 10 anos Brother, fiz agora o da stamina, qualquer erro me avise. data/actions/scripts crie absolutestamina.lua e adicione dentro: function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doPlayerRemoveItem(cid, 16999, 1) end return true end Em actions.xml: <action itemid="16999" event="script" value="absolutestamina.lua"/> Aqui em doPlayerRemoveItem(cid, 16999, 1) = 16999 é o ID do item da stamina que vai ser removido Entenda tudo sobre VPS, DEDICADOS & HOSPEDAGENS. => Clique aqui Global Full Download 10.9x - TFS 1.2/FERUMBRAS/KRAILOS. => Clique aqui Muitos querem aquilo que você tem, mas vão desistir quando souberem o preço que você pagou. lu.lukinha [email protected]
Postado Julho 23, 2014 10 anos Brother, fiz agora o da stamina, qualquer erro me avise. data/actions/scripts crie absolutestamina.lua e adicione dentro: function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doPlayerRemoveItem(cid, 16999, 1) end return true end Em actions.xml: <action itemid="16999" event="script" value="absolutestamina.lua"/> Aqui em doPlayerRemoveItem(cid, 16999, 1) = 16999 é o ID do item da stamina que vai ser removido Não funcionou aqui não
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.