Cerere Tutorial Efecte

Închis
Avatar utilizator
RaveNreal
Nivel 1

Nivel 1
Mesaje: 72
Membru din: 02 Ian 2021, 02:37
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 398  
Medalii

Pentru că sunt mai deștept de fel, aș avea și eu nevoie de un tutorial ceva dacă are cineva în legătură cu, cum s-ar adăuga efecte pe un serverfiles, știu că tine de playersettingmodule, l-am făcut ceva-n genu
	chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+133, "Bip01", "D:/ymir work/effect/ridack_work/ridack_effect/ridack_dragoneffect/ridack_redv10/ridack_redarmor.mse")
	chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+134, "Bip01", "D:/ymir work/effect/ridack_work/ridack_effect/ridack_dragoneffect/ridack_yellowv10/ridack_yellowarmor.mse")
Dacă imi poate spune cineva ce și cum e de făcut, să pot băga și eu efecte, vă rog.
Pentru acest mesaj, RaveNreal for the post:
mrviking95
Avatar utilizator
MapshitoWork
Utilizator interzis !

Utilizator interzis !
Mesaje: 68
Membru din: 28 Iun 2020, 12:38
Regat: Jinno
Aprecieri: 4  
Mulţumiri: 223  
Discord: Copiază ID
Medalii

Acest tutorial te ajuta ca sa adaugi effect pe iteme. ( adica cand ai echipat acel item iti activeaza acel effect).
Nu este facut de mine tutorialul este luat de pe dev
/// UserInterface -> Packet.h ///

Search: SE_EQUIP_RAMADAN_RING,
Add below: SE_EQUIP_WELES_RING1

/// UserInterface -> InstanceBase.h ///

Search: EFFECT_RAMADAN_RING_EQUIP,
Add below: EFFECT_WELES_RING1_EQUIP,
// UserInterface -> PythonCharacterManagerModule.cpp ///

Search: PyModule_AddIntConstant(poModule, "EFFECT_RAMADAN_RING_EQUIP", CInstanceBase::EFFECT_RAMADAN_RING_EQUIP);
Add below: PyModule_AddIntConstant(poModule, "EFFECT_WELES_RING1_EQUIP", CInstanceBase::EFFECT_WELES_RING1_EQUIP);

/// UserInterface -> PythonNetworkStreamPhaseGameItem.cpp ///

Search:

case SE_EQUIP_RAMADAN_RING:
effect = CInstanceBase::EFFECT_RAMADAN_RING_EQUIP;
break;

Add below:

case SE_EQUIP_WELES_RING1:
effect = CInstanceBase::EFFECT_WELES_RING1_EQUIP;
break;

/// game/src -> char_item.cpp ///

Search:

if (true == CItemVnumHelper::IsRamadanMoonRing(dwVnum))
{
this->EffectPacket(SE_EQUIP_RAMADAN_RING);
}

Add below:
else if (true == CItemVnumHelper::IsWELESRing1(dwVnum))
{
this->EffectPacket(SE_EQUIP_WELES_RING1);
}

/// game/src -> item.cpp ///

Search:
if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum())
|| true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum()))

Add to the function: || true == CItemVnumHelper::IsWELESRing1(GetVnum())

Example:

if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum())
|| true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum())
|| true == CItemVnumHelper::IsWELESRing1(GetVnum()))

/// common -> leght.h ///

Search: SE_EQUIP_RAMADAN_RING,
Add below: SE_EQUIP_WELES_RING1,

/// common -> VnumHelper.h ///

Search: static const bool IsRamadanMoonRing(DWORD vnum) { return 71135 == vnum; }
Add below: static const bool IsWELESRing1(DWORD vnum) { return YOUR_ID == vnum; }

/// root -> playersettingsmodule.py ///

Search: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_RAMADAN_RING_EQUIP, "", "d:/ymir work/effect/etc/buff/buff_item1.mse")
Add below: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_WELES_RING1_EQUIP, "", "d:/ymir work/effect/etc/buff/your_effect.mse")

/// item_proto ///

Type: 16
Subtype: 0
WearFlags: 128
Pentru acest mesaj, MapshitoWork for the post:
RaveNreal
Avatar utilizator
RaveNreal
Nivel 1

Nivel 1
Mesaje: 72
Membru din: 02 Ian 2021, 02:37
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 398  
Medalii

