Need Help with special Buffer

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Allera
Posts: 19
Joined: Sun Feb 21, 2010 4:57 pm

Re: Need Help with special Buffer

Post by Allera »

Ah ok so i have only to execute that sql file u show me.. Tanks :) :) :) i test it this evening=)
Allera
Posts: 19
Joined: Sun Feb 21, 2010 4:57 pm

Re: Need Help with special Buffer

Post by Allera »

So i executed the sql file but i got the same error message as before so i made a new row in npc table and added the numbers from the error message...

In game i could spawn the npc but if i talk to the npc he only says: "I have nothing to say you" Quest: You are not on a quest that envolves that npc... .

So i don't understand what i have to do :oops:

i also added the row custom/555555_NPCBUFFER/__init__.py in gameserver/data/scrips.cfg

Code: Select all

# This file contains a list of scripts that should be loaded by the GameServer# The path is relative to the scripts folder, for example scripts/event.py would # require the following entry:# event.py## Note: You can also load an script during server runtime using the Admin Panel # AI Section ai/fantasy_isle/MC_Show.java ai/group_template/L2AttackableAIScript.javaai/group_template/Chests.javaai/group_template/EvasGiftBoxes.javaai/group_template/FairyTrees.javaai/group_template/FeedableBeasts.javaai/group_template/Monastery.javaai/group_template/PolymorphingAngel.javaai/group_template/PolymorphingOnAttack.javaai/group_template/PrisonGuards.javaai/group_template/SearchingMaster.javaai/group_template/SeeThroughSilentMove.javaai/group_template/StarStones.javaai/group_template/SummonMinions.java ai/individual/Antharas.javaai/individual/Baium.javaai/individual/Core.javaai/individual/DarkWaterDragon.javaai/individual/DrChaos.javaai/individual/FleeNpc.javaai/individual/Gordon.javaai/individual/IceFairySirra.javaai/individual/Orfen.javaai/individual/QueenAnt.javaai/individual/Valakas.javaai/individual/Zaken.java # Load Handlershandlers/MasterHandler.java # Transformations transformations/Akamanah.javatransformations/Anakim.javatransformations/AquaElf.javatransformations/ArcherCaptain.javatransformations/AurabirdFalcon.javatransformations/AurabirdOwl.javatransformations/Benom.javatransformations/Buffalo.javatransformations/DarkElfMercenary.javatransformations/DemonPrince.javatransformations/DemonRace.javatransformations/DivineEnchanter.javatransformations/DivineHealer.javatransformations/DivineKnight.javatransformations/DivineRogue.javatransformations/DivineSummoner.javatransformations/DivineWarrior.javatransformations/DivineWizard.javatransformations/DollBlader.javatransformations/DoomWraith.javatransformations/DragonBomberNormal.javatransformations/DragonBomberStrong.javatransformations/DragonBomberWeak.javatransformations/DwarfGolem.javatransformations/DwarfMercenary.javatransformations/ElfMercenary.javatransformations/FlyingFinalForm.javatransformations/FortressCaptain.javatransformations/Frog.javatransformations/GolemGuardianNormal.javatransformations/GolemGuardianStrong.javatransformations/GolemGuardianWeak.javatransformations/Gordon.javatransformations/GrailApostleNormal.javatransformations/GrailApostleStrong.javatransformations/GrailApostleWeak.javatransformations/GrizzlyBear.javatransformations/GuardianStrider.javatransformations/GuardsoftheDawn.javatransformations/HeavyTow.javatransformations/Heretic.javatransformations/HumanMercenary.javatransformations/InfernoDrakeNormal.javatransformations/InfernoDrakeStrong.javatransformations/InfernoDrakeWeak.javatransformations/InquisitorBishop.javatransformations/InquisitorElvenElder.javatransformations/InquisitorShilienElder.javatransformations/Kadomas.javatransformations/Kamael.javatransformations/KamaelGuardCaptain.javatransformations/KamaelMercenary.javatransformations/Kiyachi.javatransformations/KnightofDawn.javatransformations/LavaGolem.javatransformations/LightPurpleManedHorse.javatransformations/LilimKnightNormal.javatransformations/LilimKnightStrong.javatransformations/LilimKnightWeak.javatransformations/LureTow.javatransformations/MagicLeader.javatransformations/MyoRace.javatransformations/Native.javatransformations/Native2.javatransformations/OlMahum.javatransformations/OnyxBeast.javatransformations/OrcMercenary.javatransformations/Pig.javatransformations/Pixy.javatransformations/PumpkinGhost.javatransformations/Rabbit.javatransformations/Ranku.javatransformations/RoyalGuardCaptain.javatransformations/SaberToothTiger.javatransformations/Scarecrow.javatransformations/ScrollBlue.javatransformations/ScrollRed.javatransformations/SnowKung.javatransformations/SteamBeatle.javatransformations/TawnyManedLion.javatransformations/Teleporter.javatransformations/Teleporter2.javatransformations/Timitran.javatransformations/TinGolem.javatransformations/Tow.javatransformations/Unicorniun.javatransformations/UnicornNormal.javatransformations/UnicornStrong.javatransformations/UnicornWeak.javatransformations/ValeMaster.javatransformations/VanguardDarkAvenger.javatransformations/VanguardPaladin.javatransformations/VanguardShilienKnight.javatransformations/VanguardTempleKnight.javatransformations/WingTow.javatransformations/Yeti.javatransformations/Yeti2.javatransformations/YoungChild.javatransformations/Zaken.javatransformations/Zariche.javatransformations/Zombie.java # Teleports teleports/1003_Survivor/__init__.pyteleports/1100_teleport_with_charm/__init__.pyteleports/1101_teleport_to_race_track/__init__.pyteleports/1102_toivortex_blue/__init__.pyteleports/1102_toivortex_green/__init__.pyteleports/1102_toivortex_red/__init__.pyteleports/1104_NewbieTravelToken/__init__.pyteleports/1105_StrongholdsTeleports/__init__.pyteleports/1106_teleport_to_fantasy_isle/__init__.pyteleports/1107_CrumaTower/__init__.pyteleports/1630_PaganTeleporters/__init__.pyteleports/2000_NoblesseTeleport/__init__.pyteleports/2400_toivortex_exit/__init__.pyteleports/6000_GrandBossTeleporters/__init__.pyteleports/6111_ElrokiTeleporters/__init__.pyteleports/GatekeeperSpirit/GatekeeperSpirit.javateleports/HuntingGroundsTeleport/HuntingGroundsTeleport.javateleports/MithrilMines/MithrilMines.javateleports/OracleTeleport/OracleTeleport.javateleports/StakatoNest/StakatoNest.javateleports/Warpgate/Warpgate.java  # Village Master village_master/9000_clan/__init__.pyvillage_master/9001_alliance/__init__.pyvillage_master/9002_SubClassCertification/__init__.pyvillage_master/30026_bitz_occupation_change/__init__.pyvillage_master/30031_biotin_occupation_change/__init__.pyvillage_master/30154_asterios_occupation_change/__init__.pyvillage_master/30358_thifiell_occupation_change/__init__.pyvillage_master/30520_reed_occupation_change/__init__.pyvillage_master/30525_bronk_occupation_change/__init__.pyvillage_master/30565_kakai_occupation_change/__init__.pyvillage_master/dark_elven_change_1/__init__.pyvillage_master/dark_elven_change_2/__init__.pyvillage_master/dwarven_occupation_change/__init__.pyvillage_master/elven_human_buffers_2/__init__.pyvillage_master/elven_human_fighters_1/__init__.pyvillage_master/elven_human_fighters_2/__init__.pyvillage_master/elven_human_mystics_1/__init__.pyvillage_master/elven_human_mystics_2/__init__.pyvillage_master/kamael_occupation_change/__init__.pyvillage_master/orc_occupation_change_1/__init__.pyvillage_master/orc_occupation_change_2/__init__.py # Instance Dungeons Section instances/DarkCloudMansion/DarkCloudMansion.javainstances/CrystalCaverns/CrystalCaverns.javainstances/Kamaloka/Kamaloka.javainstances/Pailaka/PailakaSongOfIceAndFire.java # Hellbound Sectionhellbound/Budenka/Budenka.java # Quests Sectionquests/SagasScripts/SagasSuperClass.javaquests/1_LettersOfLove1/__init__.pyquests/2_WhatWomenWant1/__init__.pyquests/3_ReleaseDarkelfElder1/__init__.pyquests/4_LongLiveLordOfFlame/__init__.pyquests/5_MinersFavor/__init__.pyquests/6_StepIntoTheFuture/__init__.pyquests/7_ATripBegins/__init__.pyquests/8_AnAdventureBegins/__init__.pyquests/9_IntoTheCityOfHumans/__init__.pyquests/10_IntoTheWorld/__init__.pyquests/11_SecretMeetingWithKetraOrcs/__init__.pyquests/12_SecretMeetingWithVarkaSilenos/__init__.pyquests/13_ParcelDelivery/__init__.pyquests/14_WhereaboutsOfTheArchaeologist/__init__.pyquests/15_SweetWhisper/__init__.pyquests/16_TheComingDarkness/__init__.pyquests/17_LightAndDarkness/__init__.pyquests/18_MeetingWithTheGoldenRam/__init__.pyquests/19_GoToThePastureland/__init__.pyquests/20_BringUpWithLove/__init__.pyquests/21_HiddenTruth/__init__.pyquests/22_TragedyInVonHellmannForest/__init__.pyquests/23_LidiasHeart/__init__.pyquests/24_InhabitantsOfTheForrestOfTheDead/__init__.pyquests/25_HidingBehindTheTruth/__init__.pyquests/27_ChestCaughtWithABaitOfWind/__init__.pyquests/28_ChestCaughtWithABaitOfIcyAir/__init__.pyquests/29_ChestCaughtWithABaitOfEarth/__init__.pyquests/30_ChestCaughtWithABaitOfFire/__init__.pyquests/31_SecretBuriedInTheSwamp/__init__.pyquests/32_AnObviousLie/__init__.pyquests/33_MakeAPairOfDressShoes/__init__.pyquests/34_InSearchOfClothes/__init__.pyquests/35_FindGlitteringJewelry/__init__.pyquests/36_MakeASewingKit/__init__.pyquests/37_PleaseMakeMeFormalWear/__init__.pyquests/38_DragonFangs/__init__.pyquests/39_RedEyedInvaders/__init__.pyquests/40_ASpecialOrder/__init__.pyquests/42_HelpTheUncle/__init__.pyquests/43_HelpTheSister/__init__.pyquests/44_HelpTheSon/__init__.pyquests/45_ToTalkingIsland/__init__.pyquests/46_OnceMoreInTheArmsOfTheMotherTree/__init__.pyquests/47_IntoTheDarkForest/__init__.pyquests/48_ToTheImmortalPlateau/__init__.pyquests/49_TheRoadHome/__init__.pyquests/50_LanoscosSpecialBait/__init__.pyquests/51_OFullesSpecialBait/__init__.pyquests/52_WilliesSpecialBait/__init__.pyquests/53_LinnaeusSpecialBait/__init__.pyquests/60_GoodWorkReward/__init__.pyquests/62_PathoftheTrooper/__init__.pyquests/63_PathoftheWarder/__init__.pyquests/64_CertifiedBerserker/__init__.pyquests/65_CertifiedSoulBreaker/__init__.pyquests/66_CertifiedArbalester/__init__.pyquests/101_SwordOfSolidarity/__init__.pyquests/102_FungusFever/__init__.pyquests/103_SpiritOfCraftsman/__init__.pyquests/104_SpiritOfMirrors/__init__.pyquests/105_SkirmishWithOrcs/__init__.pyquests/106_ForgottenTruth/__init__.pyquests/107_MercilessPunishment/__init__.pyquests/108_JumbleTumbleDiamondFuss/__init__.pyquests/109_InSearchOfTheNest/__init__.pyquests/110_ToThePrimevalIsle/__init__.pyquests/111_Elrokian_Hunters_Proof/__init__.pyquests/112_WalkOfFate/__init__.pyquests/113_StatusOfTheBeaconTower/__init__.pyquests/114_ResurrectionOfAnOldManager/__init__.pyquests/115_TheOtherSideOfTruth/__init__.pyquests/116_BeyondTheHillsOfWinter/__init__.pyquests/117_OceanOfDistantStar/__init__.pyquests/118_ToLeadAndBeLed/__init__.pyquests/119_LastImperialPrince/__init__.pyquests/120_PavelsResearch/__init__.pyquests/121_PavelTheGiants/__init__.pyquests/122_OminousNews/__init__.pyquests/123_TheLeaderAndTheFollower/__init__.pyquests/124_MeetingTheElroki/__init__.pyquests/130_PathToHellbound/__init__.pyquests/131_BirdInACage/__init__.pyquests/133_ThatsBloodyHot/__init__.pyquests/134_TempleMissionary/__init__.pyquests/135_TempleExecutor/__init__.pyquests/136_MoreThanMeetsTheEye/__init__.pyquests/137_TempleChampionPart1/__init__.pyquests/138_TempleChampionPart2/__init__.pyquests/139_ShadowFoxPart1/__init__.pyquests/140_ShadowFoxPart2/__init__.pyquests/141_ShadowFoxPart3/__init__.pyquests/142_FallenAngelRequestOfDawn/__init__.pyquests/143_FallenAngelRequestOfDusk/__init__.pyquests/151_SaveMySister1/__init__.pyquests/152_ShardsOfGolem/__init__.pyquests/153_WharfOldtimersFavor/__init__.pyquests/154_SacrificeToSea/__init__.pyquests/155_FindSirWindawood/__init__.pyquests/156_MillenniumLove/__init__.pyquests/157_RecoverSmuggled/__init__.pyquests/158_SeedOfEvil/__init__.pyquests/159_ProtectHeadsprings/__init__.pyquests/160_NerupasFavor/__init__.pyquests/161_FruitsOfMothertree/__init__.pyquests/162_CurseOfFortress/__init__.pyquests/163_LegacyOfPoet/__init__.pyquests/164_BloodFiend/__init__.pyquests/165_WildHunt/__init__.pyquests/166_DarkMass/__init__.pyquests/167_DwarvenKinship/__init__.pyquests/168_DeliverSupplies/__init__.pyquests/169_NightmareChildren/__init__.pyquests/170_DangerousAllure/__init__.pyquests/171_ActsOfEvil/__init__.pyquests/172_NewHorizons/__init__.pyquests/173_ToTheIsleOfSouls/__init__.pyquests/174_SupplyCheck/__init__.pyquests/175_TheWayOfTheWarrior/__init__.pyquests/178_IconicTrinity/__init__.pyquests/183_Relic_Exploration/__init__.pyquests/184_Nikolas_Cooperation_Contract/__init__.pyquests/185_Nikolas_Cooperation_Consideration/__init__.pyquests/186_Contract_Execution/__init__.pyquests/187_Nikolas_Heart/__init__.pyquests/188_Seal_Removal/__init__.pyquests/189_Contract_Completion/__init__.pyquests/190_Lost_Dream/__init__.pyquests/191_Vain_Conclusion/__init__.pyquests/192_SevenSignSeriesOfDoubt/__init__.py#quests/193_SevenSignDyingMessage/__init__.py#quests/194_SevenSignContractOfMammon/__init__.py#quests/195_SevenSignSecretRitualOfThePriests/__init__.py#quests/196_SevenSignSealOfTheEmperor/__init__.py#quests/197_SevenSignTheSacredBookOfSeal/__init__.py#quests/198_SevenSignEmbryo/__init__.pyquests/211_TrialOfChallenger/__init__.pyquests/212_TrialOfDuty/__init__.pyquests/213_TrialOfSeeker/__init__.pyquests/214_TrialOfScholar/__init__.pyquests/215_TrialOfPilgrim/__init__.pyquests/216_TrialOfGuildsman/__init__.pyquests/217_TestimonyOfTrust/__init__.pyquests/218_TestimonyOfLife/__init__.pyquests/219_TestimonyOfFate/__init__.pyquests/220_TestimonyOfGlory/__init__.pyquests/221_TestimonyOfProsperity/__init__.pyquests/222_TestOfDuelist/__init__.pyquests/223_TestOfChampion/__init__.pyquests/224_TestOfSagittarius/__init__.pyquests/225_TestOfSearcher/__init__.pyquests/226_TestOfHealer/__init__.pyquests/227_TestOfReformer/__init__.pyquests/228_TestOfMagus/__init__.pyquests/229_TestOfWitchcraft/__init__.pyquests/230_TestOfSummoner/__init__.pyquests/231_TestOfMaestro/__init__.pyquests/232_TestOfLord/__init__.pyquests/233_TestOfWarspirit/__init__.pyquests/234_FatesWhisper/__init__.pyquests/235_MimirsElixir/__init__.pyquests/236_SeedsOfChaos/__init__.pyquests/237_WindsOfChange/__init__.pyquests/238_SuccesFailureOfBusiness/__init__.pyquests/239_WontYouJoinUs/__init__.pyquests/240_ImTheOnlyOneYouCanTrust/__init__.pyquests/241_PossessorOfAPreciousSoul_1/__init__.pyquests/242_PossessorOfAPreciousSoul_2/__init__.pyquests/246_PossessorOfAPreciousSoul_3/__init__.pyquests/247_PossessorOfAPreciousSoul_4/__init__.pyquests/255_Tutorial/__init__.pyquests/257_GuardIsBusy1/__init__.pyquests/258_BringWolfPelt1/__init__.pyquests/259_RanchersPlea/__init__.pyquests/260_HuntForOrcs1/__init__.pyquests/261_DreamOfMoneylender1/__init__.pyquests/262_BringMeMushrooms1/__init__.pyquests/263_KillAllSylphs1/__init__.pyquests/264_KeenClaws/__init__.pyquests/265_ChainsOfSlavery/__init__.pyquests/266_PleaOfPixies/__init__.pyquests/267_WrathOfVerdure/__init__.pyquests/268_TracesOfEvil/__init__.pyquests/269_InventionAmbition/__init__.pyquests/271_ProofOfValor/__init__.pyquests/272_WrathOfAncestors/__init__.pyquests/273_InvadersOfHolyland/__init__.pyquests/274_AgainstWolfMen/__init__.pyquests/275_BlackWingedSpies/__init__.pyquests/276_HestuiTotem/__init__.pyquests/277_GatekeepersOffering/__init__.pyquests/280_TheFoodChain/__init__.pyquests/281_HeadForTheHills/__init__.pyquests/283_TheFewTheProudTheBrave/__init__.pyquests/284_MuertosFeather/__init__.pyquests/286_FabulousFeathers/__init__.pyquests/291_RedBonnetsRevenge/__init__.pyquests/292_CrushBrigands/__init__.pyquests/293_HiddenVein/__init__.pyquests/294_CovertBusiness/__init__.pyquests/295_DreamsOfFlight/__init__.pyquests/296_SilkOfTarantula/__init__.pyquests/297_GatekeepersFavor/__init__.pyquests/298_LizardmensConspiracy/__init__.pyquests/299_GatherIngredientsForPie/__init__.pyquests/300_HuntingLetoLizardman/__init__.pyquests/303_CollectArrowheads/__init__.pyquests/306_CrystalOfFireice/__init__.py#quests/307_ControlDeviceOfTheGiants/__init__.pyquests/308_ReedFieldMaintenance/__init__.pyquests/309_ForAGoodCause/__init__.py#quests/310_OnlyWhatRemains/__init__.py#quests/311_ExpulsionOfEvilSpirits/__init__.pyquests/312_TakeAdvantageOfTheCrisis/__init__.pyquests/313_CollectSpores/__init__.pyquests/316_DestroyPlaguebringers/__init__.pyquests/317_CatchTheWind/__init__.pyquests/319_ScentOfDeath/__init__.pyquests/320_BonesTellFuture/__init__.pyquests/324_SweetestVenom/__init__.pyquests/325_GrimCollector/__init__.pyquests/326_VanquishRemnants/__init__.pyquests/327_ReclaimTheLand/__init__.pyquests/328_SenseForBusiness/__init__.pyquests/329_CuriosityOfDwarf/__init__.pyquests/330_AdeptOfTaste/__init__.pyquests/331_ArrowForVengeance/__init__.pyquests/333_BlackLionHunt/__init__.pyquests/334_TheWishingPotion/__init__.pyquests/335_TheSongOfTheHunter/__init__.pyquests/336_CoinOfMagic/__init__.pyquests/337_AudienceWithTheLandDragon/__init__.pyquests/338_AlligatorHunter/__init__.pyquests/340_SubjugationOfLizardmen/__init__.pyquests/341_HuntingForWildBeasts/__init__.pyquests/343_UnderTheShadowOfTheIvoryTower/__init__.pyquests/344_1000YearsEndofLamentation/__init__.pyquests/345_MethodToRaiseTheDead/__init__.pyquests/347_GoGetTheCalculator/__init__.pyquests/348_ArrogantSearch/__init__.pyquests/350_EnhanceYourWeapon/__init__.pyquests/351_BlackSwan/__init__.pyquests/352_HelpRoodRaiseANewPet/__init__.pyquests/353_PowerOfDarkness/__init__.pyquests/354_ConquestOfAlligatorIsland/__init__.pyquests/355_FamilyHonor/__init__.pyquests/356_DigUpTheSeaOfSpores/__init__.pyquests/357_WarehouseKeepersAmbition/__init__.pyquests/358_IllegitimateChildOfAGoddess/__init__.pyquests/359_ForSleeplessDeadmen/__init__.pyquests/360_PlunderTheirSupplies/__init__.pyquests/362_BardsMandolin/__init__.pyquests/363_SorrowfulSoundofFlute/__init__.pyquests/364_JovialAccordion/__init__.pyquests/365_DevilsLegacy/__init__.pyquests/366_SilverHairedShaman/__init__.pyquests/367_ElectrifyingRecharge/__init__.pyquests/368_TrespassingIntoTheSacredArea/__init__.pyquests/369_CollectorOfJewels/__init__.pyquests/370_AWisemanSowsSeeds/__init__.pyquests/371_ShriekOfGhosts/__init__.pyquests/372_LegacyOfInsolence/__init__.pyquests/373_SupplierOfReagents/__init__.pyquests/374_WhisperOfDreams1/__init__.pyquests/375_WhisperOfDreams2/__init__.pyquests/376_GiantsExploration1/__init__.pyquests/377_GiantsExploration2/__init__.pyquests/378_MagnificentFeast/__init__.pyquests/379_FantasyWine/__init__.pyquests/380_BringOutTheFlavorOfIngredients/__init__.pyquests/381_LetsBecomeARoyalMember/__init__.pyquests/382_KailsMagicCoin/__init__.pyquests/383_SearchingForTreasure/__init__.pyquests/384_WarehouseKeepersPastime/__init__.pyquests/385_YokeofthePast/__init__.pyquests/386_StolenDignity/__init__.pyquests/401_PathToWarrior/__init__.pyquests/402_PathToKnight/__init__.pyquests/403_PathToRogue/__init__.pyquests/404_PathToWizard/__init__.pyquests/405_PathToCleric/__init__.pyquests/406_PathToElvenKnight/__init__.pyquests/407_PathToElvenScout/__init__.pyquests/408_PathToElvenwizard/__init__.pyquests/409_PathToOracle/__init__.pyquests/410_PathToPalusKnight/__init__.pyquests/411_PathToAssassin/__init__.pyquests/412_PathToDarkwizard/__init__.pyquests/413_PathToShillienOracle/__init__.pyquests/414_PathToOrcRaider/__init__.pyquests/415_PathToOrcMonk/__init__.pyquests/416_PathToOrcShaman/__init__.pyquests/417_PathToScavenger/__init__.pyquests/418_PathToArtisan/__init__.pyquests/419_GetAPet/__init__.pyquests/420_LittleWings/__init__.pyquests/421_LittleWingAdventures/__init__.pyquests/422_RepentYourSins/__init__.pyquests/426_FishingShot/__init__.pyquests/431_WeddingMarch/__init__.pyquests/432_BirthdayPartySong/__init__.pyquests/450_GraveRobberMemberRescue/__init__.pyquests/451_LuciensAltar/__init__.pyquests/501_ProofOfClanAlliance/__init__.pyquests/503_PursuitClanAmbition/__init__.pyquests/508_TheClansReputation/__init__.pyquests/509_TheClansPrestige/__init__.pyquests/510_AClansReputation/__init__.pyquests/601_WatchingEyes/__init__.pyquests/602_ShadowOfLight/__init__.pyquests/603_DaimontheWhiteEyedPart1/__init__.pyquests/604_DaimontheWhiteEyedPart2/__init__.pyquests/605_AllianceWithKetraOrcs/__init__.pyquests/606_WarWithVarkaSilenos/__init__.pyquests/607_ProveYourCourage_Ketra/__init__.pyquests/608_SlayTheEnemyCommander_Ketra/__init__.pyquests/609_MagicalPowerOfWaterPart1/__init__.pyquests/610_MagicalPowerOfWaterPart2/__init__.pyquests/611_AllianceWithVarkaSilenos/__init__.pyquests/612_WarWithKetraOrcs/__init__.pyquests/613_ProveYourCourage_Varka/__init__.pyquests/614_SlayTheEnemyCommander_Varka/__init__.pyquests/615_MagicalPowerOfFirePart1/__init__.pyquests/616_MagicalPowerOfFirePart2/__init__.pyquests/617_GatherTheFlames/__init__.pyquests/618_IntoTheFlame/__init__.pyquests/619_RelicsOfTheOldEmpire/__init__.pyquests/620_FourGoblets/__init__.pyquests/621_EggDelivery/__init__.pyquests/622_DeliveryOfSpecialLiquor/__init__.pyquests/623_TheFinestFood/__init__.pyquests/624_TheFinestIngredientsPart1/__init__.pyquests/625_TheFinestIngredientsPart2/__init__.pyquests/626_ADarkTwilight/__init__.pyquests/627_HeartInSearchOfPower/__init__.pyquests/628_HuntGoldenRam/__init__.pyquests/629_CleanUpTheSwampOfScreams/__init__.pyquests/631_DeliciousTopChoiceMeat/__init__.pyquests/632_NecromancersRequest/__init__.pyquests/633_InTheForgottenVillage/__init__.pyquests/634_InSearchofDimensionalFragments/__init__.py#quests/635_InTheDimensionalRift/__init__.py - quest is handled in corequests/636_TruthBeyond/__init__.pyquests/637_ThroughOnceMore/__init__.pyquests/638_SeekersOfTheHolyGrail/__init__.pyquests/639_GuardiansOfTheHolyGrail/__init__.pyquests/640_TheZeroHour/__init__.pyquests/642_APowerfulPrimevalCreature/__init__.pyquests/643_RiseandFalloftheElrokiTribe/__init__.pyquests/644_GraveRobberAnnihilation/__init__.pyquests/645_GhostsOfBatur/__init__.pyquests/646_SignsOfRevolt/__init__.pyquests/647_InfluxOfMachines/__init__.pyquests/648_AnIceMerchantsDream/__init__.pyquests/649_ALooterAndARailroadMan/__init__.pyquests/650_ABrokenDream/__init__.pyquests/651_RunawayYouth/__init__.pyquests/652_AnAgedExAdventurer/__init__.pyquests/653_WildMaiden/__init__.pyquests/654_JourneytoaSettlement/__init__.pyquests/659_IdRatherBeCollectingFairyBreath/__init__.pyquests/660_AidingtheFloranVillage/__init__.pyquests/661_TheHarvestGroundsSafe/__init__.pyquests/662_AGameOfCards/__init__.pyquests/663_SeductiveWhispers/__init__.pyquests/688_DefeatTheElrokianRaiders/__init__.pyquests/998_FallenAngelSelect/__init__.pyquests/999_T1Tutorial/__init__.pyquests/10267_JourneyToGracia/__init__.pyquests/10268_ToTheSeedOfInfinity/__init__.pyquests/10269_ToTheSeedOfDestruction/__init__.pyquests/10273_GoodDayToFly/__init__.pyquests/10274_CollectingInTheAir/__init__.pyquests/10275_ContainingTheAttributePower/__init__.py # Customcustom/1000_NonTalkingNpcs/__init__.pycustom/1001_FortuneTelling/__init__.pycustom/1002_Nottingale/__init__.pycustom/3995_echo/__init__.pycustom/4000_ShadowWeapons/__init__.pycustom/5000_MissQueen/__init__.pycustom/5001_NewbieCoupons/__init__.pycustom/6050_KetraOrcSupport/__init__.pycustom/6051_VarkaSilenosSupport/__init__.pycustom/8000_RaidbossInfo/__init__.pycustom/8001_NpcLocationInfo/__init__.pycustom/8004_PurchaseBracelet/__init__.pycustom/8005_SubClassSkills/__init__.pycustom/HeroCirclet/HeroCirclet.javacustom/HeroWeapon/HeroWeapon.javacustom/IOPRace/IOPRace.javacustom/PinsAndPouchUnseal/PinsAndPouchUnseal.javacustom/SkillTransfer/SkillTransfer.javacustom/555_NPCBUFFER/__init__.py # Eventsevents/CharacterBirthday/CharacterBirthday.java # Disabled by default events#events/TheValentineEvent/TheValentineEvent.java 

