Problema iteme permanente

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
PandiCore
Nivel 1

Nivel 1
Mesaje: 79
Membru din: 26 Mai 2015, 08:41
Aprecieri: 297  
Mulţumiri: 1  
Medalii

*Problemă/Întrebare: Salut , am si eu o intrebare , de ce cand am activat deja critica , si vreau sa active alta merge? si cealanta ramane si ea activata , a mai patit cinvea?
Tipologie server(PvM / PvP): N/A
*Resursă folosită: *Link exclusiv J4M* sursa/python-sistem-roua-t84826.html
*ServerFiles utilizat:N/A
*Syserr:N/A
Poză:
Imagine
Avatar utilizator
Knop2017
Nou Venit

Nou Venit
Mesaje: 35
Membru din: 25 Iun 2017, 22:01
Server: Multe
Regat: Shinsoo
Aprecieri: 378  
Mulţumiri: 5  
Medalii

Problema vine sigur din faptul ca ai acest sistem care le face cu acel efect. Nu imi vine pe moment cum se numea acela dar de acolo vine.
Avatar utilizator
PandiCore
Nivel 1

Nivel 1
Mesaje: 79
Membru din: 26 Mai 2015, 08:41
Aprecieri: 297  
Mulţumiri: 1  
Medalii

UP..
Avatar utilizator
Titan
Metin Master

Metin Master
Mesaje: 2783
Membru din: 01 Iun 2015, 15:09
Server: In curand.
Regat: Chunjo
Aprecieri: 42  
Mulţumiri: 377  
  Rezolvări prob.: 3
Discord: Copiază ID
 Contact:
Medalii

Pentru că tu când dai click dreapta pe un item din alea pe un socket al lui probabil se setează o anumită valoare, dacă în verificarea sau what ever ai tu în uitooltip se găsește pe respectivul id respectiva valoare pe socket se setează acel efect, nu știu dacă-ți setează și affect-ul de 2 ori dar oricum tot ce ai tu nevoie e doar un check, dacă ai deja x item activ să nu-l mai poți activa.

Eventual lasă-mi char_item al tău și ăla din "sistem" că mi-e lene să descarc toate shit-urile
Imagine
Afișează semnătura
Avatar utilizator
PandiCore
Nivel 1

Nivel 1
Mesaje: 79
Membru din: 26 Mai 2015, 08:41
Aprecieri: 297  
Mulţumiri: 1  
Medalii

@Titan

Cod: Selectaţi tot