MapshitoWork scrie: ↑12 Ian 2021, 08:11 Acest tutorial te ajuta ca sa adaugi effect pe iteme. ( adica cand ai echipat acel item iti activeaza acel effect).
Nu este facut de mine tutorialul este luat de pe dev
/// UserInterface -> Packet.h ///

Search: SE_EQUIP_RAMADAN_RING,
Add below: SE_EQUIP_WELES_RING1

/// UserInterface -> InstanceBase.h ///

Search: EFFECT_RAMADAN_RING_EQUIP,
Add below: EFFECT_WELES_RING1_EQUIP,
// UserInterface -> PythonCharacterManagerModule.cpp ///

Search: PyModule_AddIntConstant(poModule, "EFFECT_RAMADAN_RING_EQUIP", CInstanceBase::EFFECT_RAMADAN_RING_EQUIP);
Add below: PyModule_AddIntConstant(poModule, "EFFECT_WELES_RING1_EQUIP", CInstanceBase::EFFECT_WELES_RING1_EQUIP);

/// UserInterface -> PythonNetworkStreamPhaseGameItem.cpp ///

Search:

case SE_EQUIP_RAMADAN_RING:
effect = CInstanceBase::EFFECT_RAMADAN_RING_EQUIP;
break;

Add below:

case SE_EQUIP_WELES_RING1:
effect = CInstanceBase::EFFECT_WELES_RING1_EQUIP;
break;

/// game/src -> char_item.cpp ///

Search:

if (true == CItemVnumHelper::IsRamadanMoonRing(dwVnum))
{
this->EffectPacket(SE_EQUIP_RAMADAN_RING);
}

Add below:
else if (true == CItemVnumHelper::IsWELESRing1(dwVnum))
{
this->EffectPacket(SE_EQUIP_WELES_RING1);
}

/// game/src -> item.cpp ///

Search:
if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum())
|| true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum()))

Add to the function: || true == CItemVnumHelper::IsWELESRing1(GetVnum())

Example:

if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum())
|| true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum())
|| true == CItemVnumHelper::IsWELESRing1(GetVnum()))

/// common -> leght.h ///

Search: SE_EQUIP_RAMADAN_RING,
Add below: SE_EQUIP_WELES_RING1,

/// common -> VnumHelper.h ///

Search: static const bool IsRamadanMoonRing(DWORD vnum) { return 71135 == vnum; }
Add below: static const bool IsWELESRing1(DWORD vnum) { return YOUR_ID == vnum; }

/// root -> playersettingsmodule.py ///

Search: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_RAMADAN_RING_EQUIP, "", "d:/ymir work/effect/etc/buff/buff_item1.mse")
Add below: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_WELES_RING1_EQUIP, "", "d:/ymir work/effect/etc/buff/your_effect.mse")

/// item_proto ///

Type: 16
Subtype: 0
WearFlags: 128
Mersi, dar caut sa fie efect normal, nu pus pe o arma/armura
Avatar utilizator
Ionutud
Nivel 3

Nivel 3
Mesaje: 448
Membru din: 27 Feb 2016, 16:45
Aprecieri: 206  
Mulţumiri: 643  
Discord: Copiază ID
Medalii

Adica efect normal ? Vrei ca armura/arma x cand o pui pe tine , sa aiba deja un efect sau vrei un obiect separat pe care sa il pui pe tine si sa apara un efect
Din ce ai facut tu in playersettingmodule, pare sa cauti tutorial pentru un obiect separat pe care il pui pe tine si apare efectul
Imagine
Afișează semnătura
Avatar utilizator
RaveNreal
Nivel 1

Nivel 1
Mesaje: 72
Membru din: 02 Ian 2021, 02:37
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 398  
Medalii

gargantus scrie: ↑12 Ian 2021, 17:05 Adica efect normal ? Vrei ca armura/arma x cand o pui pe tine , sa aiba deja un efect sau vrei un obiect separat pe care sa il pui pe tine si sa apara un efect
Din ce ai facut tu in playersettingmodule, pare sa cauti tutorial pentru un obiect separat pe care il pui pe tine si apare efectul
obiect separat, sa fie un item, care cand il pui pe tine să aibă un efect, am sistem-ul băgat, am fumuri băgate în server, dar vreau să aflu pe unde se adaugă să fie băgate bine.