Code: Select all

Error on: C:\Users\Home-Pc\Desktop\Lineage 2 Server\gameserver\data\scripts\custom\555555_NPCBUFFER\__init__.py.error.logLine: -1 - Column: -1 Traceback (innermost last):  File "__init__.py", line 4, in ?ImportError: no module named net 
I don't know what i have to do i hope u can help me thx :oops:
Allera
Posts: 19
Joined: Sun Feb 21, 2010 4:57 pm

Re: Need Help with special Buffer

Post by Allera »

and my __init_.py file

Code: Select all

import sysfrom java.lang import Systemfrom java.util import Iteratorfrom net.sf.l2j import Configfrom net.sf.l2j.gameserver.model.quest import Statefrom net.sf.l2j.gameserver.model.quest import QuestStatefrom net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuestfrom net.sf.l2j.gameserver.instancemanager import QuestManagerfrom net.sf.l2j import L2DatabaseFactoryfrom net.sf.l2j.gameserver.datatables import SkillTablefrom net.sf.l2j.gameserver.datatables import ItemTablefrom net.sf.l2j.gameserver.model.actor.instance import L2PcInstancefrom net.sf.l2j.gameserver.model.actor.instance import L2PetInstancefrom net.sf.l2j.gameserver.model.actor.instance import L2SummonInstancefrom net.sf.l2j.gameserver.network.serverpackets import SetSummonRemainTimefrom net.sf.l2j.gameserver.network.serverpackets import SetupGauge QUEST_ID = 555QUEST_NAME   = "NPCBuffer"QUEST_DESCRIPTION   = "custom"QUEST_LOADING_INFO = str(QUEST_ID)+"_"+QUEST_NAMENPC_ID = 555 TITLE_NAME = "Buffer"SCRIPT_RELOAD = True ENABLE_VIP_BUFFER = FalseVIP_ACCESS_LEVEL = 1                ENABLE_BUFF_SECTION = True    ENABLE_SCHEME_SYSTEM = True              ENABLE_HEAL = True                       ENABLE_BUFFS = True                      ENABLE_RESIST = True                     ENABLE_SONGS = True                      ENABLE_DANCES = True                     ENABLE_CHANTS = False                 ENABLE_OTHERS = True                     ENABLE_SPECIAL = True                    ENABLE_CUBIC = True                    ENABLE_BUFF_REMOVE = True                ENABLE_BUFF_SET = TrueBUFF_WITH_KARMA = False                  FREE_BUFFS = False                       TIME_OUT = True           TIME_OUT_TIME = 10                    MIN_LEVEL = 20                           BUFF_REMOVE_PRICE = 100000                 HEAL_PRICE = 1000000                      BUFF_PRICE = 100000                     RESIST_PRICE = 100000                    SONG_PRICE = 100000                      DANCE_PRICE = 100000                      CHANT_PRICE = 100000                      OTHERS_PRICE = 1000000                     SPECIAL_PRICE = 1000000                   CUBIC_PRICE = 1000000                    BUFF_SET_PRICE = 10000000                 SCHEME_BUFF_PRICE = 10000000              SCHEMES_PER_PLAYER = 4                   CONSUMABLE_ID = 57                       MAX_SCHEME_BUFFS = Config.BUFFS_MAX_AMOUNTMAX_SCHEME_DANCES = Config.DANCES_MAX_AMOUNT def rebuildMainHtml(st) :	MAIN_HTML_MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"; MESSAGE = ""	bottonA="Auto Buff";bottonB="Heal Me";bottonC="Rem. Buffs";i=0;j=0;Temp="<tr><td> </td> <td> </td></tr>";TRS = Temp.split(" ")	if st.getInt("Pet-On-Off") == 1:		bottonA="Auto Buff Pet";bottonB="Heal My Pet";bottonC="Rem. Pet Buffs"		MAIN_HTML_MESSAGE += "<button value=\"Pet Options\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " buffpet 0 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"		else: MAIN_HTML_MESSAGE += "<button value=\"Char Options\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " buffpet 1 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"	if ENABLE_BUFF_SECTION == True :			if ENABLE_BUFFS == True :			if i>2:i=0			MESSAGE += TRS[i]+"<button value=\"Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_buffs 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]			i+=2;j+=1		if ENABLE_RESIST == True :		       	if i>2:i=0			MESSAGE += TRS[i]+"<button value=\"Resist\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_resists 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]	                	i+=2;j+=1		if ENABLE_SONGS == True :			if i>2:i=0			MESSAGE += TRS[i]+"<button value=\"Songs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_songs 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]			i+=2;j+=1		if ENABLE_DANCES == True :			if i>2:i=0			MESSAGE += TRS[i]+"<button value=\"Dances\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_dances 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]			i+=2;j+=1		if ENABLE_CHANTS == True :			if i>2:i=0			MESSAGE += TRS[i]+"<button value=\"Chants\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_chants 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]			i+=2;j+=1		if ENABLE_SPECIAL == True :			if i>2:i=0			MESSAGE += TRS[i]+"<button value=\"Special\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_special 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]			i+=2;j+=1		if ENABLE_OTHERS == True :			if i>2:i=0			MESSAGE += TRS[i]+"<button value=\"Others\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_others 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]			i+=2;j+=1	if ENABLE_CUBIC == True:		if i>2:i=0		MESSAGE += TRS[i]+"<button value=\"Cubics\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_cubic 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]		i+=2;j+=1	if ENABLE_BUFF_SET == True :		if i>2:i=0		MESSAGE += TRS[i]+"<button value=\""+bottonA+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " castBuffSet 0 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]				i+=2;j+=1	if ENABLE_HEAL == True :		if i>2:i=0		MESSAGE += TRS[i]+"<button value=\""+bottonB+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " heal 0 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]			i+=2;j+=1	if ENABLE_BUFF_REMOVE == True:		if i>2:i=0		MESSAGE += TRS[i]+"<button value=\""+bottonC+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " removeBuffs 0 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[i+1]					i+=2;j+=1	if j == 1: MAIN_HTML_MESSAGE+= MESSAGE + "<br>"	else: MAIN_HTML_MESSAGE+= "<table>" + MESSAGE + "</table><br>"	if ENABLE_SCHEME_SYSTEM == True : 		MAIN_HTML_MESSAGE += generateScheme(st) 	if st.getPlayer().isGM() : 		MAIN_HTML_MESSAGE += "<br><button value=\"Manage Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect manage_buffs 0 0\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"	MAIN_HTML_MESSAGE += "<br><font color=\"303030\">"+TITLE_NAME+"</font>"	MAIN_HTML_MESSAGE += "</center></body></html>"	return MAIN_HTML_MESSAGE def generateScheme(st) :	schemeName = []	schemeId = []	HTML = ""	conn=L2DatabaseFactory.getInstance().getConnection()	rss = conn.prepareStatement("SELECT * FROM buffer_scheme_list WHERE player_id="+str(st.getPlayer().getObjectId()))	action=rss.executeQuery()	while (action.next()) :		try :			schemeName += [action.getString("scheme_name")]			schemeId += [action.getString("id")]		except : print "Query error!"	try : conn.close()	except : pass	if len(schemeName) > 0:		MESSAGE = ""		i=0;j=0;Temp="<tr><td> </td> <td> </td></tr>";TRS = Temp.split(" ")		while i <= len(schemeName) - 1:		       	if j>2:j=0			MESSAGE += TRS[j]+"<button value=\""+schemeName[i]+"\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" cast "+schemeId[i]+" x x\" width=130 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"+TRS[j+1]			i+=1;j+=2		if i == 1: HTML+= MESSAGE + "<br>"		else: HTML+= "<table>" + MESSAGE + "</table><br>"	if len(schemeName) < SCHEMES_PER_PLAYER :		HTML += "<table><tr><td><button value=\"Create\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" create_1 x x x\" width=85 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"	else : HTML += "<table width=100><tr>"	if len(schemeName) > 0 :		HTML += "<td><button value=\"Edit\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" edit_1 x x x\" width=85 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"		HTML += "<td><button value=\"Delete\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" delete_1 x x x\" width=85 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr></table>"					else : HTML += "</tr></table>"	return HTML def reloadPanel(st) :	HTML_MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"	HTML_MESSAGE += "<font color=\"303030\">"+TITLE_NAME+"</font><br>"	HTML_MESSAGE += "<img src=\"L2UI.SquareGray\" width=250 height=1><br>"	HTML_MESSAGE += "<table width=260 border=0 bgcolor=444444>"	HTML_MESSAGE += "<tr><td><br></td></tr>"                                                                                                                                                                                                	HTML_MESSAGE += "<tr><td align=\"center\"><font color=\"FFFFFF\">This option can be seen by GMs only and it<br1>allow to update any changes made in the<br1>script. You can disable this option in<br1>the settings section within the Script.<br><font color=\"LEVEL\">Do you want to update the SCRIPT?</font></font></td></tr>"	HTML_MESSAGE += "<tr><td></td></tr></table><br>"	HTML_MESSAGE += "<img src=\"L2UI.SquareGray\" width=250 height=1><br><br>"	HTML_MESSAGE += "<button value=\"Yes\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" reloadscript 1 0 0\" width=50 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"	HTML_MESSAGE += "<button value=\"No\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" reloadscript 0 0 0\" width=50 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"					HTML_MESSAGE += "</center></body></html>"	return HTML_MESSAGE def getitemname(st,itemval):	conn=L2DatabaseFactory.getInstance().getConnection()	itemidList = conn.prepareStatement("SELECT * FROM etcitem WHERE item_id="+str(itemval))	il=itemidList.executeQuery()	val = "No Name"	if il :		il.next()		try : val = il.getString("name")							except : pass	try : conn.close()	except: pass	return val def getBuffCount(scheme) :	count = 0	conn=L2DatabaseFactory.getInstance().getConnection()	rss = conn.prepareStatement("SELECT * FROM buffer_scheme_contents WHERE scheme_id=\""+str(scheme)+"\"")	action=rss.executeQuery()	while (action.next()) :		try : count += 1		except : count = 0	try : conn.close()	except : pass			return count def getBuffType(id) :	conn=L2DatabaseFactory.getInstance().getConnection()	act = conn.prepareStatement("SELECT buffType FROM buffer_buff_list WHERE buffId=? LIMIT 1")	act.setInt(1, int(id))	rs=act.executeQuery()	val = "none"	if rs :		rs.next()		try : val = rs.getString("buffType")							except : val = "none"	try : conn.close()	except: pass	return val def isEnabled(id,level) :	conn=L2DatabaseFactory.getInstance().getConnection()	act = conn.prepareStatement("SELECT canUse FROM buffer_buff_list WHERE buffId=? AND buffLevel=? LIMIT 1")	act.setInt(1, int(id))	act.setInt(2, int(level))	rs=act.executeQuery()	val = "False"	if rs :		rs.next()		try : num = rs.getString("canUse")							except : pass	try : conn.close()	except: pass	if num == "1" : val = "True"		return val	 def isUsed(scheme,id,level) :	count = 0; used = False	conn=L2DatabaseFactory.getInstance().getConnection()	rss = conn.prepareStatement("SELECT * FROM buffer_scheme_contents WHERE scheme_id=\""+str(scheme)+"\" AND skill_id=\""+str(id)+"\" AND skill_level=\""+str(level)+"\"")	action=rss.executeQuery()	used = False	while (action.next()) :		try : count += 1		except : count = 0	try : conn.close()	except : pass			if count > 0 : used = True	return used def getclassbuff(id):		conn=L2DatabaseFactory.getInstance().getConnection()	getTipo = conn.prepareStatement("SELECT * FROM buffer_buff_list WHERE buffId=\""+id+"\"")	gt=getTipo.executeQuery()	val = 0	if gt :		gt.next()		try : val = gt.getInt("buff_class")		except : pass	try : conn.close()	except : pass	return val def showText(st,type,text,buttonEnabled,buttonName,location) :	MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"	MESSAGE += "<font color=\"LEVEL\">"+type+"</font><br>"+text+"<br>"	if buttonEnabled == "True" :		MESSAGE += "<button value=\""+buttonName+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect "+location+" 0 0\" width=100 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"	MESSAGE += "<font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"	st.playSound("ItemSound3.sys_shortage")	return MESSAGE def ReloadConfig(st) :	try:		if QuestManager.getInstance().reload(QUEST_ID): st.player.sendMessage("The script and settings have been reloaded successfully.")		else: st.player.sendMessage("Script Reloaded Failed. you edited something wrong! :P, fix it and restart the server")	except: st.player.sendMessage("Script Reloaded Failed. you edited something wrong! :P, fix it and restart the server")	return rebuildMainHtml(st) class Quest (JQuest) : 	def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) 	def onAdvEvent (self,event,npc,player) :		st = player.getQuestState(QUEST_LOADING_INFO)		getpetbuff = 0		if st.getInt("Pet-On-Off") == 1: getpetbuff = 1 		def createScheme() :			HTML = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>You MUST seprerate new words with a dot (.)<br><br>Scheme name: <edit var=\"name\" width=100><br><br>"			HTML += "<button value=\"Create Scheme\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" create $name no_name x x\" width=200 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML += "<br><button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML 		def deleteScheme() : 			HTML = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>Available schemes:<br><br>"			conn=L2DatabaseFactory.getInstance().getConnection()			rss = conn.prepareStatement("SELECT * FROM buffer_scheme_list WHERE player_id="+str(st.getPlayer().getObjectId()))			action=rss.executeQuery()			while (action.next()) :				try : HTML += "<button value=\""+action.getString("scheme_name")+"\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" delete_c "+action.getString("id")+" "+action.getString("scheme_name")+" x\" width=200 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"				except : print "Query error!"			try : conn.close()			except : pass				HTML += "<br><button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"						HTML += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML 		def editScheme() : 			name = ""; id = ""			HTML = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>Select a scheme that you would like to manage:<br><br>"			conn=L2DatabaseFactory.getInstance().getConnection()			rss = conn.prepareStatement("SELECT * FROM buffer_scheme_list WHERE player_id="+str(st.getPlayer().getObjectId()))			action=rss.executeQuery()			while (action.next()) :				try :					name = action.getString("scheme_name")					id = action.getString("id")					HTML += "<button value=\""+name+"\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" manage_scheme_select "+id+" x x\" width=200 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"				except : print "Query error!"			try : conn.close()			except : pass				HTML += "<br><button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML 		def getOptionList(scheme) :			Bcount = getBuffCount(scheme)			HTML = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>There are <font color=\"LEVEL\">"+str(Bcount)+"</font> buffs in current scheme!<br><br>"			if Bcount < MAX_SCHEME_BUFFS + MAX_SCHEME_DANCES:				HTML += "<button value=\"Add buffs\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" manage_scheme_1 "+str(scheme)+" 1 x\" width=200 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if Bcount > 0 :				HTML += "<button value=\"Remove buffs\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" manage_scheme_2 "+str(scheme)+" 1 x\" width=200 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"							HTML += "<br><button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_1 0 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML += "<button value=\"Home\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML 		def buildHtml(buffType):			HTML_MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><br>"			if FREE_BUFFS == True : HTML_MESSAGE += "All buffs are for <font color=\"LEVEL\">free</font>!"						else :				price = 0				if buffType == "buff" : price = BUFF_PRICE                                if buffType == "resist" : price = RESIST_PRICE				if buffType == "song" : price = SONG_PRICE				if buffType == "dance" : price = DANCE_PRICE				if buffType == "chant" : price = CHANT_PRICE				if buffType == "others" : price = OTHERS_PRICE				if buffType == "special" : price = SPECIAL_PRICE				if buffType == "cubic" : price = CUBIC_PRICE				HTML_MESSAGE += "All special buffs cost <font color=\"LEVEL\">"+str(price)+"</font> adena!"			HTML_MESSAGE += "<table>"			conn=L2DatabaseFactory.getInstance().getConnection()			buffCount = 0; i = 0			getList = conn.prepareStatement("SELECT * FROM buffer_buff_list WHERE buffType=\""+buffType+"\" AND canUse=1")			rs=getList.executeQuery()			while (rs.next()) :				try : buffCount += 1				except : buffCount = 0			if buffCount == 0 : HTML_MESSAGE += "No buffs are available at this moment!<br>"			else :				availableBuffs = []				getList = conn.prepareStatement("SELECT buffId,buffLevel FROM buffer_buff_list WHERE buffType=\""+buffType+"\" AND canUse=1  ORDER BY Buff_Class ASC, id")				rs=getList.executeQuery()				while (rs.next()) :					try :						bId = rs.getInt("buffId")						bLevel = rs.getInt("buffLevel")						bName = SkillTable.getInstance().getInfo(bId,bLevel).getName()						bName = bName.replace(" ","+")						availableBuffs += [bName+"_"+str(bId)+"_"+str(bLevel)]					except: HTML_MESSAGE += "Error loading buff list...<br>"				try : conn.close()				except : pass				avBuffs = len(availableBuffs)				format = "0000"				for avBuffs in availableBuffs :					buff = avBuffs					buff = buff.replace("_"," ")					buffSplit = buff.split(" ")					name = buffSplit[0]					id = int(buffSplit[1])					level = buffSplit[2]					name = name.replace("+"," ")					if id < 100 : format = "00"+str(id)					elif id > 99 and id < 1000 : format = "0"+str(id)					else :						if id > 4698 and id < 4701 : format = "1331"						elif id > 4701 and id < 4704 : format = "1332"						else: format = str(id)					i += 1					HTML_MESSAGE += "<tr><td><img src=\"Icon.skill"+format+"\" width=32 height=32></td><td><button value=\""+name+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " giveBuffs "+str(id)+" "+str(level)+" "+buffType+"\" width=190 height=32 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>"												HTML_MESSAGE += "</table><br><button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML_MESSAGE += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML_MESSAGE 		def generateQuery(case,case2) :			aa = 1; count = 0; qry = ""; buffTypes = []			if ENABLE_BUFFS == True and case < MAX_SCHEME_BUFFS:				count += 1				buffTypes += ["\"buff\""]			if ENABLE_RESIST == True and case < MAX_SCHEME_BUFFS:				count += 1				buffTypes += ["\"resist\""]			if ENABLE_SONGS == True and case2 < MAX_SCHEME_DANCES:				count += 1				buffTypes += ["\"song\""]			if ENABLE_DANCES == True and case2 < MAX_SCHEME_DANCES:				count += 1				buffTypes += ["\"dance\""]			if ENABLE_CHANTS == True and case < MAX_SCHEME_BUFFS:				count += 1				buffTypes += ["\"chant\""]			if ENABLE_OTHERS == True and case < MAX_SCHEME_BUFFS:				count += 1				buffTypes += ["\"others\""]			if ENABLE_SPECIAL == True and case < MAX_SCHEME_BUFFS:				count += 1				buffTypes += ["\"special\""]			while aa <= count :				if aa == count : qry += buffTypes[aa-1]				else : qry += buffTypes[aa-1]+","				aa += 1			return qry 		def viewAllSchemeBuffs(scheme,page,action) :			def getBuffCount(scheme) :				count = 0; D_S_Count = 0; B_Count = 0				conn=L2DatabaseFactory.getInstance().getConnection()				rss = conn.prepareStatement("SELECT * FROM buffer_scheme_contents WHERE scheme_id=\""+str(scheme)+"\"")				action=rss.executeQuery()				while (action.next()) :					try : 						val = action.getInt("buff_class")						count += 1							if val == 1 or val == 2: D_S_Count += 1						else: B_Count += 1								except : count = 0; D_S_Count = 0 ; B_Count = 0				res = str(count) + " " + str(B_Count) + " " + str(D_S_Count)				try : conn.close()				except : pass						return res			buffList = []			conn=L2DatabaseFactory.getInstance().getConnection()			count = 0; pc = 0; bll = 0; i = 0; buffsPerPage = 0; incPageCount = True; listOrder=""			HTML_MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><br>"			eventSplit = getBuffCount(scheme).split(" ")			TOTAL_BUFF = int(eventSplit[0]); BUFF_COUNT = int(eventSplit[1]); DANCE_SONG = int(eventSplit[2])			if action == "add" :				HTML_MESSAGE += "You can add <font color=\"LEVEL\">"+str(MAX_SCHEME_BUFFS - BUFF_COUNT)+"</font> Buffs and <font color=\"LEVEL\">"+str(MAX_SCHEME_DANCES - DANCE_SONG)+"</font> Dances more!"				QUERY = "SELECT * FROM buffer_buff_list WHERE buffType IN ("+ generateQuery(BUFF_COUNT,DANCE_SONG) + ") AND canUse=1 ORDER BY Buff_Class ASC, id"			if action == "remove" :				HTML_MESSAGE += "You have <font color=\"LEVEL\">"+str(BUFF_COUNT)+"</font> Buffs and <font color=\"LEVEL\">"+str(DANCE_SONG)+"</font> Dances"				QUERY = "SELECT * FROM buffer_scheme_contents WHERE scheme_id="+str(scheme)+" ORDER BY Buff_Class ASC, id"							getBuffCount = conn.prepareStatement(QUERY)			rss = getBuffCount.executeQuery()			while (rss.next()) :				try :					if action == "add" :						name = SkillTable.getInstance().getInfo(rss.getInt("buffId"),rss.getInt("buffLevel")).getName()						name = name.replace(" ","+")						buffList += [name+"_"+str(rss.getInt("buffId"))+"_"+str(rss.getInt("buffLevel"))+"_"+str(page)]					if action == "remove" :						name = SkillTable.getInstance().getInfo(rss.getInt("skill_id"),rss.getInt("skill_level")).getName()						name = name.replace(" ","+")						buffList += [name+"_"+str(rss.getInt("skill_id"))+"_"+str(rss.getInt("skill_level"))+"_"+str(page)]											count = count + 1				except :					buffList = []					count = 0			try : conn.close()			except : pass			HTML_MESSAGE += "<table border=\"0\"><tr>"			buffsPerPage = 20			while incPageCount == True: # generating page count				if count < buffsPerPage : incPageCount = False				else : count = count - buffsPerPage 				pc += 1 			ii = 1			while ii <= pc :				if pc > 5 :					width = "25"					pageName = "P"				else :					width = "50"					pageName = "Page "				if action == "add" : HTML_MESSAGE += "<td width=\""+width+"\"><button value=\""+pageName+""+str(ii)+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " manage_scheme_1 "+str(scheme)+" "+str(ii)+" x\" width="+width+" height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"				if action == "remove" : HTML_MESSAGE += "<td width=\""+width+"\"><button value=\""+pageName+""+str(ii)+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " manage_scheme_2 "+str(scheme)+" "+str(ii)+" x\" width="+width+" height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"									ii += 1			HTML_MESSAGE += "</tr></table>"			value = ""; bll = len(buffList); j = 0; k=0			if buffsPerPage*int(page) > bll : j = bll			else : j = buffsPerPage*int(page)			i = buffsPerPage*int(page)-buffsPerPage			while i < j :				value = buffList[i]				value = value.replace("_"," ")				extr = value.split(" ")				name = extr[0]				name = name.replace("+"," ")				id = int(extr[1])				level = extr[2]				page = int(extr[3])				if id < 100 : format = "00"+str(id)				elif id > 99 and id < 1000 : format = "0"+str(id)				else :					if id > 4698 and id < 4701 : format = "1331"					elif id > 4701 and id < 4704 : format = "1332"					else: format = str(id)				if action == "add":					if isUsed(scheme,id,level) == False:						if k % 2 != 0 : HTML_MESSAGE += "<table border=\"0\" bgcolor=333333>"						else : HTML_MESSAGE += "<table border=\"0\" bgcolor=292929>"						HTML_MESSAGE += "<tr><td width=\"35\"><img src=\"Icon.skill"+format+"\" width=32 height=32></td><td width=\"170\">"+name+"</td><td><button value=\"Add\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" add_buff "+str(scheme)+"_"+str(id)+"_"+str(level)+" "+str(page)+" "+str(TOTAL_BUFF)+"\" width=65 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"						HTML_MESSAGE += "</tr></table>"; k+=1				if action == "remove":					if k % 2 != 0 : HTML_MESSAGE += "<table border=\"0\" bgcolor=333333>"					else : HTML_MESSAGE += "<table border=\"0\" bgcolor=292929>"					HTML_MESSAGE += "<tr><td width=\"35\"><img src=\"Icon.skill"+format+"\" width=32 height=32></td><td width=\"170\">"+name+"</td><td><button value=\"Remove\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" remove_buff "+str(scheme)+"_"+str(id)+"_"+str(level)+" "+str(page)+" "+str(TOTAL_BUFF)+"\" width=65 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"					HTML_MESSAGE += "</table>"; k+=1				i += 1			HTML_MESSAGE += "<br><br><button value=\"Back\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" manage_scheme_select "+str(scheme)+" x x\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML_MESSAGE += "<button value=\"Home\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"							HTML_MESSAGE += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML_MESSAGE 		def viewAllBuffTypes() :			HTML_MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"			HTML_MESSAGE += "<font color=\"LEVEL\">[Buff management]</font><br>"			if ENABLE_BUFFS == True :				HTML_MESSAGE += "<button value=\"Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list buff Buffs 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if ENABLE_RESIST == True :				HTML_MESSAGE += "<button value=\"Resist Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list resist Resists 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"                        if ENABLE_SONGS == True :				HTML_MESSAGE += "<button value=\"Songs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list song Songs 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if ENABLE_DANCES == True :				HTML_MESSAGE += "<button value=\"Dances\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list dance Dances 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if ENABLE_CHANTS == True :				HTML_MESSAGE += "<button value=\"Chants\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list chant Chants 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if ENABLE_SPECIAL == True :				HTML_MESSAGE += "<button value=\"Special Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list special Special_Buffs 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if ENABLE_OTHERS == True :				HTML_MESSAGE += "<button value=\"Others Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list others Others_Buffs 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if ENABLE_CUBIC == True :				HTML_MESSAGE += "<button value=\"Cubics\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list cubic cubic_Buffs 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			if ENABLE_BUFF_SET == True :				HTML_MESSAGE += "<button value=\"Buff Sets\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list set Buff_Sets 1\" width=200 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"><br>"						HTML_MESSAGE += "<button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML_MESSAGE += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML_MESSAGE 		def viewAllBuffs(type,typeName,page) :			buffList = []			conn=L2DatabaseFactory.getInstance().getConnection()			count = 0; pc = 0; bll = 0; i = 0; buffsPerPage = 0; formula = 0 ; incPageCount = True ; listOrder=""			HTML_MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"			typeName = typeName.replace("_"," ")			if type == "set" : QUERY = "SELECT * FROM buffer_buff_list WHERE buffType IN ("+generateQuery(0,0)+") AND canUse=1"			else : QUERY = "SELECT * FROM buffer_buff_list WHERE buffType=\""+type+"\""			getBuffCount = conn.prepareStatement(QUERY)			rss = getBuffCount.executeQuery()			while (rss.next()) :				try :						name = SkillTable.getInstance().getInfo(rss.getInt("buffId"),rss.getInt("buffLevel")).getName()					name = name.replace(" ","+")					usable = rss.getString("canUse")					forClass = rss.getString("forClass")					skill_id = rss.getString("buffId")					skill_level = rss.getString("buffLevel")					buffList += [name+"_"+forClass+"_"+str(page)+"_"+usable+"_"+skill_id+"_"+skill_level]					count = count + 1				except :					buffList = []					count = 0			try : conn.close()			except : pass			buffList.sort()			HTML_MESSAGE += "<font color=\"LEVEL\">[Buff management - "+typeName+" - Page "+str(page)+"]</font><br><table border=\"0\"><tr>"			if type == "set" : buffsPerPage = 12			else : buffsPerPage = 20			while incPageCount == True:				if count < buffsPerPage :  incPageCount = False				else : count -= buffsPerPage 				pc += 1			ii = 1			typeName = typeName.replace(" ","_")			while ii <= pc :				if pc > 5 :					width = "25"					pageName = "P"				else :					width = "50"					pageName = "Page "				HTML_MESSAGE += "<td width=\""+width+"\"><button value=\""+pageName+""+str(ii)+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " edit_buff_list "+type+" "+typeName+" "+str(ii)+"\" width="+width+" height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>"				ii += 1			HTML_MESSAGE += "</tr></table><br>"			value = ""; bll = len(buffList); j = 0			if buffsPerPage*int(page) > bll : j = bll			else : j = buffsPerPage*int(page)			i = buffsPerPage*int(page)-buffsPerPage			while i < j :				value = buffList[i]				value = value.replace("_"," ")				extr = value.split(" ")				name = extr[0]				name = name.replace("+"," ")				forClass = int(extr[1])				page = extr[2]				usable = int(extr[3])				skillPos = extr[4]+"_"+extr[5]				if i % 2 != 0 : HTML_MESSAGE += "<table border=\"0\" bgcolor=333333>"				else : HTML_MESSAGE += "<table border=\"0\" bgcolor=292929>"				if type == "set" :					if forClass == 0 :						listOrder="List=\"Fighter;Mage;All;None;\""					if forClass == 1 :						listOrder="List=\"Mage;Fighter;All;None;\""					if forClass == 2 :						listOrder="List=\"All;Fighter;Mage;None;\""					if forClass == 3 :						listOrder="List=\"None;Fighter;Mage;All;\""						HTML_MESSAGE += "<tr><td width=\"145\">"+name+"</td><td width=\"70\"><combobox var=\"newSet"+str(i)+"\" width=70 "+listOrder+"></td>"					HTML_MESSAGE += "<td width=\"50\"><button value=\"Update\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " changeBuffSet "+str(skillPos)+" $newSet"+str(i)+" "+page+"\" width=50 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>"				else :					HTML_MESSAGE += "<tr><td width=\"170\">"+name+"</td><td width=\"80\">"					if usable == 1 : HTML_MESSAGE += "<button value=\"Disable\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " editSelectedBuff "+skillPos+" 0-"+page+" "+type+"\" width=80 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>"					elif usable == 0 : HTML_MESSAGE += "<button value=\"Enable\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " editSelectedBuff "+skillPos+" 1-"+page+" "+type+"\" width=80 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>"				HTML_MESSAGE += "</table>"				i += 1			HTML_MESSAGE += "<br><br><button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect manage_buffs 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML_MESSAGE += "<button value=\"Home\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect main 0 0\" width=100 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"							HTML_MESSAGE += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML_MESSAGE	 		def manageSelectedBuff(buffPosId,canUseBuff) :			bpid = buffPosId.split("_")			bId= bpid[0]			bLvl= bpid[1]			conn=L2DatabaseFactory.getInstance().getConnection()			upd=conn.prepareStatement("UPDATE buffer_buff_list SET canUse=\""+canUseBuff+"\" WHERE buffId=\""+str(bId)+"\" AND buffLevel=\""+str(bLvl)+"\" LIMIT 1")			try :				upd.executeUpdate()				upd.close()				conn.close()			except :				try : conn.close()				except : pass 		def manageSelectedSet(id,newVal,opt3) :			bpid = id.split("_")			bId= bpid[0]			bLvl= bpid[1]					conn=L2DatabaseFactory.getInstance().getConnection()			upd=conn.prepareStatement("UPDATE buffer_buff_list SET forClass=? WHERE buffId=? AND 
Allera
Posts: 19
Joined: Sun Feb 21, 2010 4:57 pm

