- Joined
- May 23, 2010
- Messages
- 185
- Reaction score
- 23
Hi guys, how are you?
I having some problems with a script, i got a storage but the description on my nick don't work.
I don't have any errors on console, but the script doesn't work, here:
look.lua
creature.xml
login.lua
I having some problems with a script, i got a storage but the description on my nick don't work.
I don't have any errors on console, but the script doesn't work, here:
look.lua
Code:
function onLogin(cid)
local storage = {
Orc_Guild = 40840,
Elf_Guild = 40841,
Minotaur_Guild = 40842,
Dwarf_Guild = 40843
}
if getPlayerStorageValue(cid, storage.Orc_Guild) == 1 then
doPlayerSetSpecialDescription(cid," Member of Orc Guild")
elseif getPlayerStorageValue(cid, storage.Elf_Guild) == 1 then
doPlayerSetSpecialDescription(cid," Member of Elf Guild")
elseif getPlayerStorageValue(cid, storage.Minotaur_Guild) == 1 then
doPlayerSetSpecialDescription(cid," Member of Minotaur Guild")
elseif getPlayerStorageValue(cid, storage.Dwarf_Guild) == 1 then
doPlayerSetSpecialDescription(cid," Member of Dwarf Guild")
end
return TRUE
end
creature.xml
Code:
<event type="login" name="lookLogin" event="script" value="look.lua"/>
login.lua
Code:
registerCreatureEvent(cid, "lookLogin")