Jump to content

.InyaProduction

Former Staff
  • Posts

    511
  • Joined

  • Last visited

  • Days Won

    10
  • Feedback

    0%

Posts posted by .InyaProduction

  1. jQuery( document ).ready(function() {
        jQuery('.scroll-smooth').click(function (e) {
            e.preventDefault();
            var status_id = $(this).attr('href').split('#');
            var element = jQuery("#" + status_id[1]);
            if(element.length > 0) {
                scroll = element.offset().top - 40;
                jQuery("html, body").animate({
                    scrollTop: scroll
                }, 1000);
            }
        });
    });
    
    Now just attach the class "scroll-smooth" your button an in the href tag you put your id you want to scroll to (if you want to go top give the body the id scrolltop and let the link look like that:

    <a href="#scrolltop">LINK</a>

     

    You can watch a demo here:

    http://pollux2.com/stats

     

    At the bottom you find "Nach oben" (german for to top) click on that and it will smothly scroll to top

  2. Part from ACMD(do_block_chat):

     

    if (ch && (ch->GetGMLevel() < GM_HIGH_WIZARD && ch->GetQuestFlag("chat_privilege.block") <= 0))
    
    So if you give somebody the quest flag chat.privilege.block set over 1 he will be able to block others chat with block_chat (usefull for undercover GMs) :D
    • Love 3
  3. 		case ITEM_COSTUME:
    			{
    				DWORD toSetValue = this->GetVnum();
    				EParts toSetPart = PART_MAX_NUM;
    
    				// °©¿Ê ÄÚ½ºÃõ
    				if (GetSubType() == COSTUME_BODY)
    				{
    					toSetPart = PART_MAIN;
    
    					if (false == bAdd)
    					{
    						// ÄÚ½ºÃõ °©¿ÊÀ» ¹þ¾úÀ» ¶§ ¿ø·¡ °©¿ÊÀ» ÀÔ°í ÀÖ¾ú´Ù¸é ±× °©¿ÊÀ¸·Î look ¼¼ÆÃ, ÀÔÁö ¾Ê¾Ò´Ù¸é default look
    						const CItem* pArmor = m_pOwner->GetWear(WEAR_BODY);
    						toSetValue = (NULL != pArmor) ? pArmor->GetVnum() : m_pOwner->GetOriginalPart(PART_MAIN);						
    					}
    					
    				}
     

    This is the part where the costume gets set

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