Jump to content
  • 0

Help on Quest from Anti Exp Ring


Cilindro

Question

Hello guys i have this quest for using my anti exp ring but i have i problem.

 
72501 °æÇèÀÇ ¹ÝÁö(PC¹æ¿ë) ITEM_UNIQUE UNIQUE_SPECIAL_RIDE 1 ANTI_SELL | ANTI_STACK QUEST_USE_MULTIPLE | LOG WEAR_SHIELD NONE 0 0 0 0 0 LEVEL 50 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 600 0 0 0 0 0 0 0 0
 
Quest:

 

quest anti_exp_ring begin
state start begin
when login begin
if pc.getqf("antiexp") == 1 then
pc.block_exp()
chat("Anel Anti Experiência ainda esta Ativado!")
end
end
when 72501.use begin
if pc.getqf("antiexp") == 0 then
pc.block_exp()
pc.setqf("antiexp", 1)
chat("O Anel Anti Experiência foi Ativado!")
elseif pc.getqf("antiexp") == 1 then
pc.unblock_exp()
pc.setqf("antiexp", 0)
chat("O Anel Anti Experiência foi Desativado!")
end
end
end

end

 

 
i make a small video for any can help me better :)

 

https://www.youtube.com/watch?v=brdGSPOIoFk

 

the problem is normaly when ther active is then you whant deactive only need click one time and not deactive from slot and then put on slot for deactive .

 

Thanks

  • Love 1
Link to comment

4 answers to this question

Recommended Posts

  • 0

Try this ;

quest antiexp_ring begin
    state start begin
        when login or levelup or enter begin
			if(pc.getf("antiexp_ring","use") == 1 and pc.count_item(72501) < 0) then
				pc.unblock_exp()
				return
			end
            if(pc.getf("antiexp_ring","use") == 1) then
                pc.block_exp()
                chat("Anti Exp Ring activated!")
				timer("checkControl",5)
            end
        end
        when 72501.use begin
            if(pc.getf("antiexp_ring","use") == 0) then
                pc.block_exp()
                pc.setf("antiexp_ring","use",1)
                chat("Anti Exp Ring Activated!")
            elseif(pc.getf("antiexp_ring","use") == 1) then
                pc.unblock_exp()
                pc.setf("antiexp_ring","use",0)
                chat("Anti Exp Ring Deactivated!")
            end
        end
		when checkControl.timer begin
			if(pc.getf("antiexp_ring","use") == 1 and pc.count_item(72501) < 0) then
				pc.unblock_exp()	
			else
				timer("checkControl2",5)
			end
		end
		when checkControl.timer begin
			if(pc.getf("antiexp_ring","use") == 1 and pc.count_item(72501) < 0) then
				pc.unblock_exp()
			else
				timer("checkControl",5)
			end
		end		
    end
end

Best Regards

Ellie

  • Love 1

Do not be sorry, be better.

Link to comment
  • 0

Maybe this is a bug in the core, because xy.use should only work with ITEM_QUEST items.

$ uptime
1:26AM  up 732 days,  8:29, 1 user, load averages: 0.38, 0.31, 0.22

$ uname -srp
FreeBSD 9.1-RELEASE amd64

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.