1
AYUDA CON UN SCRIPTS el Lun Sep 21, 2020 3:31 pm
AmonGod

Miembro



ESTE ES EL SCRIPTS
- Código:
local tempo = 5
function onLogin(cid)
local stor = getPlayerStorageValue(cid,11117) >= 1
if (Stor) then
StorageEffect(cid)
end
end
function Storageefect(cid)
if isPlayer(cid) then
doSendAnimatedText(getCreaturePosition(cid), "[EPIC]", TEXTCOLOR_LIGHTBLUE)
doSendMagicEffect(getCreaturePosition(cid), 36)
addEvent(StorEffect, tempo*1000, cid)
end
return TRUE
end
ESTOY COLOQUE EN EL CREATURESCRIPTS.XML
- Código:
<event type="login" name="storefect" script="storefect.lua"/>
Y ESTE FUE EL QUE COLOQUE EN LOGIN.LUAR
- Código:
function onLogin(cid)
if(getPlayerStorageValue(cid, 11117) >=1) then
doSendMagicEffect(getCreaturePosition(cid), 36)
end
return TRUE
end
return true