Re: Need Help with special Buffer

Post by Allera »

Code: Select all

bufflevel=?")			upd.setString(1, newVal)			upd.setString(2, str(bId))			upd.setString(3, str(bLvl))			try :				upd.executeUpdate()				upd.close()				conn.close()			except :				try : conn.close()				except : pass			return viewAllBuffs("set","Buff Sets",str(opt3))											 		def addTimeout(gaugeColor,amount,offset) :			endtime = int((System.currentTimeMillis() + (amount * 1000))/1000)			st.set("blockUntilTime",str(endtime))			st.getPlayer().sendPacket(SetupGauge(gaugeColor, amount * 1000 + offset))	 		def heal(case) :			if case == 0:				st.getPlayer().getStatus().setCurrentHp(st.getPlayer().getStat().getMaxHp())				st.getPlayer().getStatus().setCurrentMp(st.getPlayer().getStat().getMaxMp())				st.getPlayer().getStatus().setCurrentCp(st.getPlayer().getStat().getMaxCp())			if case == 1 and st.player.getPet() != None :				st.player.getPet().getStatus().setCurrentHp(st.player.getPet().getStat().getMaxHp())				st.player.getPet().getStatus().setCurrentMp(st.player.getPet().getStat().getMaxMp())				try:					st.player.getPet().setCurrentFed(st.player.getPet().getMaxFed())					st.player.sendPacket(SetSummonRemainTime(st.player.getPet().getMaxFed(), st.player.getPet().getCurrentFed()))				except: 					try: 						st.player.getPet().decTimeRemaining(st.player.getPet().getTimeRemaining() - st.player.getPet().getTotalLifeTime())						st.player.sendPacket(SetSummonRemainTime(st.player.getPet().getTotalLifeTime(), st.player.getPet().getTimeRemaining()))					except: pass		eventSplit = event.split(" ")		event = eventSplit[0]		eventParam1 = eventSplit[1]		eventParam2 = eventSplit[2]		eventParam3 = eventSplit[3] 		if event == "reloadscript":			if eventParam1 == "1": return ReloadConfig(st)			if eventParam1 == "0": return rebuildMainHtml(st) 		if event == "redirect" :			if eventParam1 == "main" : return rebuildMainHtml(st)			if eventParam1 == "manage_buffs" : return viewAllBuffTypes() 		if event == "buffpet" :			if int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime") :				st.set("Pet-On-Off",eventParam1)				if TIME_OUT == True: addTimeout(3,TIME_OUT_TIME/2,600)			return rebuildMainHtml(st) 		if event == "create" :			con=L2DatabaseFactory.getInstance().getConnection()			param = eventParam1.replace("."," ")			if param == "no_name" :				return showText(st,"Info","Please, enter the scheme name!","True","Return","main")			else :				ins = con.prepareStatement("INSERT INTO buffer_scheme_list (player_id,scheme_name) VALUES (?,?)")				ins.setString(1, str(st.player.getObjectId()))				ins.setString(2, param)				try :					ins.executeUpdate()					ins.close()					con.close()				except : pass			return rebuildMainHtml(st) 		if event == "delete" :			conn=L2DatabaseFactory.getInstance().getConnection()			rem=conn.prepareStatement("DELETE FROM buffer_scheme_list WHERE id=? LIMIT 1")			rem.setString(1, eventParam1)			try : rem.executeUpdate()			except : pass			rem=conn.prepareStatement("DELETE FROM buffer_scheme_contents WHERE scheme_id=?")			rem.setString(1, eventParam1)			try :				rem.executeUpdate()				rem.close()				conn.close()			except :				try : conn.close()				except : pass					return rebuildMainHtml(st) 		if event == "delete_c" :			HTML = HTML_MESSAGE = "<html><head><title>"+TITLE_NAME+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>Do you really want to delete '"+eventParam2+"' scheme?<br><br>"			HTML += "<button value=\"Yes\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" delete "+eventParam1+" x x\" width=50 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"			HTML += "<button value=\"No\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" delete_1 x x x\" width=50 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"							HTML += "<br><font color=\"303030\">"+TITLE_NAME+"</font></center></body></html>"			return HTML			 		if event == "create_1" : return createScheme() 		if event == "edit_1" : return editScheme() 		if event == "delete_1" : return deleteScheme() 		if event == "manage_scheme_1" : return viewAllSchemeBuffs(eventParam1,eventParam2,"add") 		if event == "manage_scheme_2" : return viewAllSchemeBuffs(eventParam1,eventParam2,"remove") 		if event == "manage_scheme_select" : return getOptionList(eventParam1) 		if event == "remove_buff" :			event = eventParam1.split("_")			scheme = event[0]			skill = event[1]			level = event[2]			con=L2DatabaseFactory.getInstance().getConnection()			rem=con.prepareStatement("DELETE FROM buffer_scheme_contents WHERE scheme_id=? AND skill_id=? AND skill_level=? LIMIT 1")			rem.setString(1, scheme)			rem.setString(2, skill)			rem.setString(3, level)			try : rem.executeUpdate()			except : pass			temp=int(eventParam3) - 1			if temp <= 0 : HTML = getOptionList(scheme)			else : HTML = viewAllSchemeBuffs(scheme,eventParam2,"remove")			return HTML 		if event == "add_buff" :			event = eventParam1.split("_")			scheme = event[0]			skill = event[1]			level = event[2]			idbuffclass = getclassbuff(skill)			con=L2DatabaseFactory.getInstance().getConnection()			ins = con.prepareStatement("INSERT INTO buffer_scheme_contents (scheme_id,skill_id,skill_level,buff_class) VALUES (?,?,?,?)")			ins.setString(1, str(scheme))			ins.setString(2, str(skill))			ins.setString(3, str(level))			ins.setString(4, str(idbuffclass))			try :				ins.executeUpdate()				ins.close()				con.close()			except : pass			temp = int(eventParam3) + 1				if temp >= MAX_SCHEME_BUFFS + MAX_SCHEME_DANCES : HTML = getOptionList(scheme)			else : HTML = viewAllSchemeBuffs(scheme,eventParam2,"add")			return HTML 		if event == "edit_buff_list" :			return viewAllBuffs(eventParam1,eventParam2,eventParam3) 		if event == "changeBuffSet" :			eventParam2 = eventParam2.replace("Fighter","0")			eventParam2 = eventParam2.replace("Mage","1")			eventParam2 = eventParam2.replace("All","2")			eventParam2 = eventParam2.replace("None","3")			return manageSelectedSet(eventParam1,eventParam2,eventParam3) 		if event == "editSelectedBuff" :			eventParam2 = eventParam2.replace("-"," ")			split = eventParam2.split(" ")			action = split[0]			page = split[1]					manageSelectedBuff(eventParam1,action)			if eventParam3 == "buff" : typeName = "Buffs"                        if eventParam3 == "resist" : typeName = "Resists"			if eventParam3 == "song" : typeName = "Songs"			if eventParam3 == "dance" : typeName = "Dances"			if eventParam3 == "chant" : typeName = "Chants"			if eventParam3 == "others" : typeName = "Others_Buffs"			if eventParam3 == "special" : typeName = "Special_Buffs"			if eventParam3 == "cubic" : typeName = "Cubics"			return viewAllBuffs(eventParam3,typeName,page) 		if event == "viewSelectedConfig" : return viewSelectedConfig(eventParam1,eventParam2) 		if event == "changeConfig" : return updateConfigValue(eventParam1,eventParam2,eventParam3) 		if event == "redirect" :			if eventParam1 == "view_buffs" : return buildHtml("buff")                        if eventParam1 == "view_resists" : return buildHtml("resist")			if eventParam1 == "view_songs" : return buildHtml("song")			if eventParam1 == "view_dances" : return buildHtml("dance")			if eventParam1 == "view_chants" : return buildHtml("chant")			if eventParam1 == "view_others" : return buildHtml("others")			if eventParam1 == "view_special" : return buildHtml("special")			if eventParam1 == "view_cubic" : return buildHtml("cubic") 		if event == "heal" :			if int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime"):				if st.getQuestItemsCount(CONSUMABLE_ID) < HEAL_PRICE  : 					return showText(st,"Sorry","You don't have the enough items:<br>You need: <font color =\"LEVEL\">"+str(HEAL_PRICE)+" "+str(getitemname(st,CONSUMABLE_ID))+"!","False",0,0)				else :					if getpetbuff == 1 :						if st.player.getPet() != None : heal(getpetbuff)						else: return showText(st,"Info","You can't use the Pet's options.<br>Summon your pet first!","False","Return","main")					else : heal(getpetbuff)									st.takeItems(CONSUMABLE_ID,HEAL_PRICE)										if TIME_OUT == True: addTimeout(1,TIME_OUT_TIME/2,600)					return rebuildMainHtml(st)			return rebuildMainHtml(st) 		if event == "removeBuffs" :			if int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime"):										if st.getQuestItemsCount(CONSUMABLE_ID) < BUFF_REMOVE_PRICE : 					return showText(st,"Sorry","You don't have the enough items:<br>You need: <font color =\"LEVEL\">"+str(BUFF_REMOVE_PRICE)+" "+str(getitemname(st,CONSUMABLE_ID))+"!","False",0,0)				else :					if getpetbuff == 1 :						if st.player.getPet() != None : st.player.getPet().stopAllEffects()						else: return showText(st,"Info","You can't use the Pet's options.<br>Summon your pet first!","False","Return","main")					else :						st.getPlayer().stopAllEffects()                				if st.player.getCubics() != None:                       					for cubic in st.player.getCubics().values():                              					cubic.stopAction()                             					st.player.delCubic(cubic.getId())   					st.takeItems(CONSUMABLE_ID,BUFF_REMOVE_PRICE)					if TIME_OUT == True: addTimeout(2,TIME_OUT_TIME/2,600)					return rebuildMainHtml(st)			return rebuildMainHtml(st) 		if event == "cast" :			if int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime") :				buffs = []; levels = []; id = 0; level = 0				conn=L2DatabaseFactory.getInstance().getConnection()				rss = conn.prepareStatement("SELECT * FROM buffer_scheme_contents WHERE scheme_id="+eventParam1+" ORDER BY id")				action=rss.executeQuery()				while (action.next()) :					try :						enabled = 1						id = int(action.getString("skill_id"))						level = int(action.getString("skill_level"))						skillType = getBuffType(id)						if skillType == "buff" :							if ENABLE_BUFFS == True :								if isEnabled(id,level) == "True" : 									buffs += [id]									levels += [level]						if skillType == "resist" :							if ENABLE_RESIST == True :								if isEnabled(id,level) == "True" :									buffs += [id]									levels += [level]						if skillType == "song" :							if ENABLE_SONGS == True :								if isEnabled(id,level) == "True" :									buffs += [id]									levels += [level]						if skillType == "dance" :							if ENABLE_DANCES == True :								if isEnabled(id,level) == "True" :									buffs += [id]									levels += [level]						if skillType == "chant" :							if ENABLE_CHANTS == True :								if isEnabled(id,level) == "True" :									buffs += [id]									levels += [level]						if skillType == "others" :							if ENABLE_OTHERS == True :								if isEnabled(id,level) == "True" :									buffs += [id]									levels += [level]						if skillType == "special" :							if ENABLE_SPECIAL == True :								if isEnabled(id,level) == "True" :									buffs += [id]									levels += [level]					except : print "Query error!"				try : conn.close()				except : pass 				if len(buffs) == 0 : return viewAllSchemeBuffs(eventParam1,1,"add")				else :					if FREE_BUFFS == False :						if st.getQuestItemsCount(CONSUMABLE_ID) < SCHEME_BUFF_PRICE : 							return showText(st,"Sorry","You don't have the enough items:<br>You need: <font color =\"LEVEL\">"+str(SCHEME_BUFF_PRICE)+" "+str(getitemname(st,CONSUMABLE_ID))+"!","False",0,0)					i = 0					while i <= len(buffs) - 1 :						if getpetbuff == 0 : SkillTable.getInstance().getInfo(buffs[i],levels[i]).getEffects(st.player,st.player)						else:							if st.player.getPet() != None : SkillTable.getInstance().getInfo(buffs[i],levels[i]).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet())							else: return showText(st,"Info","You can't use the Pet's options.<br>Summon your pet first!","False","Return","main")						i += 1					heal(getpetbuff)					st.takeItems(CONSUMABLE_ID,SCHEME_BUFF_PRICE)					if TIME_OUT == True: addTimeout(3,TIME_OUT_TIME,600)					return rebuildMainHtml(st)			else : return rebuildMainHtml(st) 		if event == "giveBuffs" :			if eventParam3 == "buff" : cost = BUFF_PRICE			if eventParam3 == "resist" : cost = RESIST_PRICE			if eventParam3 == "song" : cost = SONG_PRICE			if eventParam3 == "dance" : cost = DANCE_PRICE			if eventParam3 == "chant" : cost = CHANT_PRICE			if eventParam3 == "others" : cost = OTHERS_PRICE			if eventParam3 == "special" : cost = SPECIAL_PRICE				if eventParam3 == "cubic" : cost = CUBIC_PRICE						if int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime") :				if FREE_BUFFS == False :					if st.getQuestItemsCount(CONSUMABLE_ID) < cost :						return showText(st,"Sorry","You don't have the enough items:<br>You need: <font color =\"LEVEL\">"+str(cost)+" "+str(getitemname(st,CONSUMABLE_ID))+"!","False",0,0)				skill=SkillTable.getInstance().getInfo(int(eventParam1),int(eventParam2))				if str(skill.getSkillType()) == "SUMMON":					if st.getQuestItemsCount(skill.getItemConsumeId()) < skill.getItemConsume():						return showText(st,"Sorry","You don't have the enough items:<br>You need: <font color =\"LEVEL\">"+str(skill.getItemConsume())+" "+str(getitemname(st,skill.getItemConsumeId()))+"!","False",0,0)				if getpetbuff == 0 :					if eventParam3 == "cubic" :                				if st.player.getCubics() != None:                       					for cubic in st.player.getCubics().values():                              					cubic.stopAction()                             					st.player.delCubic(cubic.getId())						st.getPlayer().useMagic(SkillTable.getInstance().getInfo(int(eventParam1),int(eventParam2)),False,False)					else: SkillTable.getInstance().getInfo(int(eventParam1),int(eventParam2)).getEffects(st.getPlayer(),st.getPlayer())				else:					if eventParam3 == "cubic":                 				if st.player.getCubics() != None:                       					for cubic in st.player.getCubics().values():                              					cubic.stopAction()                             					st.player.delCubic(cubic.getId())						st.getPlayer().useMagic(SkillTable.getInstance().getInfo(int(eventParam1),int(eventParam2)),False,False)					else: 						if st.player.getPet() != None : SkillTable.getInstance().getInfo(int(eventParam1),int(eventParam2)).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet())						else: return showText(st,"Info","You can't use the Pet's options.<br>Summon your pet first!","False","Return","main")				st.takeItems(CONSUMABLE_ID,cost)				if TIME_OUT == True: addTimeout(3,TIME_OUT_TIME/10,600)				return buildHtml(eventParam3)			else : return buildHtml(eventParam3) 		if event == "castBuffSet" :			if int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime") :				if FREE_BUFFS == False :					if st.getQuestItemsCount(CONSUMABLE_ID) < BUFF_SET_PRICE : 						return showText(st,"Sorry","You don't have the enough items:<br>You need: <font color =\"LEVEL\">"+str(BUFF_SET_PRICE)+" "+str(getitemname(st,CONSUMABLE_ID))+"!","False",0,0)				buff_sets=[]; i = 0; player_class = 3				if st.getPlayer().isMageClass() : player_class = 1				else : player_class = 0				if getpetbuff == 0 :					conn=L2DatabaseFactory.getInstance().getConnection()					getSimilarNameCount = conn.prepareStatement("SELECT buffId,buffLevel FROM buffer_buff_list WHERE forClass IN (?,?) ORDER BY id ASC")					getSimilarNameCount.setString(1, str(player_class))					getSimilarNameCount.setString(2, "2")					rss = getSimilarNameCount.executeQuery()					while (rss.next()) :						try :							id = rss.getInt("buffId")							lvl = rss.getInt("buffLevel")							buff_sets += [id,lvl]						except : buff_sets = []					try: conn.close()					except: pass					while i <= len(buff_sets)-2 :						SkillTable.getInstance().getInfo(buff_sets[i],buff_sets[i+1]).getEffects(st.getPlayer(),st.getPlayer())						i += 2				else:					if st.player.getPet() != None :						i = 0						conn=L2DatabaseFactory.getInstance().getConnection()						getSimilarNameCount = conn.prepareStatement("SELECT buffId,buffLevel FROM buffer_buff_list WHERE forClass IN (?,?) ORDER BY id ASC")						getSimilarNameCount.setString(1, "0")						getSimilarNameCount.setString(2, "2")						rss = getSimilarNameCount.executeQuery()						while (rss.next()) :							try :								id = rss.getInt("buffId")								lvl = rss.getInt("buffLevel")								buff_sets += [id,lvl]							except : buff_sets = []						try: conn.close()						except: pass						while i <= len(buff_sets)-2 :							SkillTable.getInstance().getInfo(buff_sets[i],buff_sets[i+1]).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet())							i += 2					else: return showText(st,"Info","You can't use the Pet's options.<br>Summon your pet first!","False","Return","main")				heal(getpetbuff)				st.takeItems(CONSUMABLE_ID,BUFF_SET_PRICE)				if TIME_OUT == True: addTimeout(3,TIME_OUT_TIME,600)				return rebuildMainHtml(st)			else : return rebuildMainHtml(st)		return rebuildMainHtml(st) 	def onFirstTalk (self,npc,player):		st = player.getQuestState(QUEST_LOADING_INFO)		if not st : st = self.newQuestState(player)		if player.isGM(): 			if SCRIPT_RELOAD == True: return reloadPanel(st)			else: return rebuildMainHtml(st)		elif int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime"): 			if ENABLE_VIP_BUFFER == False or player.getAccessLevel().getLevel() == VIP_ACCESS_LEVEL and ENABLE_VIP_BUFFER == True: 				if BUFF_WITH_KARMA == False and player.getKarma() > 0 :					return showText(st,"Info","You have too much <font color=\"FF0000\">karma!</font><br>Come back,<br>when you don't have any karma!","False","Return","main") 				elif st.player.getLevel() < MIN_LEVEL :					return showText(st,"Info","Your level is too low!<br>You have to be at least level <font color\"LEVEL\">"+str(MIN_LEVEL)+"</font>,<br>to use my services!","False","Return","main") 				elif st.player.getPvpFlag() > 0 :					return showText(st,"Info","You can't buff while you are <font color=\"800080\">flagged!</font><br>Wait some time and try again!","False","Return","main") 				elif st.player.isInCombat() :					return showText(st,"Info","You can't buff while you are attacking!<br>Stop your fight and try again!","False","Return","main") 				else: return rebuildMainHtml(st) 			else: return showText(st,"Sorry","This buffer is only for VIP's!<br>Contact the administrator for more info!","False","Return","main")		   	else: return showText(st,"Sorry","You have to wait a while!<br>if you wish to use my services!","False","Return","main")  QUEST = Quest(QUEST_ID,QUEST_LOADING_INFO,QUEST_DESCRIPTION)QUEST.addStartNpc(NPC_ID)QUEST.addFirstTalkId(NPC_ID)QUEST.addTalkId(NPC_ID)
second half of the py file
surskis
Posts: 101
Joined: Sun Jul 12, 2009 6:24 pm
Location: Lithuania

