- Mesaj
- 4.951
- Çözümler
- 210
- Beğeni
- 5.258
- Puan
- 2.850
- Ticaret Puanı
- 7
selam. 9. skilleri ekledim. normalde şu sayfada sağ en altta gözükmesi lazım. fakat gözükmüyor. ben mi yanlış ekledim diye kontrol ederken tüm slotlara deniyordum. 7 ve 8. becerinin slotuna oturuyor ama 9. tarafa oturmuyor. owsap optimizasyon ile alakalı olduğunu düşünüyorum. aşağıya bazı şüphelendiğim kısımları koyucam. fikri olan varsa konuşup çözümüne bakalım.
C++:
//179'lar skiller. soldan sağa doğru sayarken 9. sıradaki 179 u okuyup oraya koyması lazım aslında
//hepsine 179 koydum ama olması gereken yeri aslında 3. 179
{ NRaceData::JOB_SURA, {
{ 1, { 61, 62, 63, 64, 65, 66, 179, 179, 179, 179, 137, 0, 138, 0, 139, 0, 0, 0, 0, 0, 164, 165, 166, 167, 0, 0, 0, 0, 0, 0, }},
{ 2, { 76, 77, 78, 79, 80, 81, 0, 0, 180, 0, 137, 0, 138, 0, 139, 0, 0, 0, 0, 0, 164, 165, 166, 167, 0, 0, 0, 0, 0, 0, }},
}},
//oyuncu becerilerini çektiği kısım burası
// Player Skills
if (g_vMapPlayerSkillIndex.find(c_bJob) != g_vMapPlayerSkillIndex.end() &&
g_vMapPlayerSkillIndex.at(c_bJob).find(c_bSkillGroupIndex) != g_vMapPlayerSkillIndex.at(c_bJob).end())
{
const SkillIndexVector& c_vPlayerSkillIndex = g_vMapPlayerSkillIndex.at(c_bJob).at(c_bSkillGroupIndex);
for (std::size_t nIndex = 0; nIndex < c_vPlayerSkillIndex.size(); nIndex++)
{
// 7¹ø 8¹ø ½ºÅ³Àº ¿©±â¼ ¼³Á¤ÇÏ¸é ¾ÈµÊ
if (nIndex != 7 && nIndex != 8)
CPythonPlayer::Instance().SetSkill(nIndex + 1, c_vPlayerSkillIndex[nIndex]);
}
}
Python:
#burada da her şey doğru gibi
## Active Slot
{
"name" : "Skill_Active_Slot",
"type" : "slot",
"x" : 0 + 16,
"y" : 0 + 15 + 15,
"width" : 223,
"height" : 190,
"image" : ICON_SLOT_FILE,
"slot" : (
{"index": 1, "x": 1, "y": 4, "width":32, "height":32},
{"index":21, "x":38, "y": 4, "width":32, "height":32},
{"index":41, "x":75, "y": 4, "width":32, "height":32},
{"index": 3, "x": 1, "y": 40, "width":32, "height":32},
{"index":23, "x":38, "y": 40, "width":32, "height":32},
{"index":43, "x":75, "y": 40, "width":32, "height":32},
{"index": 5, "x": 1, "y": 76, "width":32, "height":32},
{"index":25, "x":38, "y": 76, "width":32, "height":32},
{"index":45, "x":75, "y": 76, "width":32, "height":32},
{"index": 7, "x": 1, "y":112, "width":32, "height":32},
{"index":27, "x":38, "y":112, "width":32, "height":32},
{"index":47, "x":75, "y":112, "width":32, "height":32},
{"index": 9, "x": 1, "y":151, "width":32, "height":32},
{"index":29, "x":38, "y":151, "width":32, "height":32},
{"index":49, "x":75, "y":151, "width":32, "height":32},
####
{"index": 2, "x":113, "y": 4, "width":32, "height":32},
{"index":22, "x":150, "y": 4, "width":32, "height":32},
{"index":42, "x":187, "y": 4, "width":32, "height":32},
{"index": 4, "x":113, "y": 40, "width":32, "height":32},
{"index":24, "x":150, "y": 40, "width":32, "height":32},
{"index":44, "x":187, "y": 40, "width":32, "height":32},
{"index": 6, "x":113, "y": 76, "width":32, "height":32},
{"index":26, "x":150, "y": 76, "width":32, "height":32},
{"index":46, "x":187, "y": 76, "width":32, "height":32},
{"index": 8, "x":113, "y":112, "width":32, "height":32},
{"index":28, "x":150, "y":112, "width":32, "height":32},
{"index":48, "x":187, "y":112, "width":32, "height":32},
),
},