ccase NEW_MOVE_SPEED_POTION:
case NEW_ATTACK_SPEED_POTION:
{
EAffectTypes type = AFFECT_NONE;

if (item->GetVnum() == NEW_MOVE_SPEED_POTION)
type = AFFECT_MOV_SPEED;

if (item->GetVnum() == NEW_ATTACK_SPEED_POTION)
type = AFFECT_ATT_SPEED;

if (AFFECT_NONE == type)
break;

CAffect * pAffect = FindAffect(type);

if (NULL == pAffect)
{
EPointTypes bonus = POINT_NONE;
EAffectBits flag = AFF_NONE;

if (item->GetVnum() == NEW_MOVE_SPEED_POTION)
{
bonus = POINT_MOV_SPEED;
flag = AFF_MOV_SPEED_POTION;
}

if (item->GetVnum() == NEW_ATTACK_SPEED_POTION)
{
bonus = POINT_ATT_SPEED;
flag = AFF_ATT_SPEED_POTION;
}

AddAffect(type, bonus, item->GetValue(2), flag, INFINITE_AFFECT_DURATION, 0, true);

item->Lock(true);
item->SetSocket(0, true);
}
else
{
RemoveAffect(pAffect);
item->Lock(false);
item->SetSocket(0, false);
}
}
break;
case NEW_KRITIK_POTION:
case NEW_DELICI_POTION:
case NEW_DRAGON_1_POTION:
case NEW_DRAGON_2_POTION:
case NEW_DRAGON_3_POTION:
case NEW_DRAGON_4_POTION:
{
EAffectTypes type = AFFECT_NONE;

if (item->GetVnum() == NEW_KRITIK_POTION)
type = AFFECT_NEW_AFFECT_POTION_1;

if (item->GetVnum() == NEW_DELICI_POTION)
type = AFFECT_NEW_AFFECT_POTION_2;

if (item->GetVnum() == NEW_DRAGON_1_POTION)
type = AFFECT_NEW_AFFECT_POTION_3;

if (item->GetVnum() == NEW_DRAGON_2_POTION)
type = AFFECT_NEW_AFFECT_POTION_4;

if (item->GetVnum() == NEW_DRAGON_3_POTION)
type = AFFECT_NEW_AFFECT_POTION_5;

if (item->GetVnum() == NEW_DRAGON_4_POTION)
type = AFFECT_NEW_AFFECT_POTION_6;

if (AFFECT_NONE == type)
break;

CAffect * pAffect = FindAffect(type);

if (NULL == pAffect)
{
EPointTypes bonus = POINT_NONE;
EAffectBits flag = AFF_NONE;

if (item->GetVnum() == NEW_KRITIK_POTION)
{
bonus = POINT_CRITICAL_PCT;
}

if (item->GetVnum() == NEW_DELICI_POTION)
{
bonus = POINT_PENETRATE_PCT;
}

if (item->GetVnum() == NEW_DRAGON_1_POTION)
{
bonus = POINT_STEAL_HP;
}

if (item->GetVnum() == NEW_DRAGON_2_POTION)
{
bonus = POINT_ATT_BONUS;
}

if (item->GetVnum() == NEW_DRAGON_3_POTION)
{
bonus = POINT_STEAL_SP;
}

if (item->GetVnum() == NEW_DRAGON_4_POTION)
{
bonus = POINT_DEF_BONUS;
}

AddAffect(type, bonus, item->GetValue(2), flag, INFINITE_AFFECT_DURATION, 0, true);

item->Lock(true);
item->SetSocket(0, true);
}
else
{
RemoveAffect(pAffect);
item->Lock(false);
item->SetSocket(0, false);
}
}
break;
case NEW_SEBNEM_PEMBE:
case NEW_SEBNEM_KIRMIZI:
case NEW_SEBNEM_MAVI:
case NEW_SEBNEM_BEYAZ:
case NEW_SEBNEM_YESIL:
case NEW_SEBNEM_SARI:
{
EAffectTypes type = AFFECT_NONE;

if (item->GetVnum() == NEW_SEBNEM_PEMBE)
type = AFFECT_NEW_SEBNEM_POTION_1;

if (item->GetVnum() == NEW_SEBNEM_KIRMIZI)
type = AFFECT_NEW_SEBNEM_POTION_2;

if (item->GetVnum() == NEW_SEBNEM_MAVI)
type = AFFECT_NEW_SEBNEM_POTION_3;

if (item->GetVnum() == NEW_SEBNEM_BEYAZ)
type = AFFECT_NEW_SEBNEM_POTION_4;

if (item->GetVnum() == NEW_SEBNEM_YESIL)
type = AFFECT_NEW_SEBNEM_POTION_5;

if (item->GetVnum() == NEW_SEBNEM_SARI)
type = AFFECT_NEW_SEBNEM_POTION_6;

if (AFFECT_NONE == type)
break;

CAffect * pAffect = FindAffect(type);

if (NULL == pAffect)
{
EPointTypes bonus = POINT_NONE;
EAffectBits flag = AFF_NONE;

if (item->GetVnum() == NEW_SEBNEM_PEMBE)
{
bonus = POINT_PENETRATE_PCT;
}

if (item->GetVnum() == NEW_SEBNEM_KIRMIZI)
{
bonus = POINT_CRITICAL_PCT;
}

if (item->GetVnum() == NEW_SEBNEM_MAVI)
{
bonus = POINT_ATT_GRADE_BONUS;
}

if (item->GetVnum() == NEW_SEBNEM_BEYAZ)
{
bonus = POINT_DEF_GRADE_BONUS;
}

if (item->GetVnum() == NEW_SEBNEM_YESIL)
{
bonus = POINT_RESIST_MAGIC;
}

if (item->GetVnum() == NEW_SEBNEM_SARI)
{
bonus = POINT_ATT_SPEED;
}

AddAffect(type, bonus, item->GetValue(2), flag, INFINITE_AFFECT_DURATION, 0, true);

item->Lock(true);
item->SetSocket(0, true);
}
else
{
RemoveAffect(pAffect);
item->Lock(false);
item->SetSocket(0, false);
}
}
break;
Ultima oară modificat 05 Oct 2020, 09:37 de către Asky, modificat 1 dată în total.
Motiv: code
Avatar utilizator
PandiCore
Nivel 1

Nivel 1
Mesaje: 79
Membru din: 26 Mai 2015, 08:41
Aprecieri: 297  
Mulţumiri: 1  
Medalii

uppp
Avatar utilizator
Tropycal
Nivel 1

Nivel 1
Mesaje: 56
Membru din: 14 Aug 2020, 11:50
Regat: Chunjo
Aprecieri: 58  
Mulţumiri: 5  
Medalii

s-a raspuns si pe dev, ai problema la refreshslotbagwindow.
Avatar utilizator
PandiCore
Nivel 1

Nivel 1
Mesaje: 79
Membru din: 26 Mai 2015, 08:41
Aprecieri: 297  
Mulţumiri: 1  
Medalii

Tropycal scrie: ↑05 Oct 2020, 04:59 s-a raspuns si pe dev, ai problema la refreshslotbagwindow.
Nu are legatura..
Avatar utilizator
Tropycal
Nivel 1

Nivel 1
Mesaje: 56
Membru din: 14 Aug 2020, 11:50
Regat: Chunjo
Aprecieri: 58  
Mulţumiri: 5  
Medalii

PandiCore scrie: ↑05 Oct 2020, 09:28
Tropycal scrie: ↑05 Oct 2020, 04:59 s-a raspuns si pe dev, ai problema la refreshslotbagwindow.
Nu are legatura..
daca esti asa inteligent, dc ai mai postat aici?


celalata posibilitate e sa nu ai probleme la fiind affect
Avatar utilizator
Vaynz
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 729
Membru din: 07 Iun 2018, 15:16
Server: -
Regat: Chunjo
Aprecieri: 153  
Mulţumiri: 3618  
Medalii

Subiect inactiv, arhivat.
Închis
Răspunsuri
1
Vizualizări
477
Răspunsuri
11
Vizualizări
2032
Răspunsuri
5
Vizualizări
212

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot], Semrush [Bot] și 21 vizitatori