Jump to content
  • 0

[HELP]Problem with pet buffer Hi5


Question

Posted

ok so I found a pet buffer for freya and I know theres problems implementing them into a hi5 server, one of them being they changes L2SummonInstance to something else, anyone care to fill me in on what they changed that to? (I seen a topic about this awhile ago but every time I  search for anything it just says no results found even if I search Lineage in the L2 section LOL)

8 answers to this question

Recommended Posts

  • 0
Posted

ok si as far as the loading of the script in the gs console... I can get that working. But when I go in game it gives me errors about line 1197 Syntax Error:" Invalid Syntax" and does nothing for normal players (Errors only show up for ppl with access lvl >7) My lines 1192-1215 are as follows (I see nothing wrong with these)

 

 

1192      def onTalk (self,npc,player):#verifica player se tem PET/Flag/Karma ou modo de combate.

1193 htmltext = "<html><head><body>You can't buff while you are</body></html>"

1194 st = player.getQuestState(qn)

1195 if not st : return htmltext

1196 npcId = npc.getNpcId()

1197 if player.getPet() == None :#Player sum Pet

1198 htmltext = "<html><head><body>You Need pet or summon</body></html>"

1199 st.exitQuest(1)

1200 elif st.player.getPvpFlag() > 0 :#Player Flag

1201 htmltext = "<html><head><body>You can't buff while you are <font color=\"800080\">flagged!    1202        </font><br>Wait some time and try again!</body></html>"

1203 st.exitQuest(1)

1204 elif st.player.getKarma() > 0 :#Player has Karma

1205 st.exitQuest(1)

1206 htmltext = "<html><head><body>You have too much <font color=\"FF0000\">karma!</font>    1207        <br>Come back,<br>when you don't have any karma!</body></html>"

1208 elif st.player.isInCombat() :#Player modo de Combate

1209 st.exitQuest(1)

1210 htmltext = "<html><head><body>You can't buff while you are attacking!<br>Stop your fight 1211          and try again!</body></html>"

1212 else:

1213 st.setState(State.STARTED)

1214 return InitialHtml

1215 return htmltext

 

 

