Postado Abril 22, 2012 13 anos Galera eu tenho o script pronto porem ele esta como isvip eu queria q fosse por premium porem não consegui mudar! --[[ by vodkart ]]-- function onLogin(cid) if isPremium(cid) == TRUE then if(isInArray({1, 2, 3, 4}, getPlayerVocation(cid))) then doPlayerSetVocation(cid,getPlayerVocation(cid)+4) end elseif isPremium(cid) == FALSE and getPremiumTime(cid) == 0 then if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then -- id das vocation epic doPlayerSetVocation(cid,getPlayerVocation(cid)-4) end end return TRUE end
Postado Abril 22, 2012 13 anos kk script antigo em creaturescript/script/login.lua antes do último return true adc doPlayerSetPromotionLevel(cid, isPremium(cid) == FALSE and 0 or 1) [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Abril 22, 2012 13 anos Autor preciso colocar alguma tang no creaturescript.xml? aproveitando o topico como faço para esse script alem de mandar o player para o tempo remover a promote vip function onLogin(cid) if isPremium(cid) == TRUE then if getPlayerStorageValue(cid, 90907) == -1 then setPlayerStorageValue(cid, 90907, 1) end elseif isPremium(cid) == FALSE then if getPlayerStorageValue(cid, 90907) == 1 then setPlayerStorageValue(cid, 90907, -1) doPlayerSetTown(cid, 1) doTeleportThing(cid, {x = 160, y = 54, z = 7, stackpos = 1}, TRUE) doPlayerSendTextMessage(cid, 22, "Você foi teleportado para Xking City. Sua Vip terminou!") end end return TRUE end obrigado ai pela ajuda de todos
Postado Abril 22, 2012 13 anos depende, faz como eu te falei! Vai em creaturescript/script/login.lua antes do último return true vc coloca doPlayerSetPromotionLevel(cid, isPremium(cid) == FALSE and 0 or 1) if isPremium(cid) then setPlayerStorageValue(cid, 9898, 1) elseif getPlayerStorageValue(cid, 9898) == 1 and isPremium(cid) == FALSE then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerPopupFYI(cid, "Sua Premium Account acabou.") setPlayerStorageValue(cid, 9898, -1) end ou if isPremium(cid) and (isInArray({1, 2, 3, 4}, getPlayerVocation(cid))) then setPlayerStorageValue(cid, 9898, 1) doPlayerSetVocation(cid,getPlayerVocation(cid)+4) elseif getPlayerStorageValue(cid, 9898) == 1 and isPremium(cid) == FALSE and (isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerPopupFYI(cid, "Sua Premium Account acabou.") setPlayerStorageValue(cid, 9898, -1) doPlayerSetVocation(cid,getPlayerVocation(cid)-4) end Editado Abril 22, 2012 13 anos por Vodkart (veja o histórico de edições) [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
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.