exity Posted April 25, 2012 Posted April 25, 2012 Hey, i need some help, im forbidden some items in some zones i created the thing is i need help to call the item id I have this but doesnt work if(character.getItemId() == 52 && getTownId() == 4) { character.teleToLocation(82616, 148546, -3469); return; } that "getItemId()" doesnt work. thx in advance Quote
0 Tryskell Posted April 26, 2012 Posted April 26, 2012 getItemId() refers to a L2ItemInstance. You make check on a "character" object which is at least a L2Character, if not a L2PcInstance. As you show near nothing, I can't help more. But probably the place you try to make that code is wrong. You have to retrieve the item instance, and basically it is the goal of an itemhandler. Quote
Question
exity
Hey, i need some help, im forbidden some items in some zones i created the thing is i need help to call the item id
I have this but doesnt work
if(character.getItemId() == 52 && getTownId() == 4)
{
character.teleToLocation(82616, 148546, -3469);
return;
}
that "getItemId()" doesnt work.
thx in advance
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.