Bueno Aqui Les Pasare Un Vip System "Remasterisado" Osease Que Sin Bugs Y Por Mi Very Happy Se Que Ya Hay Muchos Pero Me Gustaria Poner Un Post Resiente Por Si Tienen Dudas,Ojo Es El Puro Systema No Pondre El Check,Ni El Cuantos Dias Te Quedan No Pude Scriptear Todo Luego Lo Agrego Si Lo Desean
Primero Nos Vamos A Actions Y Creamos 2 Archivos.lua Con Los Nombres De VipSystem Y VipDoor Y Dentro de Ellos Ponemos
En El VipSystem;
Y En El VipDoor;
Y En Actions.xml Ponemos;
Asi Son Los Efectos;
EXTRA;
Si Quieren Que Salga Un Efecto Asi Como Presumiendo Que Eres Vip;
Ahora Pongamos El Efecto Vip Ojo No Pasa Nada Si No Lo Agregan Es Solo Algo Como Para Ver Que Player Es Vip O No, Nos Vamos A Globalevents Y Creamos Un Archivo.lua Con El Nombre EfectoVip.lua Y Dentro De El Agregamos
Y En GlobalEvents.xml
ponemos;
Espero Les Haya Servido ^^
Primero Nos Vamos A Actions Y Creamos 2 Archivos.lua Con Los Nombres De VipSystem Y VipDoor Y Dentro de Ellos Ponemos
En El VipSystem;
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,11551) < 1 then
if getPlayerLevel(cid) > 10 then
getPlayerStorageValue(cid, 11551)
doCreatureSay(cid, "Felicidades,Ahora Tienes Todos Los Derechos Vip", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 30))
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"Todavia No Lo Puedes Usar")
end
else
doPlayerSendCancel(cid,"Tu Ya Eres Vip..!")
end
return TRUE
end
Y En El VipDoor;
Code:
function onUse(cid, item, fromPosition, itemEx, toPosi
local cidPosition = getCreaturePosition(cid)
if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Pasala Bien En La Zona Vip.", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Bienvenido VIP Player!", TALKTYPE_ORANGE_1)
end
return TRUE
else
doCreatureSay(cid, "No Puedes Pasar,No Eres Vip", TALKTYPE_
ORANGE_1)
return TRUE
end
return FALSE
end
Y En Actions.xml Ponemos;
Code:
<action actionid="9874" script="VipDoor.lua" />
<action itemid="9653" script="VipSystem.lua"/>
Asi Son Los Efectos;
EXTRA;
Si Quieren Que Salga Un Efecto Asi Como Presumiendo Que Eres Vip;
Ahora Pongamos El Efecto Vip Ojo No Pasa Nada Si No Lo Agregan Es Solo Algo Como Para Ver Que Player Es Vip O No, Nos Vamos A Globalevents Y Creamos Un Archivo.lua Con El Nombre EfectoVip.lua Y Dentro De El Agregamos
Code:
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerStorageValue(cid, 11551) >= 1 then
doSendMagicEffect(getPlayerPosition(cid), 14)
doSendAnimatedText(getPlayerPosition(cid), "SoyVip", TEXTCOLOR_YELLOW)
end
end
return true
end
Y En GlobalEvents.xml
ponemos;
Code:
<globalevent name="EfectoVip" interval="3000" script="EfectoVip.lua"/>
Espero Les Haya Servido ^^