Hello I was coding, everything was ok till i started to put this :
def testas() :
test = "ane"
if player.isGm() :
test = "jo";
return test
In another code sections it´s working perfectly...
def onFirstTalk (self,npc,player):
st = player.getQuestState(QUEST_LOADING_INFO)
if not st : st = self.newQuestState(player)
if player.isGM():
..............
Yes, i tried to put player in testas(player) same poop.
Hey i'm trying to make a script on pvp unequip an item.
i tried this code it works half the way...
if(activeChar.getPvpFlag() > 0)
{
final L2ItemInstance face = activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE);
if (face != null)
{
final L2ItemInstance[] unequipped = activeChar.getInventory().unEquipItemInBodySlotAndRecord(face.getItem().getBodyPart());
final InventoryUpdate iu = new InventoryUpdate();
for (final L2ItemInstance element : unequipped)
iu.addModifiedItem(element);
sendPacket(iu);
}
}
Hello again, i just edited my java and changed item can be allowed when you have castle, but then a clan dont have castle item stays in the same place and cant take it only with another items. can i make it when u dont have castle item takes out alone on log in ?
Hello i want to add a restricted item only for clans and clanhalls, i have to modify my UseItem.class file in java, i opened it with eclipse and i cant modify that type of file.
I opened it with another editor changed it and added new but it was a bad idea,
Can someone can help me how do i modify those files with working java :D
why i have to pay for anti bot - (cracked adr) and paid adr works anyways, so i can create for free for cracked adr without paying, i will ask than admin maybe he will say it for me. i will share ;]
i saw in one server, and was working with him with hes project, he made mobs own type: none, and id and everything was same as normal monster, but free adr couldn't target him with name or id. so thats why i ask, maybe some1 knows about it.
i know how to modify the mob stats and change everything, but it doesn't make sense making more mobs with different id. Never mind. I will find a solution what i saw in few server.