DeYaN. 29 Posted March 25, 2016 Share Posted March 25, 2016 Hei there. I have put the pc.unblock_exp() and pc.block_exp() functions in my server. But now,the players found a bug. After you block the exp you can donate to guild level infinite exp . This is my quest : Spoiler quest anti_exp begin state start begin when login begin if pc.getqf("antiexp") == 1 then pc.block_exp() say_title("Inel anti-experienta:") say("Ai grija,ai uitat inelul anti-experienta") say("activat. Nu vei mai primi experienta!") end end when login begin cmdchat("antiexp_index "..q.getcurrentquestindex()) end when button or info begin if pc.getqf("antiexp") == 0 then pc.block_exp() pc.setqf("antiexp", 1) say_title("Inel anti-experienta:") say("Inelul anti-experienta este activat!") say("De acum nu vei mai primi experienta!") elseif pc.getqf("antiexp") == 1 then pc.unblock_exp() pc.setqf("antiexp", 0) say_title("Inel anti-experienta:") say("Inelul anti-experienta este dezactivat!") say("De acum vei primi experienta!") end end end end I have put a function like "if pc.get_exp()>1 begin ; return " but i want some like : when you use the ring to set your experience to 0 , I try with "pc.give_exp2(-pc.get_exp())" but isn`t work. I don`t understand what is the problem but it dont get all exp, it lv up my character, WTF Any ideea ? .. # Sorry for my English Link to comment Share on other sites More sharing options...
Active Member ReFresh 2330 Posted March 25, 2016 Active Member Share Posted March 25, 2016 1 hour ago, DeYaN. said: Hei there. I have put the pc.unblock_exp() and pc.block_exp() functions in my server. But now,the players found a bug. After you block the exp you can donate to guild level infinite exp . This is my quest : Hide contents quest anti_exp begin state start begin when login begin if pc.getqf("antiexp") == 1 then pc.block_exp() say_title("Inel anti-experienta:") say("Ai grija,ai uitat inelul anti-experienta") say("activat. Nu vei mai primi experienta!") end end when login begin cmdchat("antiexp_index "..q.getcurrentquestindex()) end when button or info begin if pc.getqf("antiexp") == 0 then pc.block_exp() pc.setqf("antiexp", 1) say_title("Inel anti-experienta:") say("Inelul anti-experienta este activat!") say("De acum nu vei mai primi experienta!") elseif pc.getqf("antiexp") == 1 then pc.unblock_exp() pc.setqf("antiexp", 0) say_title("Inel anti-experienta:") say("Inelul anti-experienta este dezactivat!") say("De acum vei primi experienta!") end end end end I have put a function like "if pc.get_exp()>1 begin ; return " but i want some like : when you use the ring to set your experience to 0 , I try with "pc.give_exp2(-pc.get_exp())" but isn`t work. I don`t understand what is the problem but it dont get all exp, it lv up my character, WTF # Sorry for my English Yes, here is the bug. You must solve this bug in Server Source. Other way doesn't exist. I'll be always helpful! Link to comment Share on other sites More sharing options...
Haruka 15 Posted March 25, 2016 Share Posted March 25, 2016 It's source Link to comment Share on other sites More sharing options...
DeYaN. 29 Posted March 26, 2016 Author Share Posted March 26, 2016 1 hour ago, ReFresh said: Yes, here is the bug. You must solve this bug in Server Source. Other way doesn't exist. I understand,but who .. i work with source about 4 months and i don`t have any ideea ? Link to comment Share on other sites More sharing options...
mebe 13 Posted March 26, 2016 Share Posted March 26, 2016 1 hour ago, DeYaN. said: Lo entiendo, pero que .. i trabajar con fuente de cerca de 4 meses y no he decidido ninguna idea pra? Changue if (block_exp) { return; } For if (block_exp && amount > 0) { return; } Link to comment Share on other sites More sharing options...
DeYaN. 29 Posted March 26, 2016 Author Share Posted March 26, 2016 2 hours ago, mebe said: Changue if (block_exp) { return; } For if (block_exp && amount > 0) { return; } but now we can make like if amount > 0 , delete the existent exp ? Link to comment Share on other sites More sharing options...
Haruka 15 Posted March 26, 2016 Share Posted March 26, 2016 What do u want to do? @DeYaN. Link to comment Share on other sites More sharing options...
DeYaN. 29 Posted March 26, 2016 Author Share Posted March 26, 2016 In Spoiler if (block_exp && amount > 0) { return; before return; should not be a line to delete the existent exp(amount) ? Link to comment Share on other sites More sharing options...
DeYaN. 29 Posted March 26, 2016 Author Share Posted March 26, 2016 Just now, DeYaN. said: In Reveal hidden contents if (block_exp && amount > 0) { return; before return; should not be a line to delete the existent exp(amount) ? Ohh,is already working ,danke @mebe :* # SOLVE Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now