V e n { } m Posted November 5, 2016 Share Posted November 5, 2016 How to make when someone have karma or flag to can't use the buffer? ( for .py script ) Link to comment Share on other sites More sharing options...
0 Reborn12 Posted November 5, 2016 Share Posted November 5, 2016 Check the check with karma http://pastebin.com/ipJfBqNs Link to comment Share on other sites More sharing options...
0 V e n { } m Posted November 5, 2016 Author Share Posted November 5, 2016 Check the check with karma http://pastebin.com/ipJfBqNs st.getPlayer().player.getKarma() > 0 && player.getPvpFlag() > 0) something like this should look like? Link to comment Share on other sites More sharing options...
0 Reborn12 Posted November 5, 2016 Share Posted November 5, 2016 Try it.without try we dont know :p Link to comment Share on other sites More sharing options...
0 Tessa Posted November 5, 2016 Share Posted November 5, 2016 (edited) if st.getPlayer().getKarma() > 0 or st.getPlayer().getPvpFlag() > 0: return the return has indention which doesn't show here... :lol: Edited November 5, 2016 by Tessa Link to comment Share on other sites More sharing options...
0 V e n { } m Posted November 5, 2016 Author Share Posted November 5, 2016 mm it doesnt work .. Link to comment Share on other sites More sharing options...
0 lsj14 Posted November 5, 2016 Share Posted November 5, 2016 (edited) Maybe you just put the check in wrong place. Just put above the line where you send main html and it will work, but don't forget to put return; like Tessa said, or else it wont work :D Edited November 5, 2016 by lsj14 Link to comment Share on other sites More sharing options...
0 V e n { } m Posted November 5, 2016 Author Share Posted November 5, 2016 (edited) Maybe you just put the check in wrong place. else: st.takeItems(ADENA_ID,0) st.getPlayer().setTarget(st.getPlayer()) if st.getPlayer().getKarma() > 0 or st.getPlayer().getPvpFlag() > 0: return if event == "1": P.S If someone can put it on the right place plz PM ME i will send the all code. Thx! Edited November 5, 2016 by V e n { } m Link to comment Share on other sites More sharing options...
0 Rootware Posted November 5, 2016 Share Posted November 5, 2016 You are god of L2J. st.getPlayer().setTarget(st.getPlayer()) Getting self in target. What it this the sacred action? You want take yourself by the collar and throw out the window of the first floor? Good idea. Link to comment Share on other sites More sharing options...
0 V e n { } m Posted November 5, 2016 Author Share Posted November 5, 2016 You are god of L2J. st.getPlayer().setTarget(st.getPlayer()) Getting self in target. What it this the sacred action? You want take yourself by the collar and throw out the window of the first floor? Good idea. yeah .. and you are the god of helpers. Big thanks for this "You want take yourself by the collar and throw out the window of the first floor?" Link to comment Share on other sites More sharing options...
0 Rootware Posted November 5, 2016 Share Posted November 5, 2016 yeah .. and you are the god of helpers. Big thanks for this "You want take yourself by the collar and throw out the window of the first floor?" Your knowledge is so small, that anyone who will help you will be like as your mother when she fed you from a spoon. Your main problem in solving the simple problem is that you know nothing about programming. I mean, what this topic have simple answer and it's not a reason for her creation. Link to comment Share on other sites More sharing options...
0 V e n { } m Posted November 5, 2016 Author Share Posted November 5, 2016 Your knowledge is so small, that anyone who will help you will be like as your mother when she fed you from a spoon. Your main problem in solving the simple problem is that you know nothing about programming. I mean, what this topic have simple answer and it's not a reason for her creation. im not pretending that i have programming skills, so shut the fuck up if you don't want to help me. Link to comment Share on other sites More sharing options...
0 V e n { } m Posted November 5, 2016 Author Share Posted November 5, 2016 Lock it. Link to comment Share on other sites More sharing options...
Question
V e n { } m
How to make when someone have karma or flag to can't use the buffer? ( for .py script )
Link to comment
Share on other sites
12 answers to this question
Recommended Posts