Oiie Gente Vou Ensinar Voces Como Criar 1 Comando !grim.
Para Quem Nao Sabe Este Comando Serve Para
Quando O Player Falar !grim
Ele Tera OS Certos Beneficios:
Ganhara +100 De Speed
Ficara Com A Outfit De Grim Reaper Por 100 segundos
Vao Na Pasta Data>talcktations>Script
Crei 1 Aquivo Chamado grim.lua
e Cola Isto
- [scripit By Vipstyle] --function onUse(cid, item)
local outfit = {lookType = 300} -- Outfit Do Comando
local exhaust = 50 -- Tempo para player poder usar novamente
local time = 100 -- tempo que ficara ativado
local speed = 100 -- velocidado que o player ficara (Aumente para ficar + rapido)
local mana = 300 -- a mana que o player gastara para usar o comando
local premium = "yes" -- player vips ~yes~(e se for o caso de ser so para vip) ~no~(para o caso de nao ser)
local storage = 9393 -- Aki nao mexa
if premium == "yes" and not isPremium(cid) then
return doPlayerSendTextMessage(cid, 23, "fail vc nao e premiun.")
end
if(getCreatureMana(cid) < mana) then
return doPlayerSendDefaultCancel(cid, RETURNVALUE_vc ta sem mana)
end
if (getPlayerStorageValue(cid, storage) <= os.time()) then
doCreatureSay(cid, "Yeeeah!!!\nYou went up on his ride.", 19)
doSetCreatureOutfit(cid, outfit, time*1000)
doChangeSpeed(cid, speed)
doSendMagicEffect(getCreaturePosition(cid), 34)
setPlayerStorageValue(cid, storage, os.time()+exhaust)
doPlayerAddMana(cid, -mana)
addEvent(doChangeSpeed, time*1000+40, cid, -speed)
addEvent(doPlayerSendTextMessage, time*1000+45, cid, 23, "Mount System is time out!")
addEvent(doSendMagicEffect, time*1000+50, getCreaturePosition(cid), 2)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid, "que presa espera o exausted")
end
return TRUE
end
Depois va em data>talcktations
Abra o talcktations.xml
Coloque Isto
<talkaction words="!grim" event="script" value="grim.lua"/>
Scripit nao testado Ok!