Jump to content

Night

Inactive Member
  • Posts

    839
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Posts posted by Night

  1.  

     

    add it like this

    char chatbuf_global[CHAT_MAX_LEN + 1];
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

     
    input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
    input_main.cpp:747: error: 'chatbuf_global' was not declared in this scope
    input_main.cpp:747: warning: unused variable 'len'
    compile mining.cpp
    compile mob_manager.cpp
    compile monarch.cpp
    gmake: *** [OBJDIR/input_main.o] Error 1
    gmake: *** Waiting for unfinished jobs....
     
    error..
     
    this code:
    static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    char chatbuf_global[CHAT_MAX_LEN + 1];
    

    747 linea:

    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);

     

    not like that , like this :

    char chatbuf_global[CHAT_MAX_LEN + 1];
    static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    
    

    chatbuf_global must be declared b4 len

  2. this is the definition in your old code

    char chatbuf_global[CHAT_MAX_LEN + 1];
    

    just do this :

    change

    int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    to :

    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    and add this

    char chatbuf_global[CHAT_MAX_LEN + 1];
    

    above it

  3. Hello metin2dev, i will teach you how to use the io.open function. You can create an editable quest announcement without restarting the server or reload anything.

     

    • on login example

    quest ioopenexample_1 begin
    state start begin
    when login begin 
    announcements = io.open("locale/location/announcements.txt")
    notice("News:"..announcements:read()) 
    end 
    end
    end

    That's pretty simple. :D

     

    
    (get_locale_base_path().."/announcements.txt")

    maybe this could be better

  4. 71051	ٍط،¤ہç°،؛ٌ¼­	ITEM_USE	USE_SPECIAL	1	ANTI_DROP | ANTI_SELL | ANTI_STACK	LOG | STACKABLE	NONE	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0
    71052	ٍط،¤ہç°و؛ٌ¼­	ITEM_USE	USE_SPECIAL	1	ANTI_DROP | ANTI_SELL | ANTI_STACK	LOG | STACKABLE	NONE	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0
    
    
    • Love 1
  5. 	static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    they it

  6. the bg is so old ahah , it made me remember when i was still about lv 50 

    just to help you improve use insted of this :

     "text" : "Patch Version: 00001"
    

    do this :

    import uiScriptLocale
    

    then :

    "text" : uiScriptLocale.Patch_Version
    

    on locale_interface.txt add :

    Patch_Version Patch Version: 00001
    

    this is easyer to translate to many other lang , better the plain text on a py script ^^

    good luck

    • Love 1
  7.  

    @Aurora.

    Thanks for posting

     

    If you got notepad++ , then you go to coding.

    In my case , i've selected Character Set - Central-European - Windows-1250 .

    Everything i modify , it's working properly .

     

    ( FOR THIS SOLUTION , YOU NEED A BACKUP FROM WHAT DID YOU MODIFY.

    I MEAN locale_string.txt who worked! )

     

    Best regards,

    Dr3Ame3r

    I tryed but didn't work.

     

    You need to change character set and use Windows-1252... problem came with accented letters such as à, ò, è etc...

    I tryed your solution to but it didn't work.

     

    but in my channel syerr this is what they say.

    I get alot of this messages

    
    

    locale_find: LOCALE_ERROR: "¹ö¸± ¼ö ¾ø´Â ¾ÆÀÌÅÛÀÔ´Ï´Ù.";

     

    "¹ö¸± ¼ö ¾ø´Â ¾ÆÀÌÅÛÀÔ´Ï´Ù.";
    

    add it to locale string.txt

    for your problem mostlikely its from notepad++

    disable this :

    3tQcYNV.png

  8. to active them just do this :

    NEW_678TH_SKILL_ENABLE = app.NEW_678TH_SKILL_ENABLE
    SKILL_INDEX_DICT = []
    
    def DefineSkillIndexDict():
    	global NEW_678TH_SKILL_ENABLE
    	global SKILL_INDEX_DICT
    	
    	if NEW_678TH_SKILL_ENABLE:
    		SKILL_INDEX_DICT = {
    			JOB_WARRIOR : { 
    				1 : (1, 2, 3, 4, 5, 6, 0, 0, 137, 0, 138, 0, 139, 0,), 
    				2 : (16, 17, 18, 19, 20, 21, 0, 0, 137, 0, 138, 0, 139, 0,), 
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131, 0, 0,),
    			},
    			JOB_ASSASSIN : { 
    				1 : (31, 32, 33, 34, 35, 36, 0, 0, 137, 0, 138, 0, 139, 0, 140,), 
    				2 : (46, 47, 48, 49, 50, 51, 0, 0, 137, 0, 138, 0, 139, 0, 140,), 
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131, 0, 0,),
    			},
    			JOB_SURA : { 
    				1 : (61, 62, 63, 64, 65, 66, 0, 0, 137, 0, 138, 0, 139, 0,),
    				2 : (76, 77, 78, 79, 80, 81, 0, 0, 137, 0, 138, 0, 139, 0,),
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131, 0, 0,),
    			},
    			JOB_SHAMAN : { 
    				1 : (91, 92, 93, 94, 95, 96, 0, 0, 137, 0, 138, 0, 139, 0,),
    				2 : (106, 107, 108, 109, 110, 111, 0, 0, 137, 0, 138, 0, 139, 0,),
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131, 0, 0,),
    			},
    		}
    	else:
    		SKILL_INDEX_DICT = {
    			JOB_WARRIOR : { 
    				1 : (1, 2, 3, 4, 5, 0, 0, 0, 137, 0, 138, 0, 139, 0,), 
    				2 : (16, 17, 18, 19, 20, 0, 0, 0, 137, 0, 138, 0, 139, 0,), 
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131,),
    			},
    			JOB_ASSASSIN : { 
    				1 : (31, 32, 33, 34, 35, 0, 0, 0, 137, 0, 138, 0, 139, 0, 140,), 
    				2 : (46, 47, 48, 49, 50, 0, 0, 0, 137, 0, 138, 0, 139, 0, 140,), 
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131,),
    			},
    			JOB_SURA : { 
    				1 : (61, 62, 63, 64, 65, 66, 0, 0, 137, 0, 138, 0, 139, 0,),
    				2 : (76, 77, 78, 79, 80, 81, 0, 0, 137, 0, 138, 0, 139, 0,),
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131,),
    			},
    			JOB_SHAMAN : { 
    				1 : (91, 92, 93, 94, 95, 96, 0, 0, 137, 0, 138, 0, 139, 0,),
    				2 : (106, 107, 108, 109, 110, 111, 0, 0, 137, 0, 138, 0, 139, 0,),
    				"SUPPORT" : (122, 123, 121, 124, 125, 129, 0, 0, 130, 131,),
    			},
    		}
    

    info i use app.NEW_678TH_SKILL_ENABLE to define them from the bin you are free to use it or just put a 1/0 TRUE/FALSE

    • Love 1
×
×
  • 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.