Postado Janeiro 12, 2015 10 anos i want: if getItemAttribute(itemEx.uid,'floorchange') == "north" then doSendMagicEffect(toPosition,2) doPlayerSendCancel(cid, "Sorry, not possible.") return true end or if getItemAttribute(itemEx.uid,'floorchange') == true then doSendMagicEffect(toPosition,2) doPlayerSendCancel(cid, "Sorry, not possible.") return true end but dont work :/ no error on console
Postado Janeiro 12, 2015 10 anos itemEx.uid is a correct value ? You don't need use "== true" to boolean, example: if getItemAttribute(itemEx.uid,'floorchange') then Atenciosamente, Bruno Minervino
Postado Janeiro 12, 2015 10 anos Autor yes is correct itemEx.uid because use action: function onUse(cid, item, fromPosition, itemEx, toPosition) and floorchange is null. :/ want check this: <attribute key="floorchange" />no way to read from items.xml ?
Postado Janeiro 12, 2015 10 anos floorchange is a valid attribute for items? Some attributes are customized by scripts. Editado Janeiro 12, 2015 10 anos por Bruno Minervino (veja o histórico de edições) Atenciosamente, Bruno Minervino
Postado Janeiro 12, 2015 10 anos Autor yes is valid on items.xml <item id="1385" name="stairs"> <attribute key="floorchange" value="north" /> </item> all ladders. bump
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.