Re: Need Help with special Buffer

Post by surskis »

Allera wrote:  

Code: Select all

# Customcustom/1000_NonTalkingNpcs/__init__.pycustom/1001_FortuneTelling/__init__.pycustom/1002_Nottingale/__init__.pycustom/3995_echo/__init__.pycustom/4000_ShadowWeapons/__init__.pycustom/5000_MissQueen/__init__.pycustom/5001_NewbieCoupons/__init__.pycustom/6050_KetraOrcSupport/__init__.pycustom/6051_VarkaSilenosSupport/__init__.pycustom/8000_RaidbossInfo/__init__.pycustom/8001_NpcLocationInfo/__init__.pycustom/8004_PurchaseBracelet/__init__.pycustom/8005_SubClassSkills/__init__.pycustom/HeroCirclet/HeroCirclet.javacustom/HeroWeapon/HeroWeapon.javacustom/IOPRace/IOPRace.javacustom/PinsAndPouchUnseal/PinsAndPouchUnseal.javacustom/SkillTransfer/SkillTransfer.java[color=#FF0000]custom/555_NPCBUFFER/__init__.py[/color]
 

Code: Select all

Error on: C:\Users\Home-Pc\Desktop\Lineage 2 Server\gameserver\data\scripts\custom[color=#FF0000]\555555_NPCBUFFER\__init__.py.error.log[/color]Line: -1 - Column: -1 Traceback (innermost last):  File "__init__.py", line 4, in ?ImportError: no module named net 
I don't know what i have to do i hope u can help me thx :oops:
Look at marked lines and u will see problem
User avatar
vicoxl16
Posts: 6
Joined: Thu Jul 05, 2007 7:30 pm
Location: Peru
Contact:

Re: Need Help with special Buffer

Post by vicoxl16 »

surskis wrote:
Allera wrote:  

Code: Select all

Error on: C:\Users\Home-Pc\Desktop\Lineage 2 Server\gameserver\data\scripts\custom[color=#FF0000]\555555_NPCBUFFER\__init__.py.error.log[/color]Line: -1 - Column: -1 Traceback (innermost last):  File "__init__.py", line 4, in ?ImportError: no module named net 
I don't know what i have to do i hope u can help me thx :oops:
Look at marked lines and u will see problem

in you 555555_NPCBUFFER\__init__.py Remplaze
import sys
from java.lang import System
from java.util import Iterator
from net.sf.l2j import Config
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
from net.sf.l2j.gameserver.instancemanager import QuestManager
from net.sf.l2j import L2DatabaseFactory
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j.gameserver.datatables import ItemTable
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from net.sf.l2j.gameserver.model.actor.instance import L2PetInstance
from net.sf.l2j.gameserver.model.actor.instance import L2SummonInstance
from net.sf.l2j.gameserver.network.serverpackets import SetSummonRemainTime
from net.sf.l2j.gameserver.network.serverpackets import SetupGauge
For
import sys
from java.lang import System
from java.util import Iterator
from com.l2jserver import Config
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jserver.gameserver.instancemanager import QuestManager
from com.l2jserver import L2DatabaseFactory
from com.l2jserver.gameserver.datatables import SkillTable
from com.l2jserver.gameserver.datatables import ItemTable
from com.l2jserver.gameserver.model.actor.instance import L2PcInstance
from com.l2jserver.gameserver.model.actor.instance import L2PetInstance
from com.l2jserver.gameserver.model.actor.instance import L2SummonInstance
from com.l2jserver.gameserver.network.serverpackets import SetSummonRemainTime
from com.l2jserver.gameserver.network.serverpackets import SetupGauge
si te duele y me insultas, me da igual , es mejor no hacerte caso haci sentiras mas dolor.
if it hurts you and you insult me, I do not, is better case to make no more pain
Image
Allera
Posts: 19
Joined: Sun Feb 21, 2010 4:57 pm

Re: Need Help with special Buffer

Post by Allera »

thx for reply :lol: :D :lol: :D :lol: :D :mrgreen: :mrgreen: :mrgreen:

Now it is nearly perfect. Auto Buff function works perfectly but if i want to add only 1 Buff or edit a sheme i get that error message: I hope u can help me at the last step to my buffer=)
script error.jpg
Edit: Now i get that error message after the script update Yes/No window...=(
You do not have the required permissions to view the files attached to this post.
Allera
Posts: 19
Joined: Sun Feb 21, 2010 4:57 pm

Re: Need Help with special Buffer

Post by Allera »

Somebody know how to solve the problem?
User avatar
Stake
Posts: 383
Joined: Sun Mar 23, 2008 9:33 pm
Location: Hungary
Contact:

Re: Need Help with special Buffer

Post by Stake »

Allera wrote:Somebody know how to solve the problem?
Do you have all the columns the script needs in the bufflist scheme table?

Are you sure you need that big script? :O You should provide us the whole stuff, because this is giant.
Image
Image
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Need Help with special Buffer

Post by denser »

use House's buffer...it exact what you need - it buffs you or your pet, with or w/o fee...so hard to using search?
viewtopic.php?p=76715#p76715

for create npc better use couple of sql query.
find npc with nice appearance export it and remake it into custom_npc (use phpmyadmin as awesome tool for mysql)
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
Allera
Posts: 19
Joined: Sun Feb 21, 2010 4:57 pm

Re: Need Help with special Buffer

Post by Allera »

Hello Guys,

sorry that i don't answer...I was in holiday and now i have to say the buffer works perfectly =)=)
The problem was that in the buffer_buff_list table the column buff_class wasn't there. So i edited the table and added the column and everything works fine...

Thank you all for help. :D
belak
Posts: 32
Joined: Thu Jan 04, 2007 6:57 pm

Re: Need Help with special Buffer

Post by belak »

Please, can you give me the link to download your npc buffer scheme?
I have problems with my. :T
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Need Help with special Buffer

Post by denser »

belak wrote:Please, can you give me the link to download your npc buffer scheme?
I have problems with my. :T
you are blind? scroll up!! lazy thing....learn to help yourself :?
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
belak
Posts: 32
Joined: Thu Jan 04, 2007 6:57 pm

Re: Need Help with special Buffer

Post by belak »

denser wrote:you are blind? scroll up!! lazy thing....learn to help yourself :?
I copied the data, but not saving the buffs and not appear any error in gameserver or logs. I changed the name 'buff_class' by 'forClass' in the script, this is the problem?

thx!
Post Reply