[Requst]Make an item non tradable

07/17/2009 23:43 ~RapidBlade~#1
hey guys, i Just need to know how I can make an item non tradable for a LOTF source. If you know the answer please reply, thanks.
07/18/2009 00:08 f0am#2
Create a bool and edit your trading system =]

Code:
public static bool LockedItem = false;
then

Code:
if (LockedItem == false)
{
Trading Crap
}
else
{
SendMessageToMySelf(This item is locked!);
}
07/18/2009 01:27 ~RapidBlade~#3
Could u tell me which "Trading Crap", theres a lot of it lol.
07/18/2009 01:33 ~Yuki~#4
go to the trade funktion where the item been added to trade window there add if (itemid) then locked item
07/18/2009 01:54 f0am#5
case 1056:
07/18/2009 02:06 ~RapidBlade~#6
thnx foam
07/18/2009 02:08 f0am#7
Quote:
Originally Posted by ~RapidBlade~ View Post
thnx foam
No Problem...Just hit the thanks =]]
07/18/2009 03:13 ~RapidBlade~#8
Hmm, ill hit thnx, after u tell me how i could lock the item lol Sry for the questions after questions.. im just clueless on this code
07/18/2009 03:15 f0am#9
Quote:
Originally Posted by ~RapidBlade~ View Post
Hmm, ill hit thnx, after u tell me how i could lock the item lol Sry for the questions after questions.. im just clueless on this code
Lawl i deserve two thanks ahha :D

ok anyway do like this before the trade

Code:
if (ItemId == "GmRobe")
{
      LockedItem = true;
}

if (LockedItem == false)
{
     TRADING CRAP ( CASE 1056 ) 
}
else if (LockedItem == true)
{
    SENDMSGTOME("THE ITEM IS LOCKED DUDE!!!")
}
07/18/2009 03:23 ~RapidBlade~#10
KK, just one more question, ItemId gets an error, and im not sure if i need to just make a definition, change it, or something else, and once agin im really sorry... usually i wouldnt have so many questions.
And i thanked you for how much u showed me lol
07/18/2009 03:23 ~RapidBlade~#11
#edit Got it! Thanks to Andrea =)
07/18/2009 03:44 AndreaCo#12
ya u guys didint need to add all that.. how i helped him is if the person clicks ok and the item is in the trade it just returns it.. lol
07/18/2009 03:48 raidenx123#13
Yeah but other way looks more professional :P
07/18/2009 04:46 f0am#14
Quote:
Originally Posted by AndreaCo View Post
ya u guys didint need to add all that.. how i helped him is if the person clicks ok and the item is in the trade it just returns it.. lol
But think about this, you click ok it returns...you might want to know what happened. bug? no bug?
07/18/2009 05:01 ~RapidBlade~#15
o.o i just put a code making it say you cant trade a gold cup