Jump to content

Limit when using smt


Recommended Posts

@ManiacRobert

 

This is not my Code!! Ist from ManiacRobet

 

		#ifdef __SASH_SYSTEM__
		else if ((item->GetType() == ITEM_COSTUME) && (item->GetSubType() == COSTUME_SASH))
		{
			int lastSortInventoryPulse = GetEffectTimer();
			int currentPulse = thecore_pulse();			
			if (lastSortInventoryPulse > currentPulse) {
				int deltaInSeconds = ((lastSortInventoryPulse / PASSES_PER_SEC(1)) - (currentPulse / PASSES_PER_SEC(1)));
				int minutes = deltaInSeconds / 60;
				int seconds = (deltaInSeconds - (minutes * 60));
		
			ChatPacket(CHAT_TYPE_INFO, "Efect-ul o sa apara din nou in %02d secunde.", seconds);
			return false;
			}
			this->EffectPacket(SE_EFFECT_SASH_EQUIP);
			SetEffectTimer(thecore_pulse() + PASSES_PER_SEC(10));

		}
		#endif

 

 

 

char.h

 

	protected:
		CSafebox *			m_pkSafebox;
		int					m_iSafeboxSize;
		int					m_iSafeboxLoadTime;
		int					m_ichtimer;
#ifdef __SASH_SYSTEM__		
		int					m_ieffect;
#endif		
		bool				m_bOpeningSafebox;	///< 창고가 열기 요청 중이거나 열려있는가 여부, true 일 경우 열기요청이거나 열려있음.

		CSafebox *			m_pkMall;
		int					m_iMallLoadTime;

		PIXEL_POSITION		m_posSafeboxOpen;

 

 

	public:
		bool	IsOpenSafebox() const { return m_isOpenSafebox ? true : false; }
		void 	SetOpenSafebox(bool b) { m_isOpenSafebox = b; }

		int		GetSafeboxLoadTime() const { return m_iSafeboxLoadTime; }
		void	SetSafeboxLoadTime() { m_iSafeboxLoadTime = thecore_pulse(); }


		// int		GetChTime() const { return m_ichtimer; }
		// void	SetChTime(int pulse) { m_ichtimer = pulse; }
#ifdef __SASH_SYSTEM__		
		int		GetEffectTimer() const { return m_ieffect; }
		void	SetEffectTimer(int pulse) { m_ieffect = pulse; }		
#endif		
		//END_PREVENT_TRADE_WINDOW
	private:
		bool	m_isOpenSafebox;

	public:
		int		GetSkillPowerByLevel(int level, bool bMob = false) const;

 

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Metin2 Closed Beta Content (2003-2004)

    2. 11

      Metin2 Closed Beta Content (2003-2004)

    3. 0

      Football Ground

    4. 11

      Metin2 Closed Beta Content (2003-2004)

    5. 0

      Error compile binary Zentoria2

    6. 11

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.