Cod: Selectaţi tot
when logout with pc.get_map_index() == 13 begin
pc.remove_polymorph()
endCod: Selectaţi tot
when logout with pc.get_map_index() == 13 begin
pc.remove_polymorph()
endadiutsu scrie:Nu merge.. Nu se transforma .. Se face doar efectul de transformare dar nu se transforma
//@svn/Source/Server/game/src/common/service.h
//1.) Add where you want:
#define ENABLE_TRANSFORM_PLAYER_OX
//#define ENABLE_TRANSFORM_PLAYER_VIP
//@svn/Source/Server/game/src/common/length.h
//1.) Search:
#define __INC_METIN_II_LENGTH_H__
//2.) Add bellow:
#include "../../common/service.h"
//#3.) Search:
enum EJobs
{
JOB_WARRIOR,
JOB_ASSASSIN,
JOB_SURA,
JOB_SHAMAN,
JOB_MAX_NUM
};
//#4.) Add bellow:
#ifdef ENABLE_TRANSFORM_PLAYER_OX
enum ETypeInformationsEventOx
{ //@functionMe492
OX_MOBNAME_PLAYER = 101, // MobVnum
OX_MOBNAME_VIP = 102, // MobVnum
OX_MAPINDEX = 113, // MapIndex
OX_TIME_AFFECT = 60*60*24*7, // Is not important time because when you will finish event ox, will be removed to 0.
};
#endif
//@svn/Source/Server/game/src/game/affect.h
//#1.) Search:
AFFECT_BLEND,
//#2.) Add bellow:
#ifdef ENABLE_TRANSFORM_PLAYER_OX
AFFECT_POLYMORPH_OX,
#endif
//@svn/Source/Server/game/src/game/input_login.cpp
//#1.) Search:
if (ch->GetHorseLevel() > 0)
{
DWORD pid = ch->GetPlayerID();
if (pid != 0 && CHorseNameManager::instance().GetHorseName(pid) == NULL)
db_clientdesc->DBPacket(HEADER_GD_REQ_HORSE_NAME, 0, &pid, sizeof(DWORD));
ch->SetHorseLevel(ch->GetHorseLevel());
ch->SkillLevelPacket();
}
//#2.) Add bellow:
#ifdef ENABLE_TRANSFORM_PLAYER_OX
if (ch->GetMapIndex() == OX_MAPINDEX)
{
#ifdef ENABLE_TRANSFORM_PLAYER_VIP
if (ch->GetGMLevel() == GM_VIP) /* VIP */
{
ch->SetPolymorph(OX_MOBNAME_VIP);
}
#endif
else if (ch->GetGMLevel() == GM_PLAYER) /* Player */
{
ch->SetPolymorph(OX_MOBNAME_PLAYER);
}
ch->AddAffect(AFFECT_POLYMORPH_OX, 0, 0, AFF_NONE, OX_TIME_AFFECT , 0, true, false);
}
#endif
//@svn/Source/Server/game/src/game/OXEvent.cpp
//1.) Search:
#include "desc.h"
//2.) Add bellow:
#ifdef ENABLE_TRANSFORM_PLAYER_OX
#include "affect.h"
#include "../../common/service.h"
#endif
//1.) Search:
if (pkChar != NULL)
pkChar->WarpSet(EMPIRE_START_X(pkChar->GetEmpire()), EMPIRE_START_Y(pkChar->GetEmpire()));
//2.) Add bellow:
#ifdef ENABLE_TRANSFORM_PLAYER_OX
if (pkChar->IsPolymorphed())
{
pkChar->SetPolymorph(0);
pkChar->RemoveAffect(AFFECT_POLYMORPH_OX); // Fix remove polymorph @function493
}
#endifStiu ca a trecut multi ani de cand este topicul respectiv , Dar oare este vreo sansa sa imi adaugati si mie asta pe quest adica cand iese din mapa de ox sa nu mai fie transformati ? Multumescaqdasfg1 scrie: ↑29 Ian 2016, 13:41 Pentru a sterse transformarea dupa ce incheiati ox-ul, folositi in quest:
http://just4metin.ro/quest-uri/polymorph-t38295.htmlCod: Selectaţi tot
when logout with pc.get_map_index() == 13 begin pc.remove_polymorph() end
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 4 vizitatori