Register for your free account! | Forgot your password?

You last visited: Today at 06:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



(Release) Lock item

Discussion on (Release) Lock item within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
sebariio's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 75
(Release) Lock item

Hola
This code is used to prevent the accidental sale or deletion of objects. You can use this 'system' for a quick sale system at NPC. I saw this system on another server, I recoded it myself. Mine works by performing SHIFT + Double click. I give it for free because I think it's very useful and I would like to see it more often on the servers.

result:
sebariio is offline  
Thanks
11 Users
Old 03/23/2020, 20:42   #2

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
IsUsableItem isn't for dog, use it.
Call it before you use pItemElem.
ZeroTwo02 is offline  
Thanks
1 User
Old 03/24/2020, 01:37   #3
 
sebariio's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 75
Quote:
Originally Posted by ZeroTwo02 View Post
IsUsableItem isn't for dog, use it.
Call it before you use pItemElem.
Look at the body of the method before giving advice, disrespectfully in addition. Thanks.
sebariio is offline  
Thanks
1 User
Old 03/24/2020, 07:14   #4
 
Seigh77's Avatar
 
elite*gold: 0
Join Date: Mar 2018
Posts: 23
Received Thanks: 0
have problem with the

pItemElem->SetFlag(CItemElem::locked, bLock)

the error is
CItemElem::SetFlag function does not take 2 arguments

thank you for this release
Seigh77 is offline  
Old 03/24/2020, 08:28   #5
 
elite*gold: 0
Join Date: Jan 2020
Posts: 77
Received Thanks: 0
Thank you for posting, does this require a bank password?
siono01 is offline  
Old 03/24/2020, 10:52   #6

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
Quote:
Originally Posted by Seigh77 View Post
have problem with the

pItemElem->SetFlag(CItemElem::locked, bLock)

the error is
CItemElem::SetFlag function does not take 2 arguments

thank you for this release
Because he change the SetFlag function to add a BOOL "bLock".
Hard to use SetFlag for "lock" and ResetFlag for remove "lock".

Quote:
Originally Posted by sebariio View Post
Look at the body of the method before giving advice, disrespectfully in addition. Thanks.
It is good to use IsUsableItem on the CUser::LockItem, but you have to use it also on CDPSrvr::OnLockItem.
ZeroTwo02 is offline  
Old 03/24/2020, 13:39   #7
 
sebariio's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 75
Quote:
Originally Posted by Seigh77 View Post
have problem with the

pItemElem->SetFlag(CItemElem::locked, bLock)

the error is
CItemElem::SetFlag function does not take 2 arguments

thank you for this release
Code:
void	SetFlag(BYTE byFlag, BOOL bEnable = TRUE) { if (bEnable) m_byFlag |= byFlag; else m_byFlag &= ~byFlag; }
sebariio is offline  
Thanks
1 User
Old 03/25/2020, 10:29   #8
 
Seigh77's Avatar
 
elite*gold: 0
Join Date: Mar 2018
Posts: 23
Received Thanks: 0
Quote:
Originally Posted by sebariio View Post
Code:
void	SetFlag(BYTE byFlag, BOOL bEnable = TRUE) { if (bEnable) m_byFlag |= byFlag; else m_byFlag &= ~byFlag; }
can you share your icon please thank you
Seigh77 is offline  
Old 03/25/2020, 10:56   #9
 
Naltalah's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 308
Received Thanks: 366
Quote:
Originally Posted by Seigh77 View Post
can you share your icon please thank you
There you go
Attached Files
File Type: rar Icon_Lock.rar (666 Bytes, 86 views)
Naltalah is offline  
Thanks
1 User
Old 03/28/2020, 14:31   #10
 
sebariio's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 75
Quote:
Originally Posted by Seigh77 View Post
can you share your icon please thank you
My icon:
sebariio is offline  
Thanks
1 User
Old 07/27/2020, 20:55   #11
 
elite*gold: 0
Join Date: Mar 2015
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by sebariio View Post
Code:
#ifdef __LOCK_ITEM
					if (pItemElem->IsFlag(CItemElem::locked))
					{
						CTexture* pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ICON, "icon_LockItem.dds"), 0xffff00ff);
						if (pTexture)
							pTexture->Render(p2DRender, CPoint(x * 35, (y * 35) + 4), 255);
					}
#endif // __LOCK_ITEM
Hey, first of all, thank you for the release,
Can u be more specific about the place of this part of code ?
Huguette is offline  
Old 04/09/2021, 20:08   #12
 
elite*gold: 0
Join Date: Nov 2009
Posts: 182
Received Thanks: 13
I have some error please help there !

Thankyou so much !

bhengot is offline  
Old 04/10/2021, 12:55   #13
 
Hikari Kuina's Avatar
 
elite*gold: 0
Join Date: Jan 2021
Posts: 29
Received Thanks: 2
Quote:
Originally Posted by bhengot View Post
I have some error please help there !

Thankyou so much !

for you error CItemElem::SetFlag here's the solution
It was posted up you have to read the article.

For the error AddDefinedText identifier not found

For the Lockitem is not a member of CUser
Hikari Kuina is offline  
Old 04/10/2021, 18:04   #14
 
elite*gold: 0
Join Date: Mar 2013
Posts: 200
Received Thanks: 38
Quote:
Originally Posted by Hikari Kuina View Post
for you error CItemElem::SetFlag here's the solution
It was posted up you have to read the article.

For the error AddDefinedText identifier not found

For the Lockitem is not a member of CUser
For the error AddDefinedText identifier not found

just change it to AddText
flyffdev is offline  
Old 04/18/2021, 16:02   #15
 
elite*gold: 0
Join Date: Nov 2009
Posts: 182
Received Thanks: 13
Already Fix it guys thankyou for your reply <3
bhengot is offline  
Reply


Similar Threads Similar Threads
[Selling] [Growtopia Lock Store] Selling Diamond Lock, World Lock and Blue Gem Lock at Eznpc
06/17/2021 - Mobile Games Trading - 7 Replies
Selling Diamond Lock, World Lock and Blue Gem Lock at Eznpc Hello there, Eznpc is selling Cheap and Safe Diamond Lock, World Lock and Blue Gem Lock. Use code Cherry for 6% off. 100x World Lock = $3 1x Diamond Lock = $2.49
[Selling] [Growtopia Lock Store] selling World, Diamond & Royal lock at best prices!
09/20/2017 - Mobile Games Trading - 0 Replies
Selling Growtopia World Lock, Diamond Lock & Royal Lock!! 40x World Lock = $3 (Stock upon request) 1x Diamond Lock = $4.5 (Stock upon request) 1x Royal Lock = $15 (Stock upon request) *Message me for more item request Everything discussed via chat including Nickname and World Name for doing transaction.
[Release] Item lock for NewestCOServer
03/25/2010 - CO2 PServer Guides & Releases - 109 Replies
Search for; Add above; case 2048: { PacketHandling.ItemLock.Handle(GC, Data); break; }
5165 Item lock, and item redeem.
02/09/2010 - CO2 Private Server - 4 Replies
Anyone knows how to make the item lock and redeem items npc in 5165? Im not too good at that stuff, and it'll be great if someone could help me. :handsdown:
Betteln an die lock mob götter S 15 lock mob
02/04/2009 - Metin2 - 1 Replies
dieser thread geht vor allen dingen an banjo aber wers sonst noch kann kann den lock mob ja auch mal updaten also pls lock mob für s15/16



All times are GMT +2. The time now is 06:53.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.