• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Script] Full Vip Sistem Por Nights

Nightss

Normal People
Joined
May 18, 2013
Messages
55
Reaction score
12
Location
Mexicali
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;
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;
vipuo.png
vip2y.png

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"/>
vip1i.png

Espero Les Haya Servido ^^
 
Dentro del primer If de la acción que te da VIP se obtiene el valor actual por segunda vez, la cual esta de sobra.
Lua:
getPlayerStorageValue(cid, 11551)

El script solo puede ser usado cuando alguien no es VIP, así que esta de más obtener el valor actual del Storage.
Lua:
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 30))
 
Usa codes para que se vea mejor los scripts.
[XML.] [/XML.]

[LUA.] [/LUA.]


malo1.gif
 
Nightss, tengo unas dudas:

Es solo agegar el script y ya tendria vip?
No tengo que editar groups.xmll o algun creaturescript?
Y para vip tile?
 
Nightss, tengo unas dudas:

Es solo agegar el script y ya tendria vip?
No tengo que editar groups.xmll o algun creaturescript?
Y para vip tile?

Claro, tendrias VIP... pero no tiene ningun beneficio en este caso :p
(Aparte de abrir las puertas XD)
 
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;
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;
View attachment 21014
View attachment 21015

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"/>
View attachment 21018

Espero Les Haya Servido ^^


A mi me sale este error :c

[29/03/2015 14:38:57] [Error - LuaScriptInterface::loadFile] data/actions/scripts/VipDoor.lua:2: ')' expected near 'local'
[29/03/2015 14:38:57] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/VipDoor.lua)
[29/03/2015 14:38:57] data/actions/scripts/VipDoor.lua:2: ')' expected near 'local'
 
Back
Top