EDIT---
se modifica playersettingsmodule, adaugi ce am adaugat mai sus doar ca, cu ce ai tu nevoie/la ce ai de bagat
adaugi in item proto, doar ca Value0 trebuie sa fie după #, consecutiv, e.g
	chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+39, "Bip01", "D:/ymir work/effect/texturen/orange_dragon.mse") #268
	chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+40, "Bip01", "D:/ymir work/effect/texturen/green_dragon.mse") #269
	chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+41, "Bip01", "D:/ymir work/effect/texturen/blue_dragon.mse")#270
după adaugi in item proto din navicat, la fel value0 să fie acel numar dupa #, la voi probabil să fie diferit, dar numarul acela care o sa fie consecutiv la linie fiecare linie
item proto in joc cam așa ar arăta
ItemDef Vnum="49012" Name="Blue Armor Effect" LocalizedName="Orange Dragon Effect" Type="28" SubType="3" Weight="0" Size="1" AntiFlags="0" Flags="0" WearFlags="8192" ImmuneFlags="0" Gold="0" ShopBuyPrice="0" LimitType0="0" LimitValue0="0" LimitType1="0" LimitValue1="0" ApplyType0="1" ApplyValue0="2000" ApplyType1="73" ApplyValue1="10" ApplyType2="0" ApplyValue2="0" Value0="268" Value1="0" Value2="0" Value3="43138" Value4="0" Value5="0" Socket0="0" Socket1="0" Socket2="0" RefinedVnum="0" RefineSet="0" AlterToMagicItemPercent="0" Specular="0" GainSocketPercent="0" AddonType="0"  />
	<ItemDef Vnum="49013" Name="Blue Armor Effect" LocalizedName="Green Dragon Effect" Type="28" SubType="3" Weight="0" Size="1" AntiFlags="0" Flags="0" WearFlags="8192" ImmuneFlags="0" Gold="0" ShopBuyPrice="0" LimitType0="0" LimitValue0="0" LimitType1="0" LimitValue1="0" ApplyType0="1" ApplyValue0="2000" ApplyType1="73" ApplyValue1="10" ApplyType2="0" ApplyValue2="0" Value0="269" Value1="0" Value2="0" Value3="43138" Value4="0" Value5="0" Socket0="0" Socket1="0" Socket2="0" RefinedVnum="0" RefineSet="0" AlterToMagicItemPercent="0" Specular="0" GainSocketPercent="0" AddonType="0"  />
	<ItemDef Vnum="49014" Name="Blue Armor Effect" LocalizedName="Blue Dragon Effect" Type="28" SubType="3" Weight="0" Size="1" AntiFlags="0" Flags="0" WearFlags="8192" ImmuneFlags="0" Gold="0" ShopBuyPrice="0" LimitType0="0" LimitValue0="0" LimitType1="0" LimitValue1="0" ApplyType0="1" ApplyValue0="2000" ApplyType1="73" ApplyValue1="10" ApplyType2="0" ApplyValue2="0" Value0="270" Value1="0" Value2="0" Value3="43138" Value4="0" Value5="0" Socket0="0" Socket1="0" Socket2="0" RefinedVnum="0" RefineSet="0" AlterToMagicItemPercent="0" Specular="0" GainSocketPercent="0" AddonType="0"  />
iar cel din navicat
"49012"	"Blue Armor Effect"	"Orange Dragon Effect"	"28"	"3"	"0"	"1"	"0"	"0"	"8192"		"1000"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"1"	"2000"	"73"	"10"	"0"	"0"	"268"	"0"	"0"	"43138"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"
"49013"	"Blue Armor Effect"	"Green Dragon Effect"	"28"	"3"	"0"	"1"	"0"	"0"	"8192"		"1000"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"1"	"2000"	"73"	"10"	"0"	"0"	"269"	"0"	"0"	"43138"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"
"49014"	"Blue Armor Effect"	"Blue Dragon Effect"	"28"	"3"	"0"	"1"	"0"	"0"	"8192"		"1000"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"1"	"2000"	"73"	"10"	"0"	"0"	"270"	"0"	"0"	"43138"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"	"0"
după un icon și ar trebuii să meargă.

Mulțumesc mult pentru ajutor gargantus!
Avatar utilizator
Frank
Nivel 4

Nivel 4
Mesaje: 667
Membru din: 12 Mar 2015, 22:59
Server: ---
Regat: Chunjo
Aprecieri: 44  
Mulţumiri: 28  
 Contact:
Medalii

Mutat in Cereri Rezolvate.
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
214
Răspunsuri
2
Vizualizări
358

Înapoi la “Cereri Rezolvate”

  • Informaţie