Exemple #1
0
        public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs)
        {
            helper.PreviewSprite = LuaHelper.GetSpriteFromViewId(tuple.GetIntNoThrow(ServerItemAttributes.ClassNumber), LuaHelper.ViewIdTypes.Weapon, helper.Db, tuple);

            if (helper.PreviewSprite == null)
            {
                helper.SetError(PreviewHelper.ViewIdNotSet);
                return;
            }

            helper.SetJobs(jobs);
        }
Exemple #2
0
        public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs)
        {
            helper.PreviewSprite = LuaHelper.GetSpriteFromViewId(helper.ViewId, LuaHelper.ViewIdTypes.Npc, helper.Db, tuple);

            if (helper.PreviewSprite == null)
            {
                helper.SetError(PreviewHelper.ViewIdNotSet);
                return;
            }

            helper.SetJobs(new List <Job>());
        }
Exemple #3
0
 public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs)
 {
     helper.SetError("Item type not supported.");
 }