Jump to content

florinrevine

Inactive Member
  • Posts

    125
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by florinrevine

  1. 0310 22:13:08398 :: CPythonNonPlayer::LoadNonPlayerData: invalid Mob proto type locale/ro/mob_proto
    0310 22:13:08398 :: LoadLocaleData - LoadMobProto(locale/ro/mob_proto) Error
    0310 22:13:08439 :: 
    networkModule.py(line:200) SetSelectCharacterPhase
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    introSelect.py(line:23) <module>
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    uiAffectShower.py(line:8) <module>
    system.py(line:130) __pack_import
    
    networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:invalid syntax (uiToolTip.py, line 321)
    
    0310 22:13:08440 :: ============================================================================================================
    0310 22:13:08440 :: Abort!!!!
    
    
    
    
    

    KMZ13lv.png

     

     

    VNiT0X7.png

     

    mob_proto.txt

    "Vnum"	"Name"	"Rank"	"Type"	"BattleType"	"Level"	"Size"	"AiFlags"	"MountCapacity"	"RaceFlags"	"ImmuneFlags"	"Empire"	"Folder"	"OnClick"	"St"	"Dx"	"Ht"	"Iq"	"MinDamage"	"MaxDamage"	"MaxHp"	"RegenCycle"	"RegenPercent"	"MinGold"	"MaxGold"	"Exp"	"Def"	"AttackSpeed"	"MoveSpeed"	"AggressiveHpPct"	"AggressiveSight"	"AttackRange"	"DropItemGroup"	"ResurrectionVnum"	"EnchantCurse"	"EnchantSlow"	"EnchantPoison"	"EnchantStun"	"EnchantCritical"	"EnchantPenetrate"	"ResistSword"	"ResistTwoHanded"	"ResistDagger"	"ResistBell"	"ResistFan"	"ResistBow"	"ResistFire"	"ResistElect"	"ResistMagic"	"ResistWind"	"ResistPoison"	"ResistClaw"	"DamMultiply"	"SummonVnum"	"DrainSp"	"MobColor"	"PolymorphItem"	"SkillLevel0"	"SkillVnum0"	"SkillLevel1"	"SkillVnum1"	"SkillLevel2"	"SkillVnum2"	"SkillLevel3"	"SkillVnum3"	"SkillLevel4"	"SkillVnum4"	"SpBerserk"	"SpStoneskin"	"SpGodspeed"	"SpDeathblow"	"SpRevive"
    101	"??"	"PAWN"	"MONSTER"	"MELEE"	1			0	"ANIMAL"		0	"stray_dog"	0	3	6	5	2	20	24	126	6	7	405	3402	12	4	100	100	0	2000	175	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	"1.0"	0	0	0	70104	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	
    
    
    

    mob_names.txt

    VNUM	LOCALE_NAME	
    101	Caine Salbatic
    
    
    

    Converted with dump_proto_galet.exe

     

    Thank you.

  2. Hello devs, I'm more than noob in C++ and I try to clean my source code (based mainline_released).

     

    If anyone know how to solve some bugs please write here, thanks.

    char.cpp:7221: warning: this decimal constant is unsigned only in ISO C90
    In file included from char_item.cpp:47:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:640: warning: comparison is always false due to limited range of data type
    char_item.cpp:666: warning: comparison is always false due to limited range of data type
    PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
    PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
    PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
    PetSystem.cpp:552: warning: unused variable 'petVID'
    char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
    char_item.cpp:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:5098: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
    char_item.cpp:5170: warning: unused variable 'wDestCell'
    char_item.cpp:5171: warning: unused variable 'bDestInven'
    constants.cpp:183: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:185: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:186: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:187: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:188: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:189: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:314: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:316: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:317: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:318: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:319: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:320: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:445: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:447: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:448: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:449: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:450: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:451: warning: this decimal constant is unsigned only in ISO C90
    char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
    char_item.cpp:6130: warning: array subscript has type 'char'
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
    char_item.cpp:6194: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
    char_item.cpp:6206: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
    char_item.cpp:7392: warning: unused variable 'itemType'
    char_item.cpp:7393: warning: unused variable 'itemSubType'
    char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
    char.cpp:3092: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:679: warning: control reaches end of non-void function
    char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
    char_state.cpp:901: warning: unused variable 'rider'
    cube.cpp: In function 'bool Cube_make(CHARACTER*)':
    cube.cpp:544: warning: comparison between signed and unsigned integer expressions
    cube.cpp: In function 'void Cube_MakeCubeInformationText()':
    cube.cpp:716: warning: unused variable 'npcVNUM'
    cube.cpp: In function 'bool Cube_InformationInitialize()':
    cube.cpp:783: warning: comparison between signed and unsigned integer expressions
    In file included from config.cpp:22:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    config.cpp: In function 'void config_init(const std::string&)':
    config.cpp:434: warning: NULL used in arithmetic
    config.cpp:458: warning: NULL used in arithmetic
    config.cpp:482: warning: NULL used in arithmetic
    config.cpp:504: warning: unused variable 'line'
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3997: warning: NULL used in arithmetic
    desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
    desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
    char_item.cpp:6241: warning: 'pBuff' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4419: warning: 'cell' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4039: warning: 'n' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
    cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
    input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
    input_auth.cpp:467: warning: unused variable 'last'
    In file included from item.cpp:22:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    item.h: In constructor 'CItem::CItem(DWORD)':
    item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
    item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
    item.cpp:25: warning:   when initialized here
    item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
    item.cpp:1739: warning: unused variable 'vnum'
    item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
    item.cpp:1772: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
    item.cpp:2028: warning: comparison between signed and unsigned integer expressions
    item.cpp:2030: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
    item.cpp:2052: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GetDuration()':
    item.cpp:2083: warning: array subscript has type 'char'
    input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
    input_main.cpp:757: warning: unused variable 'len_global'
    item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
    item_manager.cpp:604: warning: comparison between signed and unsigned integer expressions
    log.cpp:11: warning: '__escape_hint' defined but not used
    questlua.cpp: In member function 'bool quest::FPartyCheckFlagLt::operator()(CHARACTER*)':
    questlua.cpp:78: warning: 'returnBool' may be used uninitialized in this function
    questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:293: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:309: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:324: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:340: warning: unused variable 'q'
    questnpc.cpp: In member function 'bool quest::NPC::HandleEvent(quest::PC&, int)':
    questnpc.cpp:500: warning: unused variable 'pPC'
    utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)':
    utils.cpp:243: warning: NULL used in arithmetic
    utils.cpp:255: warning: NULL used in arithmetic
    utils.cpp:269: warning: NULL used in arithmetic
    shop.cpp: In member function 'virtual bool CShop::IsSellingItem(DWORD)':
    shop.cpp:576: warning: comparison between signed and unsigned integer expressions
    In file included from check_server.cpp:1:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()':
    group_text_parse_tree.h:93: warning: 'CGroupTextParseTreeLoader::m_dwcurLineIndex' will be initialized after
    group_text_parse_tree.h:91: warning:   'CGroupNode* CGroupTextParseTreeLoader::m_pRootGroupNode'
    group_text_parse_tree.cpp:5: warning:   when initialized here
    group_text_parse_tree.cpp: In member function 'bool CGroupTextParseTreeLoader::LoadGroup(CGroupNode*)':
    group_text_parse_tree.cpp:99: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.cpp: In member function 'bool CGroupNode::GetRow(int, const CGroupNode::CGroupNodeRow**) const':
    group_text_parse_tree.cpp:206: warning: comparison between signed and unsigned integer expressions
    ClientPackageCryptInfo.h: In constructor 'CClientPackageCryptInfo::CClientPackageCryptInfo()':
    ClientPackageCryptInfo.h:50: warning: 'CClientPackageCryptInfo::m_pSerializedCryptKeyStream' will be initialized after
    ClientPackageCryptInfo.h:48: warning:   'int CClientPackageCryptInfo::m_nCryptKeyPackageCnt'
    ClientPackageCryptInfo.cpp:9: warning:   when initialized here
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::ReadAdditionalApplys()':
    dragon_soul_table.cpp:223: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckApplyNumSettings()':
    dragon_soul_table.cpp:283: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckWeightTables()':
    dragon_soul_table.cpp:311: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineGradeTables()':
    dragon_soul_table.cpp:343: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:372: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStepTables()':
    dragon_soul_table.cpp:397: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:427: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStrengthTables()':
    dragon_soul_table.cpp:453: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonHeartExtTables()':
    dragon_soul_table.cpp:494: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:513: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp:522: warning: comparison between signed and unsigned integer expressions
    dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonSoulExtTables()':
    dragon_soul_table.cpp:545: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = std::string]':
    dragon_soul_table.cpp:129:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = BYTE]':
    dragon_soul_table.cpp:134:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = int]':
    dragon_soul_table.cpp:201:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = float]':
    dragon_soul_table.cpp:260:   instantiated from here
    group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = float]':
    dragon_soul_table.cpp:828:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = int]':
    group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = int]'
    group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = int]'
    dragon_soul_table.cpp:612:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
    group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = unsigned int]'
    group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = unsigned int]'
    dragon_soul_table.cpp:884:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
    buff_on_attributes.cpp:113: warning: unused variable 'old_value'
    buff_on_attributes.cpp:114: warning: unused variable 'new_value'
    char_dragonsoul.cpp: In member function 'bool CHARACTER::DragonSoul_ActivateDeck(int)':
    char_dragonsoul.cpp:91: warning: control reaches end of non-void function
    DragonSoul.cpp: In function 'int Gamble(std::vector<float, std::allocator<float> >&)':
    DragonSoul.cpp:19: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp:25: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp: In member function 'bool DSManager::RefreshItemAttributes(CItem*)':
    DragonSoul.cpp:203: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp: In member function 'bool DSManager::PutAttributes(CItem*)':
    DragonSoul.cpp:273: warning: comparison between signed and unsigned integer expressions
    DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
    DragonSoul.cpp:350: warning: unused variable 'sum'
    DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
    DragonSoul.cpp:435: warning: unused variable 'dwVnum'
    DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 3 has type 'double'
    DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 4 has type 'double'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:555: warning: unused variable 'prob_sum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:763: warning: unused variable 'sum'
    item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
    item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
    shopEx.cpp: In member function 'virtual int CShopEx::Buy(CHARACTER*, BYTE)':
    shopEx.cpp:159: warning: comparison between signed and unsigned integer expressions
    shop_manager.cpp: In function 'bool ConvertToShopItemTable(CGroupNode*, TShopTableEx&)':
    shop_manager.cpp:473: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
    group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = DWORD]'
    shop_manager.cpp:381:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]':
    group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = std::string]'
    shop_manager.cpp:387:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned char]':
    group_text_parse_tree.h:136:   instantiated from 'bool CGroupNode::GetValue(size_t, const std::string&, T&) const [with T = BYTE]'
    shop_manager.cpp:442:   instantiated from here
    group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
    In file included from main.cpp:93:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    item_manager_read_tables.cpp:627: warning: 'pkGroup' may be used uninitialized in this function
    
    
  3. Hello devs.

    I tried to compile working source files from FreeBSD 9.2 by Sanchez to other dedicated server with FreeBSD 10.1.

     

    Installed softwares:

    pkg install gmake
    pkg install boost-all
    pkg install subversion
    pkg install gcc48
    pkg install makedepend
     
    Error:
    
    gmake: *** No rule to make target '/usr/include/c++/4.2/vector', needed by '.obj/Config.o'.  Stop.
    
    

     

  4. gkvrjX2.png

     

     

    emotion.py

    import localeInfo
    import player
    import chrmgr
    import chr
    
    EMOTION_VERSION = 2
    
    if EMOTION_VERSION == 2:
    	EMOTION_CLAP = 1
    	EMOTION_CONGRATULATION = 2
    	EMOTION_FORGIVE = 3
    	EMOTION_ANGRY = 4
    	EMOTION_ATTRACTIVE = 5
    	EMOTION_SAD = 6
    	EMOTION_SHY = 7
    	EMOTION_CHEERUP = 8
    	EMOTION_BANTER = 9
    	EMOTION_JOY = 10
    	EMOTION_CHEERS_1 = 11
    	EMOTION_CHEERS_2 = 12
    	EMOTION_DANCE_1 = 13
    	EMOTION_DANCE_2 = 14
    	EMOTION_DANCE_3 = 15
    	EMOTION_DANCE_4 = 16
    	EMOTION_DANCE_5 = 17
    	EMOTION_DANCE_6 = 18
    	EMOTION_KISS = 51
    	EMOTION_FRENCH_KISS = 52
    	EMOTION_SLAP = 53
    
    	EMOTION_DICT = {
    		EMOTION_CLAP :			{"name": localeInfo.EMOTION_CLAP, 		"command":"/clap"},
    		EMOTION_DANCE_1 :		{"name": localeInfo.EMOTION_DANCE_1, 	"command":"/dance1"},
    		EMOTION_DANCE_2 :		{"name": localeInfo.EMOTION_DANCE_2, 	"command":"/dance2"},
    		EMOTION_DANCE_3 :		{"name": localeInfo.EMOTION_DANCE_3, 	"command":"/dance3"},
    		EMOTION_DANCE_4 :		{"name": localeInfo.EMOTION_DANCE_4, 	"command":"/dance4"},
    		EMOTION_DANCE_5 :		{"name": localeInfo.EMOTION_DANCE_5, 	"command":"/dance5"},
    		EMOTION_DANCE_6 :		{"name": localeInfo.EMOTION_DANCE_6, 	"command":"/dance6"},
    		EMOTION_CONGRATULATION :	{"name": localeInfo.EMOTION_CONGRATULATION,	"command":"/congratulation"},
    		EMOTION_FORGIVE :		{"name": localeInfo.EMOTION_FORGIVE, 	"command":"/forgive"},
    		EMOTION_ANGRY :			{"name": localeInfo.EMOTION_ANGRY, 		"command":"/angry"},
    		EMOTION_ATTRACTIVE :		{"name": localeInfo.EMOTION_ATTRACTIVE, 	"command":"/attractive"},
    		EMOTION_SAD :			{"name": localeInfo.EMOTION_SAD, 		"command":"/sad"},
    		EMOTION_SHY :			{"name": localeInfo.EMOTION_SHY, 		"command":"/shy"},
    		EMOTION_CHEERUP :		{"name": localeInfo.EMOTION_CHEERUP, 	"command":"/cheerup"},
    		EMOTION_BANTER :		{"name": localeInfo.EMOTION_BANTER, 	"command":"/banter"},
    		EMOTION_JOY :			{"name": localeInfo.EMOTION_JOY, 		"command":"/joy"},
    		EMOTION_CHEERS_1 :		{"name": localeInfo.EMOTION_CHEERS_1, 	"command":"/cheer1"},
    		EMOTION_CHEERS_2 :		{"name": localeInfo.EMOTION_CHEERS_2, 	"command":"/cheer2"},
    		EMOTION_KISS :			{"name": localeInfo.EMOTION_CLAP_KISS, 	"command":"/kiss"},
    		EMOTION_FRENCH_KISS :		{"name": localeInfo.EMOTION_FRENCH_KISS, 	"command":"/french_kiss"},
    		EMOTION_SLAP :			{"name": localeInfo.EMOTION_SLAP, 		"command":"/slap"},
    	}
    
    	ICON_DICT = {
    		EMOTION_CLAP 		: 	"d:/ymir work/ui/game/windows/emotion_clap.sub",
    		EMOTION_CHEERS_1	:	"d:/ymir work/ui/game/windows/emotion_cheers_1.sub",
    		EMOTION_CHEERS_2	:	"d:/ymir work/ui/game/windows/emotion_cheers_2.sub",
    
    		EMOTION_DANCE_1		:	"icon/action/dance1.tga",
    		EMOTION_DANCE_2		:	"icon/action/dance2.tga",
    
    		EMOTION_CONGRATULATION	:	"icon/action/congratulation.tga",
    		EMOTION_FORGIVE		:	"icon/action/forgive.tga",
    		EMOTION_ANGRY		:	"icon/action/angry.tga",
    		EMOTION_ATTRACTIVE	:	"icon/action/attractive.tga",
    		EMOTION_SAD		:	"icon/action/sad.tga",
    		EMOTION_SHY		:	"icon/action/shy.tga",
    		EMOTION_CHEERUP		:	"icon/action/cheerup.tga",
    		EMOTION_BANTER		:	"icon/action/banter.tga",
    		EMOTION_JOY		:	"icon/action/joy.tga",
    		EMOTION_DANCE_1		:	"icon/action/dance1.tga",
    		EMOTION_DANCE_2		:	"icon/action/dance2.tga",
    		EMOTION_DANCE_3		:	"icon/action/dance3.tga",
    		EMOTION_DANCE_4		:	"icon/action/dance4.tga",
    		EMOTION_DANCE_5		:	"icon/action/dance5.tga",
    		EMOTION_DANCE_6		:	"icon/action/dance6.tga",
    
    		EMOTION_KISS		:	"d:/ymir work/ui/game/windows/emotion_kiss.sub",
    		EMOTION_FRENCH_KISS	:	"d:/ymir work/ui/game/windows/emotion_french_kiss.sub",
    		EMOTION_SLAP		:	"d:/ymir work/ui/game/windows/emotion_slap.sub",
    	}
    
    	ANI_DICT = {
    		chr.MOTION_CLAP :			"clap.msa",
    		chr.MOTION_CHEERS_1 :			"cheers_1.msa",
    		chr.MOTION_CHEERS_2 :			"cheers_2.msa",
    		chr.MOTION_DANCE_1 :			"dance_1.msa",
    		chr.MOTION_DANCE_2 :			"dance_2.msa",
    		chr.MOTION_DANCE_3 :			"dance_3.msa",
    		chr.MOTION_DANCE_4 :			"dance_4.msa",
    		chr.MOTION_DANCE_5 :			"dance_5.msa",
    		chr.MOTION_DANCE_6 :			"dance_6.msa",
    		chr.MOTION_CONGRATULATION :		"congratulation.msa",
    		chr.MOTION_FORGIVE :			"forgive.msa",
    		chr.MOTION_ANGRY :			"angry.msa",
    		chr.MOTION_ATTRACTIVE :			"attractive.msa",
    		chr.MOTION_SAD :			"sad.msa",
    		chr.MOTION_SHY :			"shy.msa",
    		chr.MOTION_CHEERUP :			"cheerup.msa",
    		chr.MOTION_BANTER :			"banter.msa",
    		chr.MOTION_JOY :			"joy.msa",
    		chr.MOTION_FRENCH_KISS_WITH_WARRIOR :	"french_kiss_with_warrior.msa",
    		chr.MOTION_FRENCH_KISS_WITH_ASSASSIN :	"french_kiss_with_assassin.msa",
    		chr.MOTION_FRENCH_KISS_WITH_SURA :	"french_kiss_with_sura.msa",
    		chr.MOTION_FRENCH_KISS_WITH_SHAMAN :	"french_kiss_with_shaman.msa",
    		chr.MOTION_FRENCH_KISS_WITH_WOLFMAN :   "french_kiss_with_wolfman.msa",
    		chr.MOTION_KISS_WITH_WARRIOR :		"kiss_with_warrior.msa",
    		chr.MOTION_KISS_WITH_ASSASSIN :		"kiss_with_assassin.msa",
    		chr.MOTION_KISS_WITH_SURA :		"kiss_with_sura.msa",
    		chr.MOTION_KISS_WITH_SHAMAN :		"kiss_with_shaman.msa",
    		chr.MOTION_KISS_WITH_WOLFMAN :  "kiss_with_wolfman.msa",
    		chr.MOTION_SLAP_HIT_WITH_WARRIOR :	"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_ASSASSIN :	"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_SURA :		"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_SHAMAN :	"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_WOLFMAN :  "slap_hit.msa",
    		chr.MOTION_SLAP_HURT_WITH_WARRIOR :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_ASSASSIN :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_SURA :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_SHAMAN :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_WOLFMAN : "slap_hurt.msa",
    	}
    
    elif EMOTION_VERSION == 1:
    	EMOTION_CLAP = 1
    	EMOTION_CHEERS_1 = 2
    	EMOTION_CHEERS_2 = 3
    	EMOTION_DANCE_1 = 4
    	EMOTION_DANCE_2 = 5
    	EMOTION_KISS = 51
    	EMOTION_FRENCH_KISS = 52
    	EMOTION_SLAP = 53
    
    	EMOTION_DICT = {
    		EMOTION_CLAP :			{"name": localeInfo.EMOTION_CLAP, 		"command":"/clap"},
    		EMOTION_CHEERS_1 :		{"name": localeInfo.EMOTION_CHEERS_1, 	"command":"/cheer1"},
    		EMOTION_CHEERS_2 :		{"name": localeInfo.EMOTION_CHEERS_2, 	"command":"/cheer2"},
    		EMOTION_DANCE_1 :		{"name": localeInfo.EMOTION_DANCE_1, 	"command":"/dance1"},
    		EMOTION_DANCE_2 :		{"name": localeInfo.EMOTION_DANCE_2, 	"command":"/dance2"},
    		EMOTION_KISS :			{"name": localeInfo.EMOTION_CLAP_KISS, 	"command":"/kiss"},
    		EMOTION_FRENCH_KISS :		{"name": localeInfo.EMOTION_FRENCH_KISS, 	"command":"/french_kiss"},
    		EMOTION_SLAP :			{"name": localeInfo.EMOTION_SLAP, 		"command":"/slap"},
    	}
    
    	ICON_DICT = {
    		EMOTION_CLAP 		: 	"d:/ymir work/ui/game/windows/emotion_clap.sub",
    		EMOTION_CHEERS_1	:	"d:/ymir work/ui/game/windows/emotion_cheers_1.sub",
    		EMOTION_CHEERS_2	:	"d:/ymir work/ui/game/windows/emotion_cheers_2.sub",
    
    		EMOTION_DANCE_1		:	"icon/action/dance1.tga",
    		EMOTION_DANCE_2		:	"icon/action/dance2.tga",
    
    		EMOTION_KISS		:	"d:/ymir work/ui/game/windows/emotion_kiss.sub",
    		EMOTION_FRENCH_KISS	:	"d:/ymir work/ui/game/windows/emotion_french_kiss.sub",
    		EMOTION_SLAP		:	"d:/ymir work/ui/game/windows/emotion_slap.sub",
    	}
    
    	ANI_DICT = {
    		chr.MOTION_CLAP :			"clap.msa",
    		chr.MOTION_CHEERS_1 :			"cheers_1.msa",
    		chr.MOTION_CHEERS_2 :			"cheers_2.msa",
    		chr.MOTION_DANCE_1 :			"dance_1.msa",
    		chr.MOTION_DANCE_2 :			"dance_2.msa",
    		chr.MOTION_FRENCH_KISS_WITH_WARRIOR :	"french_kiss_with_warrior.msa",
    		chr.MOTION_FRENCH_KISS_WITH_ASSASSIN :	"french_kiss_with_assassin.msa",
    		chr.MOTION_FRENCH_KISS_WITH_SURA :	"french_kiss_with_sura.msa",
    		chr.MOTION_FRENCH_KISS_WITH_SHAMAN :	"french_kiss_with_shaman.msa",
    		chr.MOTION_KISS_WITH_WARRIOR :		"kiss_with_warrior.msa",
    		chr.MOTION_KISS_WITH_ASSASSIN :		"kiss_with_assassin.msa",
    		chr.MOTION_KISS_WITH_SURA :		"kiss_with_sura.msa",
    		chr.MOTION_KISS_WITH_SHAMAN :		"kiss_with_shaman.msa",
    		chr.MOTION_SLAP_HIT_WITH_WARRIOR :	"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_ASSASSIN :	"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_SURA :		"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_SHAMAN :	"slap_hit.msa",
    		chr.MOTION_SLAP_HURT_WITH_WARRIOR :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_ASSASSIN :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_SURA :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_SHAMAN :	"slap_hurt.msa",
    	}
    else:
    	EMOTION_CLAP = 1
    	EMOTION_CHEERS_1 = 2
    	EMOTION_CHEERS_2 = 3
    	EMOTION_KISS = 51
    	EMOTION_FRENCH_KISS = 52
    	EMOTION_SLAP = 53
    
    	EMOTION_DICT = {
    		EMOTION_CLAP :			{"name": localeInfo.EMOTION_CLAP, 		"command":"/clap"},
    		EMOTION_CHEERS_1 :		{"name": localeInfo.EMOTION_CHEERS_1, 	"command":"/cheer1"},
    		EMOTION_CHEERS_2 :		{"name": localeInfo.EMOTION_CHEERS_2, 	"command":"/cheer2"},
    		EMOTION_KISS :			{"name": localeInfo.EMOTION_CLAP_KISS, 	"command":"/kiss"},
    		EMOTION_FRENCH_KISS :		{"name": localeInfo.EMOTION_FRENCH_KISS, 	"command":"/french_kiss"},
    		EMOTION_SLAP :			{"name": localeInfo.EMOTION_SLAP, 		"command":"/slap"},
    	}
    
    	ICON_DICT = {
    		EMOTION_CLAP 		: 	"d:/ymir work/ui/game/windows/emotion_clap.sub",
    		EMOTION_CHEERS_1	:	"d:/ymir work/ui/game/windows/emotion_cheers_1.sub",
    		EMOTION_CHEERS_2	:	"d:/ymir work/ui/game/windows/emotion_cheers_2.sub",
    
    		EMOTION_KISS		:	"d:/ymir work/ui/game/windows/emotion_kiss.sub",
    		EMOTION_FRENCH_KISS	:	"d:/ymir work/ui/game/windows/emotion_french_kiss.sub",
    		EMOTION_SLAP		:	"d:/ymir work/ui/game/windows/emotion_slap.sub",
    	}
    
    	ANI_DICT = {
    		chr.MOTION_CLAP :			"clap.msa",
    		chr.MOTION_CHEERS_1 :			"cheers_1.msa",
    		chr.MOTION_CHEERS_2 :			"cheers_2.msa",
    		chr.MOTION_FRENCH_KISS_WITH_WARRIOR :	"french_kiss_with_warrior.msa",
    		chr.MOTION_FRENCH_KISS_WITH_ASSASSIN :	"french_kiss_with_assassin.msa",
    		chr.MOTION_FRENCH_KISS_WITH_SURA :	"french_kiss_with_sura.msa",
    		chr.MOTION_FRENCH_KISS_WITH_SHAMAN :	"french_kiss_with_shaman.msa",
    		chr.MOTION_KISS_WITH_WARRIOR :		"kiss_with_warrior.msa",
    		chr.MOTION_KISS_WITH_ASSASSIN :		"kiss_with_assassin.msa",
    		chr.MOTION_KISS_WITH_SURA :		"kiss_with_sura.msa",
    		chr.MOTION_KISS_WITH_SHAMAN :		"kiss_with_shaman.msa",
    		chr.MOTION_SLAP_HIT_WITH_WARRIOR :	"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_ASSASSIN :	"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_SURA :		"slap_hit.msa",
    		chr.MOTION_SLAP_HIT_WITH_SHAMAN :	"slap_hit.msa",
    		chr.MOTION_SLAP_HURT_WITH_WARRIOR :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_ASSASSIN :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_SURA :	"slap_hurt.msa",
    		chr.MOTION_SLAP_HURT_WITH_SHAMAN :	"slap_hurt.msa",
    	}
    
    
    def __RegisterSharedEmotionAnis(mode, path):
    	chrmgr.SetPathName(path)
    	chrmgr.RegisterMotionMode(mode)
    
    	for key, val in ANI_DICT.items():
    		chrmgr.RegisterMotionData(mode, key, val)
    
    def RegisterEmotionAnis(path):
    	actionPath = path + "action/"
    	weddingPath = path + "wedding/"
    
    	__RegisterSharedEmotionAnis(chr.MOTION_MODE_GENERAL, actionPath)
    	__RegisterSharedEmotionAnis(chr.MOTION_MODE_WEDDING_DRESS, actionPath)
    
    	chrmgr.SetPathName(weddingPath)
    	chrmgr.RegisterMotionMode(chr.MOTION_MODE_WEDDING_DRESS)
    	chrmgr.RegisterMotionData(chr.MOTION_MODE_WEDDING_DRESS, chr.MOTION_WAIT, "wait.msa")
    	chrmgr.RegisterMotionData(chr.MOTION_MODE_WEDDING_DRESS, chr.MOTION_WALK, "walk.msa")
    	chrmgr.RegisterMotionData(chr.MOTION_MODE_WEDDING_DRESS, chr.MOTION_RUN, "walk.msa")
    
    def RegisterEmotionIcons():
    	for key, val in ICON_DICT.items():
    		player.RegisterEmotionIcon(key, val)
    
    
    
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.