Jump to content

xP3NG3Rx

Honorable Member
  • Posts

    839
  • Joined

  • Days Won

    393
  • Feedback

    100%

Posts posted by xP3NG3Rx

  1. You can do it here:

    	def __SetNormalItemTitle(self):
    		self.SetTitle(item.GetItemName())
    
    	def __SetSpecialItemTitle(self):
    		self.AppendTextLine(item.GetItemName(), self.SPECIAL_TITLE_COLOR)
    
    	def __SetItemTitle(self, itemVnum, metinSlot, attrSlot):
    		if localeInfo.IsCANADA():
    			if 72726 == itemVnum or 72730 == itemVnum:
    				self.AppendTextLine(item.GetItemName(), grp.GenerateColor(1.0, 0.7843, 0.0, 1.0))
    				return
    
    		if self.__IsPolymorphItem(itemVnum):
    			self.__SetPolymorphItemTitle(metinSlot[0])
    		else:
    			if self.__IsAttr(attrSlot):
    				self.__SetSpecialItemTitle()
    				return
    
    			self.__SetNormalItemTitle()
    
    
  2. Please forget the unnecessary quote(s).

     

    If you make a private shop with a stack of packages (ex: with 103pcs) it will not remove every packages, just only one of them.

    So when you made a private shop, after the opening you will have 102 packages more.

     

    Ahh, maybe he want to change the vnum of package.. In this case you can do it on this offset:

    58F7A: 18 C4 is in hex form 0xC418 = 50200

     

    00058F79: 3D 18 C4 00 00

    18 C4 00 00 this is the VNUM of package.

  3. Use this batchfile to collecting the source files into rar archive:

    @echo off
    
    if %1=="" goto :eof
    
    set SAVESTAMP=%DATE:-=%%TIME::=%
    set SAVESTAMP=%SAVESTAMP: =0%
    set SAVESTAMP=%SAVESTAMP:,=%
    
    if not exist "%~1_backup" (
    	mkdir "%~1_backup%" 
    	echo make dir: "%~n1_backup"
    )
    
    echo backup name: "%~n1_%SAVESTAMP%"
    
    "c:Program FilesWinRARWinRAR.exe" a -r "%~1_backup/%~n1_%SAVESTAMP%.rar" -m5 -ep1 -n*.h -n*.c -n*.cc -n*.cpp -n*.hpp -n*.sln -n*.suo -n*.vssscc -n*.vcproj -n*.vcxproj -n*.vspscc -n*.cur -n*.ico -n*.manifest -n*.filters -n*.user -n*.aps -n*.rc -n*.vspscc "%~1"
    
    echo "%~n1_backup/%~n1_%SAVESTAMP%.rar"
    
    pause
    
    :eof
    

    03bcaf2486.png

     

    Usage:

    cmd# backup Server[ENTER]

    w8 until done and press a button.

     

    ps. This batch-script made by Terenzo.

    • Love 2
  4. 	int pet_is_mine(lua_State* L)
    	{
    		CQuestManager& q = CQuestManager::instance();
    		LPCHARACTER mch = q.GetCurrentCharacterPtr();
    		LPCHARACTER tch = q.GetCurrentNPCCharacterPtr();
    		CPetSystem* petSystem = mch->GetPetSystem();
    		CPetActor* petActor = petSystem->GetByVID(tch->GetVID());
    
    		// ~ DEBUG Messages:
    		/*
    		sys_log(0, "mch->GetVID : %d", mch->GetVID());
    		sys_log(0, "npc->GetVID : %d", npc->GetVID());
    		sys_log(0, "petSystem : %s", (petSystem ? "True":"False"));
    		sys_log(0, "petActor : %s", (petActor ? "True":"False"));
    		sys_log(0, "npc->IsPet() : %s", (npc->IsPet() ? "True":"False"));
    		if (petActor)
    			sys_log(0, "petActor->GetOwner()->GetVID() : %d", petActor->GetOwner()->GetVID());
    		*/
    
    		lua_pushboolean(L, tch && tch->IsPet() && petActor && petActor->GetOwner() == mch);
    		return 1;
    	}
    
    

    I'm using this and works completely.

  5. I have made this myself by another way. (No need glass to make shout if empire_chat is enabled.)

     

    Check my part of code to solve your problem:

    	const char * ColoredEmpireNames[4] = {"0", "|cFFFF0000[Shinshoo]|r", "|cFFFFFF00[Chunjo]|r", "|cFF0080FF[Jinno]|r",};
    	const char * ColoredTeamName = "|cFFFFC700[Team]|r";
    	len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s",
    		ch->GetGMLevel() != GM_PLAYER ? ColoredTeamName : ColoredEmpireNames[ch->GetEmpire()], ch->GetName(), buf);
    
    

    The [shinsoo] is so ugly on printscreen by client:

    0504_120833.jpg

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