MCPcopy Create free account
hub / github.com/Norbyte/ositools / SkillBarGetItem

Function SkillBarGetItem

OsiInterface/Functions/PlayerFunctions.cpp:99–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 bool SkillBarGetItem(OsiArgumentDesc & args)
100 {
101 auto characterGuid = args[0].String;
102 auto slot = args[1].Int32;
103 auto skillBarItem = SkillBarGetSlot(characterGuid, slot);
104 if (skillBarItem == nullptr) return false;
105
106 if (skillBarItem->Type == esv::SkillBarItem::kItem) {
107 auto item = FindItemByHandle(skillBarItem->ItemHandle);
108 if (item != nullptr) {
109 args[2].String = item->MyGuid.Str;
110 return true;
111 } else {
112 return false;
113 }
114 } else {
115 return false;
116 }
117 }
118
119 bool SkillBarGetSkill(OsiArgumentDesc & args)
120 {

Callers

nothing calls this directly

Calls 2

SkillBarGetSlotFunction · 0.85
FindItemByHandleFunction · 0.85

Tested by

no test coverage detected