Anyone see something that I am missing here? (btw this is the files where I get error... on getPet() if I change it to getPetInstance() I dont et errors in GS console but the buffer still gives me errors in game.

  • 0
Posted

Heres the code, when I try to use a scheme it gives me error on line 926. When I go to use the preset ones it gives me the same error on line 1001.

 

Ive tried all of the above ways to fix this but none work, any ideas?

 

 

http://pastebin.com/vikQsWHb

  • 0
Posted

You must be blind (cf. my answer at your PM), the error is related to your previous question and my last answer is adapted.

 

Line 927 is different from line 926. Compare, analyze, or simply read my answer.

 

Line 926 : st.player.getPet()
Line 927 : st.getPlayer().getPet()

 

My previous answer :

player OR st.getPlayer(). st.player, that doesn't exist.
  • 0
Posted

You must be blind (cf. my answer at your PM), the error is related to your previous question and my last answer is adapted.

 

Line 927 is different from line 926. Compare, analyze, or simply read my answer.

 

Line 926 : st.player.getPet()
Line 927 : st.getPlayer().getPet()

 

My previous answer :

 

 

When I try with st.getPlayer().getPet() != None :

 

I get error saying onAdvEventAttributeError: object has no Attribute '__Call__' Could this be because my instances while loading trys to load L2PetInstance? When I change this to regular L2Pet I get Crit error in game server console and the NPC doesnt load all together =/

Guest
This topic is now closed to further replies.


  • Posts

    • Μάγκες καλησπέρα,   Παίζω Lineage 2 εδώ και χρόνια και πήρα απόφαση ότι θέλω επιτέλους να μάθω πώς δουλεύουν τα πράγματα πίσω από τις κάμερες. Δεν ψάχνομαι ούτε να ανοίξω τον επόμενο μεγάλο x5000 server ούτε να βγάλω λεφτά. Καθαρά από περιέργεια και για μένα θέλω να μάθω πώς στήνεται ένας server από το απόλυτο μηδέν. Το θέμα είναι ότι από development πλευρά είμαι τελείως άσχετος. Ξέρω τη βασική ιδέα, αλλά όταν βλέπω όλα αυτά που πρέπει να μάθω, ψιλοπελαγώνω. Από αυτά που έχω καταλάβει μέχρι στιγμής, πρέπει να μάθω πώς να στήνω το local περιβάλλον στο PC μου με Java, MySQL και κάποιο πρόγραμμα τύπου Navicat για να κουμαντάρω τη βάση δεδομένων. Μετά είναι το κομμάτι του compilation (με IntelliJ ή Eclipse), ή έστω το πώς να δουλεύω με έτοιμα datapacks και gameservers χωρίς να τα διαλύω όλα.   Εκτός από το server-side κομμάτι δηλαδή να αλλάζω stats σε items, να πειράζω spawns από NPCs, formulas για skills και custom μαγαζιά, πρέπει να μάθω και το client-side. Πράγματα όπως το να πειράζω τα .dat αρχεία με το L2FileEdit για να επικοινωνεί σωστά ο server με το παιχνίδι. Και για να είμαι ειλικρινής, το πιο ζόρικο κομμάτι θα είναι να μάθω να διαβάζω εκείνα τα τεράστια error logs όταν κρασάρει ο server, αντί να τα κοιτάω σαν χαζός. Ψάχνω λοιπόν κάποιον που να έχει μια εμπειρία και να γουστάρει να με καθοδηγήσει λίγο σαν μέντορας, ή ακόμα και κάποιον άλλον αρχάριο που θέλει να φάμε τα μούτρα μας παρέα μέχρι να το βρούμε.   Φράγκα δεν παίζουν μιας και το βλέπω καθαρά σαν χόμπι, αλλά έχω άπειρη υπομονή, δεν περιμένω από τον άλλον να κάνει τη δουλειά για μένα και είμαι διατεθειμένος να φάω ώρες για να μάθω. Απλά χρειάζομαι έναν άνθρωπο να ρωτάω μια γνώμη όταν αναπόφευκτα σκαλώνω σε κάποιο config αρχείο.   Αν βαριέστε και θέλετε να βοηθήσετε έναν παλιό παίκτη να μάθει τα βασικά, αφήστε ένα reply ή στείλτε μου PM με το Discord σας. Να 'στε καλά προκαταβολικά για οποιαδήποτε βοήθεια!
    • Hey guys 😃   I’ve been playing Lineage 2 for years, and I’ve finally decided I want to learn how the magic actually happens behind the scenes. I’m not trying to launch the next big x5000 server or make money. I literally just want to learn how to build one from absolute scratch for my own fun and curiosity. The issue is, I’m a total newbie when it comes to the dev side of things. I know the basic idea, but looking at everything I need to learn is getting pretty overwhelming. From what I've gathered so far, I need to figure out how to set up a local environment on my PC using Java, MySQL, and a tool like Navicat just to get the database running. Then there's compiling source code with IntelliJ or Eclipse, or at least figuring out how to work with a pre-compiled data pack and game server without breaking everything.   On top of the server side ike modifying item stats, editing NPC spawns, tweaking skill formulas, and setting up custom shops—I also need to learn the client-side stuff. Things like editing .dat files with L2FileEdit to make sure the server and client actually talk to each other correctly. And honestly, the scariest part is just learning how to read those massive error logs when the server crashes instead of just staring at them blankly.   I'm looking for someone who has some experience and wouldn't mind mentoring me a bit, or even another beginner who wants to team up so we can figure it out together. I can't pay anything since this is just a hobby project, but I’m super patient, I don't expect you to do the work for me, and I’m down to put in the hours to learn. I just need someone I can bounce questions off of when I inevitably mess up a config file.   If you’re bored and want to help a passionate player learn the ropes, drop a reply or shoot me a PM with your Discord. Appreciate any help I can get! ❤️
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • Season IV online in 3 hours 😄
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..