Ir para conteúdo
  • 0

Problema com Tutor


guelbow

Pergunta

Galera, o tutor do meu ot nao ta funfando, o group ip está como 2, e ja adicionei no char pelo sql e mesmo assim nao funfa, ele nao fala em vermelho, nao faz nada, o que pode estar acontecendo?

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

no talkactions.xml você escolhe o acesso necessário para usar os comandos, para dúvidas digite /commands dentro do game, para ver os comandos liberados. tem também um negócio que chama "flags" e "customflags", que muita gente ignora, mas é o mais importante para dar as funções para tutor, gm , etc:

 

enum PlayerFlags
{
PlayerFlag_CannotUseCombat = 0,   //2^0 = 1
PlayerFlag_CannotAttackPlayer,   //2^1 = 2
PlayerFlag_CannotAttackMonster,   //2^2 = 4
PlayerFlag_CannotBeAttacked,   //2^3 = 8
PlayerFlag_CanConvinceAll,   //2^4 = 16
PlayerFlag_CanSummonAll,   //2^5 = 32
PlayerFlag_CanIllusionAll,   //2^6 = 64
PlayerFlag_CanSenseInvisibility,  //2^7 = 128
PlayerFlag_IgnoredByMonsters,   //2^8 = 256
PlayerFlag_NotGainInFight,   //2^9 = 512
PlayerFlag_HasInfiniteMana,   //2^10 = 1024
PlayerFlag_HasInfiniteSoul,   //2^11 = 2048
PlayerFlag_HasNoExhaustion,   //2^12 = 4096
PlayerFlag_CannotUseSpells,   //2^13 = 8192
PlayerFlag_CannotPickupItem,   //2^14 = 16384
PlayerFlag_CanAlwaysLogin,   //2^15 = 32768
PlayerFlag_CanBroadcast,   //2^16 = 65536
PlayerFlag_CanEditHouses,   //2^17 = 131072
PlayerFlag_CannotBeBanned,   //2^18 = 262144
PlayerFlag_CannotBePushed,   //2^19 = 524288
PlayerFlag_HasInfiniteCapacity,   //2^20 = 1048576
PlayerFlag_CanPushAllCreatures,   //2^21 = 2097152
PlayerFlag_CanTalkRedPrivate,   //2^22 = 4194304
PlayerFlag_CanTalkRedChannel,   //2^23 = 8388608
PlayerFlag_TalkOrangeHelpChannel,  //2^24 = 16777216
PlayerFlag_NotGainExperience,   //2^25 = 33554432
PlayerFlag_NotGainMana,    //2^26 = 67108864
PlayerFlag_NotGainHealth,   //2^27 = 134217728
PlayerFlag_NotGainSkill,   //2^28 = 268435456
PlayerFlag_SetMaxSpeed,    //2^29 = 536870912
PlayerFlag_SpecialVIP,    //2^30 = 1073741824
PlayerFlag_NotGenerateLoot,   //2^31 = 2147483648
PlayerFlag_CanTalkRedChannelAnonymous,  //2^32 = 4294967296
PlayerFlag_IgnoreProtectionZone,  //2^33 = 8589934592
PlayerFlag_IgnoreSpellCheck,   //2^34 = 17179869184
PlayerFlag_IgnoreEquipCheck,   //2^35 = 34359738368
PlayerFlag_CannotBeMuted,   //2^36 = 68719476736
PlayerFlag_IsAlwaysPremium,   //2^37 = 137438953472
PlayerFlag_CanAnswerRuleViolations,  //2^38 = 274877906944
PlayerFlag_39, //ignore   //2^39 = 549755813888 //not used by us
PlayerFlag_ShowGroupNameInsteadOfVocation, //2^40 = 1099511627776
PlayerFlag_HasInfiniteStamina,   //2^41 = 2199023255552
PlayerFlag_CannotMoveItems,   //2^42 = 4398046511104
PlayerFlag_CannotMoveCreatures,   //2^43 = 8796093022208
PlayerFlag_CanReportBugs,   //2^44 = 17592186044416
PlayerFlag_45, //ignore   //2^45 = 35184372088832 //not used by us
PlayerFlag_CannotBeSeen,   //2^46 = 70368744177664
PlayerFlag_LastFlag
};

 

enum PlayerCustomFlags
{
PlayerCustomFlag_AllowIdle = 0,    //2^0 = 1
PlayerCustomFlag_CanSeePosition,   //2^1 = 2
PlayerCustomFlag_CanSeeItemDetails,   //2^2 = 4
PlayerCustomFlag_CanSeeCreatureDetails,   //2^3 = 8
PlayerCustomFlag_NotSearchable,    //2^4 = 16
PlayerCustomFlag_GamemasterPrivileges,   //2^5 = 32
PlayerCustomFlag_CanThrowAnywhere,   //2^6 = 64
PlayerCustomFlag_CanPushAllItems,   //2^7 = 128
PlayerCustomFlag_CanMoveAnywhere,   //2^8 = 256
PlayerCustomFlag_CanMoveFromFar,   //2^9 = 512
PlayerCustomFlag_CanLoginMultipleCharacters,  //2^10 = 1024 (account flag)
PlayerCustomFlag_HasFullLight,    //2^11 = 2048
PlayerCustomFlag_CanLogoutAnytime,   //2^12 = 4096 (account flag)
PlayerCustomFlag_HideLevel,    //2^13 = 8192
PlayerCustomFlag_IsProtected,    //2^14 = 16384
PlayerCustomFlag_IsImmune,    //2^15 = 32768
PlayerCustomFlag_NotGainSkull,    //2^16 = 65536
PlayerCustomFlag_NotGainUnjustified,   //2^17 = 131072
PlayerCustomFlag_IgnorePacification,   //2^18 = 262144
PlayerCustomFlag_IgnoreLoginDelay,   //2^19 = 524288
PlayerCustomFlag_CanStairhop,    //2^20 = 1048576
PlayerCustomFlag_CanTurnhop,    //2^21 = 2097152
PlayerCustomFlag_IgnoreHouseRent,   //2^22 = 4194304
PlayerCustomFlag_CanWearAllAddons,   //2^23 = 8388608
PlayerCustomFlag_LastFlag
};

 

Na pasta xml/gropus.xml voce edita o flags e customflags, vou dar um exemplo o grupo do tutor:

 

<group id="2" name="Tutor" flags="16809984" customFlags="2" access="1" violationReasons="4" nameViolationFlags="2"/>

 

Pra deixar pra ele não ser atacado nem atacar ninguem, voce soma 2 + 8 = 10

 


PlayerFlag_CannotAttackPlayer,   //2^1 = 2
PlayerFlag_CannotBeAttacked,   //2^3 = 8

 

Ai fica:

 

<group id="2" name="Tutor" flags="10" customFlags="2" access="1" violationReasons="4" nameViolationFlags="2"/>

 

Tem que ir somando o que voce quer por e colocar no final, tanto flags, quanto customflags.. qualquer dúvida posta ai, pois é meio complicado entender de inicio.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...