Postado Novembro 13, 2014 10 anos Queria pedir para adaptar esse script para o sistema Vip do mock. local time = 5 local random = math.random(1, 255) local info = { {effect = 29, storage = 9911, message = "VIP"} } function effect(cid) if (isPlayer(cid)) then if getPlayerStorageValue(cid, info.storage) >= 1 then doSendMagicEffect(getCreaturePosition(cid), info.effect) end addEvent(effect, time * 1000, cid) end end function onLogin(cid) if getPlayerStorageValue(cid, info.storage) >= 1 then doSendMagicEffect(getCreaturePosition(cid), info.effect) doCreatureSay(cid, info.message, random) end return 1 end Se desse para alguém ajudar agradeço
Postado Novembro 13, 2014 10 anos vá em data/globalevents/scripts e crie um arquivo chamado vipEffect.lua e cole isto dentro: function onThink(interval, lastExecution) for _, name in ipairs(getOnlinePlayers()) do local cid = getPlayerByName(name) if getPlayerStorageValue(cid, 13540) >= 1 then doSendMagicEffect(getPlayerPosition(cid), 66) doSendAnimatedText(getPlayerPosition(cid), "VIP", TEXTCOLOR_YELLOW) end end return true end agóra vai em globalevents.xml e adicione isso <globalevent name="vipEffect" interval="3000" script="vipEffect.lua"/> Configure aqui: if getPlayerStorageValue(cid, 13540) >= 1 then em vermelho o Storage da sua vip
Postado Novembro 15, 2014 10 anos Autor Dieguiin XP o sistema do mock não tem storage, usa isso vip.hasVip(cid).
Postado Novembro 15, 2014 10 anos local time = 5 local random = math.random(1, 255) local info = { {effect = 29, storage = 9911, message = "VIP"} } function effect(cid) if (isPlayer(cid)) then if vip.hasVip(cid) == true then doSendMagicEffect(getCreaturePosition(cid), info.effect) end addEvent(effect, time * 1000, cid) end end function onLogin(cid) if vip.hasVip(cid) == true then doSendMagicEffect(getCreaturePosition(cid), info.effect) doCreatureSay(cid, info.message, random) end return 1 end
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.