Jump to content

PACI

Developer
  • Posts

    402
  • Joined

  • Days Won

    18
  • Feedback

    0%

Posts posted by PACI

  1. If you don't want to modify your source files, you can simply try the following code at your button function:

    import interfaceModule
    self.__int = interfaceModule.Interface()
    self.__int.MakeInterface()
    self.__int.AskSafeboxPassword()
     

    Through the game source code you must create a new command at your cmd_general (you can copy and paste the do_click_mall function, however instead of ShowMeMallPassword use ShowMeSafeboxPassword.

  2. If you search further, you'll see that this was made by Sanchez a few time ago:

     

    Quote

    Maybe someone interested, here it is for the source:

    Open game/input_main.cpp and search for this:

     

    
    int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    
    
     

    Replace with this:

    
    	int len;
    	if (pinfo->type == CHAT_TYPE_SHOUT)
    	{
    		len = snprintf(chatbuf, sizeof(chatbuf), "|Hmsg:%s|h%s|h|r : %s", ch->GetName(), ch->GetName(), buf);
    	}
    	else
    	{
    		len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    	}    int len;

     

    On client-side just do the modifications in the interfacemodule.py, the uichat.py modification is not required anymore.

     

     

    • Love 1
  3. 2 minutes ago, Krusty said:

    how can i change the time from time_bomb to one day?

    
    limitTime = time.mktime(time.localtime()) + 3600 * 24 * 365 * 1

    is this right?

    seconds * minutes * hours * days * years

    So to one day, keep only de 3600s (which is 60 * 60 * 1).

  4. Is this what you want?

     

    local party_pids = {party.get_member_pids()}
    local party_jobs = {}
    
    for i = 1, table.getn(party_pids) do
    	q.begin_other_pc_block(party_pids[i])
    	party_jobs[pc.get_name()] = pc.get_job()
    	q.end_other_pc_block()
    end
    
    for char_name, char_job in pairs(party_jobs) do
    	say(char_name.." job is "..char_job)
    end

     

     

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